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
|
|
|
|
|
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) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I. -DUNIX" \
|
|
|
|
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) \
|
|
|
|
CFLAGS="$(HOST_CFLAGS) -I. -DUNIX" \
|
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))
|