2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-14 04:30:00 +01:00
|
|
|
#
|
|
|
|
# infozip
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-01-14 04:30:00 +01:00
|
|
|
INFOZIP_VERSION = 30
|
|
|
|
INFOZIP_SOURCE = zip$(INFOZIP_VERSION).tgz
|
|
|
|
INFOZIP_SITE = ftp://ftp.info-zip.org/pub/infozip/src
|
|
|
|
INFOZIP_LICENSE = Info-ZIP
|
|
|
|
INFOZIP_LICENSE_FILES = LICENSE
|
|
|
|
|
2014-01-30 23:15:44 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
|
|
INFOZIP_DEPENDENCIES += bzip2
|
|
|
|
endif
|
|
|
|
|
2015-01-24 16:23:41 +01:00
|
|
|
# Infozip's default CFLAGS.
|
|
|
|
INFOZIP_CFLAGS = -I. -DUNIX
|
|
|
|
|
2015-01-24 16:23:42 +01:00
|
|
|
# Disable the support of 16-bit UIDs/GIDs, the test in unix/configure was
|
|
|
|
# removed since it can't work for cross-compilation.
|
|
|
|
INFOZIP_CFLAGS += -DUIDGID_NOT_16BIT
|
|
|
|
|
2015-01-24 16:23:44 +01:00
|
|
|
# infozip already defines _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE when
|
|
|
|
# necessary, redefining it on the command line causes some warnings.
|
|
|
|
INFOZIP_TARGET_CFLAGS = \
|
|
|
|
$(filter-out -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS))
|
|
|
|
|
2013-01-14 04:30:00 +01:00
|
|
|
define INFOZIP_BUILD_CMDS
|
2014-01-30 23:15:28 +01:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
2015-01-24 16:23:44 +01:00
|
|
|
CFLAGS="$(INFOZIP_TARGET_CFLAGS) $(INFOZIP_CFLAGS)" \
|
2014-01-30 23:15:28 +01:00
|
|
|
AS="$(TARGET_CC) -c" \
|
|
|
|
-f unix/Makefile generic
|
2013-01-14 04:30:00 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define INFOZIP_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install \
|
|
|
|
prefix=$(TARGET_DIR)/usr
|
|
|
|
endef
|
|
|
|
|
2014-04-02 00:24:38 +02:00
|
|
|
define HOST_INFOZIP_BUILD_CMDS
|
|
|
|
$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) \
|
2015-01-24 16:23:41 +01:00
|
|
|
CFLAGS="$(HOST_CFLAGS) $(INFOZIP_CFLAGS)" \
|
2014-08-16 00:22:55 +02:00
|
|
|
AS="$(HOSTCC) -c" \
|
2014-04-02 00:24:38 +02:00
|
|
|
-f unix/Makefile generic
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_INFOZIP_INSTALL_CMDS
|
|
|
|
$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install \
|
|
|
|
prefix=$(HOST_DIR)/usr
|
|
|
|
endef
|
|
|
|
|
2013-01-14 04:30:00 +01:00
|
|
|
$(eval $(generic-package))
|
2014-04-02 00:24:38 +02:00
|
|
|
$(eval $(host-generic-package))
|