package/zic: bump version to 2015e
[buildroot-gz.git] / package / squashfs / squashfs.mk
blob8ca9e2e5130993c59de1c88b2814c87d884138c3
1 ################################################################################
3 # squashfs
5 ################################################################################
7 SQUASHFS_VERSION = 4.3
8 SQUASHFS_SOURCE = squashfs$(SQUASHFS_VERSION).tar.gz
9 SQUASHFS_SITE = http://downloads.sourceforge.net/project/squashfs/squashfs/squashfs$(SQUASHFS_VERSION)
10 SQUASHFS_LICENSE = GPLv2+
11 SQUASHFS_LICENSE_FILES = COPYING
13 # no libattr in BR
14 SQUASHFS_MAKE_ARGS = XATTR_SUPPORT=0
16 ifeq ($(BR2_PACKAGE_SQUASHFS_LZ4),y)
17 SQUASHFS_DEPENDENCIES += lz4
18 SQUASHFS_MAKE_ARGS += LZ4_SUPPORT=1 COMP_DEFAULT=lz4
19 else
20 SQUASHFS_MAKE_ARGS += LZ4_SUPPORT=0
21 endif
23 ifeq ($(BR2_PACKAGE_SQUASHFS_LZMA),y)
24 SQUASHFS_DEPENDENCIES += xz
25 SQUASHFS_MAKE_ARGS += LZMA_XZ_SUPPORT=1 COMP_DEFAULT=lzma
26 else
27 SQUASHFS_MAKE_ARGS += LZMA_XZ_SUPPORT=0
28 endif
30 ifeq ($(BR2_PACKAGE_SQUASHFS_XZ),y)
31 SQUASHFS_DEPENDENCIES += xz
32 SQUASHFS_MAKE_ARGS += XZ_SUPPORT=1 COMP_DEFAULT=xz
33 else
34 SQUASHFS_MAKE_ARGS += XZ_SUPPORT=0
35 endif
37 ifeq ($(BR2_PACKAGE_SQUASHFS_LZO),y)
38 SQUASHFS_DEPENDENCIES += lzo
39 SQUASHFS_MAKE_ARGS += LZO_SUPPORT=1 COMP_DEFAULT=lzo
40 else
41 SQUASHFS_MAKE_ARGS += LZO_SUPPORT=0
42 endif
44 ifeq ($(BR2_PACKAGE_SQUASHFS_GZIP),y)
45 SQUASHFS_DEPENDENCIES += zlib
46 SQUASHFS_MAKE_ARGS += GZIP_SUPPORT=1 COMP_DEFAULT=gzip
47 else
48 SQUASHFS_MAKE_ARGS += GZIP_SUPPORT=0
49 endif
51 HOST_SQUASHFS_DEPENDENCIES = host-zlib host-lz4 host-lzo host-xz
53 # no libattr/xz in BR
54 HOST_SQUASHFS_MAKE_ARGS = \
55 XATTR_SUPPORT=0 \
56 XZ_SUPPORT=1 \
57 GZIP_SUPPORT=1 \
58 LZ4_SUPPORT=1 \
59 LZO_SUPPORT=1 \
60 LZMA_XZ_SUPPORT=1
62 define SQUASHFS_BUILD_CMDS
63 $(TARGET_MAKE_ENV) $(MAKE) \
64 CC="$(TARGET_CC)" \
65 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
66 EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
67 $(SQUASHFS_MAKE_ARGS) \
68 -C $(@D)/squashfs-tools/
69 endef
71 define SQUASHFS_INSTALL_TARGET_CMDS
72 $(TARGET_MAKE_ENV) $(MAKE) $(SQUASHFS_MAKE_ARGS) \
73 -C $(@D)/squashfs-tools/ INSTALL_DIR=$(TARGET_DIR)/usr/bin install
74 endef
76 define HOST_SQUASHFS_BUILD_CMDS
77 $(HOST_MAKE_ENV) $(MAKE) \
78 CC="$(HOSTCC)" \
79 EXTRA_CFLAGS="$(HOST_CFLAGS)" \
80 EXTRA_LDFLAGS="$(HOST_LDFLAGS)" \
81 $(HOST_SQUASHFS_MAKE_ARGS) \
82 -C $(@D)/squashfs-tools/
83 endef
85 define HOST_SQUASHFS_INSTALL_CMDS
86 $(HOST_MAKE_ENV) $(MAKE) $(HOST_SQUASHFS_MAKE_ARGS) \
87 -C $(@D)/squashfs-tools/ INSTALL_DIR=$(HOST_DIR)/usr/bin install
88 endef
90 $(eval $(generic-package))
91 $(eval $(host-generic-package))