diff options
author | John Crispin <blogic@openwrt.org> | 2015-10-01 14:16:37 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-10-01 14:16:37 +0000 |
commit | 3e1022acc5a5bbd8ac7d78ba78728de444973f8c (patch) | |
tree | 28f118676c69004a627f75a3be2462eb27a520de | |
parent | f259e7398565e1b452af94c8f27d5493e1b611e8 (diff) | |
download | upstream-3e1022acc5a5bbd8ac7d78ba78728de444973f8c.tar.gz upstream-3e1022acc5a5bbd8ac7d78ba78728de444973f8c.tar.bz2 upstream-3e1022acc5a5bbd8ac7d78ba78728de444973f8c.zip |
bzip2: add host build
Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r46470
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47071 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/utils/bzip2/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/utils/bzip2/Makefile b/package/utils/bzip2/Makefile index 493ccc9317..e1c7b97ffc 100644 --- a/package/utils/bzip2/Makefile +++ b/package/utils/bzip2/Makefile @@ -19,6 +19,7 @@ PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org> PKG_LICENSE:=BZIP2 PKG_LICENSE_FILES:=LICENSE +include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk define Package/bzip2/Default @@ -83,5 +84,25 @@ define Package/bzip2/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/bzip2-shared $(1)/usr/bin/bzip2 endef +HOST_CFLAGS += \ + $(FPIC) \ + $(HOST_LDFLAGS) + +HOST_MAKE_FLAGS+= \ + -f Makefile-libbz2_so \ + CFLAGS="$(HOST_CFLAGS)" \ + all + +HOST_CONFIGURE_ARGS+= \ + --prefix=$(STAGING_DIR_HOST) + +define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/ + $(MAKE) -C $(HOST_BUILD_DIR) PREFIX=$(STAGING_DIR_HOST)/usr/ install +# $(INSTALL_BIN) $(HOST_BUILD_DIR)/Parser/pgen $(STAGING_DIR_HOST)/bin/pgen2 +endef + +$(eval $(call HostBuild)) + $(eval $(call BuildPackage,libbz2)) $(eval $(call BuildPackage,bzip2)) |