Commit ac369eec authored by Maxime Hadjinlian's avatar Maxime Hadjinlian Committed by Thomas Petazzoni
Browse files

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: default avatarMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Reviewed-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: default avatarBernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent f8a24972
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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))