kumquat-buildroot/package/infozip/infozip.mk
Maxime Hadjinlian ac369eec95 infozip: Add a host variant
Adding a host variant to the package infozip. It will be used by XBMC.

[Thomas: use HOST_CONFIGURE_OPTS instead of TARGET_CONFIGURE_OPTS in
the host installation step.]

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-04-03 20:15:05 +02:00

43 lines
1.1 KiB
Makefile

################################################################################
#
# infozip
#
################################################################################
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
ifeq ($(BR2_PACKAGE_BZIP2),y)
INFOZIP_DEPENDENCIES += bzip2
endif
define INFOZIP_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
CFLAGS="$(TARGET_CFLAGS) -I. -DUNIX" \
AS="$(TARGET_CC) -c" \
-f unix/Makefile generic
endef
define INFOZIP_INSTALL_TARGET_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install \
prefix=$(TARGET_DIR)/usr
endef
define HOST_INFOZIP_BUILD_CMDS
$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) \
CFLAGS="$(HOST_CFLAGS) -I. -DUNIX" \
AS="$(HOST_CC) -c" \
-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
$(eval $(generic-package))
$(eval $(host-generic-package))