diff options
author | Phil Sutter <phil@nwl.cc> | 2017-03-08 05:33:28 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-17 04:00:53 +0100 |
commit | 1a601420868909a70d52761914201de26bf84ff1 (patch) | |
tree | 71875dd205787b234df069b61f00bbff8daf2469 /package/zlib | |
parent | f85cada8b7e793086fe140716c4d47622cdbc2b7 (diff) |
package/zlib: Enable host-package
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'package/zlib')
-rw-r--r-- | package/zlib/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/zlib/Makefile b/package/zlib/Makefile index 2da7e98bf..a60ddbc44 100644 --- a/package/zlib/Makefile +++ b/package/zlib/Makefile @@ -13,10 +13,29 @@ PKG_URL:= http://www.zlib.net/ PKG_SITES:= http://zlib.net/ PKG_OPTS:= dev +include $(ADK_TOPDIR)/mk/host.mk include $(ADK_TOPDIR)/mk/package.mk +$(eval $(call HOST_template,ZLIB,zlib,$(PKG_VERSION)-$(PKG_RELEASE))) $(eval $(call PKG_template,ZLIB,zlib,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS))) +HOST_STYLE:= auto +HOST_CONFIG_STYLE:= manual +HOST_CONFIGURE_ENV+= uname=Linux +HOST_ALL_TARGET:= libz.so.$(PKG_VERSION) + +host-configure: + (cd $(WRKBUILD); \ + uname="Linux" \ + $(HOST_CONFIGURE_OPTS) \ + CFLAGS="$(HOST_CFLAGS) -fPIC" \ + CPPFLAGS="-I$(STAGING_HOST_DIR)/usr/include" \ + LDFLAGS="-L$(STAGING_HOST_DIR)/usr/lib" \ + ./configure \ + --prefix=/usr \ + --shared \ + ); + CONFIG_STYLE:= manual CONFIGURE_ENV+= uname=Linux @@ -47,4 +66,5 @@ zlib-install: $(INSTALL_DIR) $(IDIR_ZLIB)/usr/lib $(CP) $(WRKINST)/usr/lib/libz.so* $(IDIR_ZLIB)/usr/lib +include ${ADK_TOPDIR}/mk/host-bottom.mk include $(ADK_TOPDIR)/mk/pkg-bottom.mk |