ruby: bump version to 2.4.1
[buildroot-gz.git] / package / cramfs / cramfs.mk
blob3cbe2744e6e3d2d2d58c8542a47ff0ec5f8e2020
1 ################################################################################
3 # cramfs
5 ################################################################################
7 CRAMFS_VERSION = 1.1
8 CRAMFS_SITE = http://downloads.sourceforge.net/project/cramfs/cramfs/$(CRAMFS_VERSION)
9 CRAMFS_LICENSE = GPLv2+
10 CRAMFS_LICENSE_FILES = COPYING
12 CRAMFS_DEPENDENCIES = zlib
13 HOST_CRAMFS_DEPENDENCIES = host-zlib
15 define CRAMFS_BUILD_CMDS
16 $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
17 endef
19 define CRAMFS_INSTALL_TARGET_CMDS
20 $(INSTALL) -D -m 755 $(@D)/mkcramfs $(TARGET_DIR)/usr/bin/mkcramfs
21 $(INSTALL) -D -m 755 $(@D)/cramfsck $(TARGET_DIR)/usr/bin/cramfsck
22 endef
24 define HOST_CRAMFS_BUILD_CMDS
25 $(HOST_MAKE_ENV) $(MAKE) CFLAGS="$(HOST_CFLAGS) -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="$(HOST_LDFLAGS)" -C $(@D)
26 endef
28 define HOST_CRAMFS_INSTALL_CMDS
29 $(INSTALL) -D -m 755 $(@D)/mkcramfs $(HOST_DIR)/usr/bin/mkcramfs
30 $(INSTALL) -D -m 755 $(@D)/cramfsck $(HOST_DIR)/usr/bin/cramfsck
31 endef
33 $(eval $(generic-package))
34 $(eval $(host-generic-package))