2006-06-27 00:44:04 +00:00
|
|
|
#
|
2012-08-10 19:26:50 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-06-27 00:44:04 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-03-06 03:34:52 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2023-02-06 22:07:24 +00:00
|
|
|
PKG_NAME:=squashfs3-lzma
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:phillip_lougher:squashfs
|
2006-09-24 20:49:31 +00:00
|
|
|
PKG_VERSION:=3.0
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2023-02-06 22:07:24 +00:00
|
|
|
PKG_SOURCE:=squashfs$(PKG_VERSION).tar.gz
|
2006-09-24 20:49:31 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/squashfs
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=39dbda43cf118536deb746c7730b468702d514a19f4cfab73b710e32908ddf20
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2023-02-06 22:07:24 +00:00
|
|
|
# Tar directory is squashfs3.0 that conflict with any pattern
|
|
|
|
# currently using for host tools. (PKG_NAME-PKG_VERSION)
|
|
|
|
# Also this got renamed to a more correct name
|
|
|
|
# from squashfs to squashfs3-lzma.
|
|
|
|
# Use tar transform to rename the root directory to this new
|
|
|
|
# name.
|
|
|
|
TAR_OPTIONS+=--transform=s/^squashfs/$(PKG_NAME)-/
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Compile
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
|
2012-07-13 23:18:15 +00:00
|
|
|
CC="$(HOSTCC)" \
|
2017-10-24 11:22:09 +00:00
|
|
|
CFLAGS="$(HOST_CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I." \
|
2015-02-06 00:00:43 +00:00
|
|
|
CXX="$(CXX)" \
|
2007-08-07 00:04:25 +00:00
|
|
|
LZMAPATH=$(STAGING_DIR_HOST)/lib \
|
2008-06-16 11:32:13 +00:00
|
|
|
mksquashfs-lzma unsquashfs-lzma
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Install
|
2023-02-06 22:07:24 +00:00
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/mksquashfs-lzma $(STAGING_DIR_HOST)/bin/mksquashfs3-lzma
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/unsquashfs-lzma $(STAGING_DIR_HOST)/bin/unsquashfs3-lzma
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-22 04:37:20 +00:00
|
|
|
define Host/Clean
|
2023-02-06 22:07:24 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mksquashfs3-lzma
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/unsquashfs3-lzma
|
2006-09-24 20:49:31 +00:00
|
|
|
endef
|
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
$(eval $(call HostBuild))
|