aboutsummaryrefslogtreecommitdiff
path: root/package/infozip
diff options
context:
space:
mode:
authorGravatar Maxime Hadjinlian <maxime.hadjinlian@gmail.com>2014-04-02 00:24:38 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-03 20:15:05 +0200
commitac369eec95dafbe2069d27e0a8bb6dbdd5f1f5af (patch)
tree52401bb06b194658237aec50b079d71bb0a1f08a /package/infozip
parentf8a2497287fa8fc0afa7698c30284a7674723aa2 (diff)
downloadbuildroot-ac369eec95dafbe2069d27e0a8bb6dbdd5f1f5af.tar.gz
buildroot-ac369eec95dafbe2069d27e0a8bb6dbdd5f1f5af.tar.bz2
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>
Diffstat (limited to 'package/infozip')
-rw-r--r--package/infozip/infozip.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/infozip/infozip.mk b/package/infozip/infozip.mk
index 8e5122405c..42cd1db302 100644
--- a/package/infozip/infozip.mk
+++ b/package/infozip/infozip.mk
@@ -26,4 +26,17 @@ define INFOZIP_INSTALL_TARGET_CMDS
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))