fix module version
[openadk.git] / package / zlib / Makefile
blobafe3c5cce899484e999778136cb01660d4c8b619
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= zlib
7 PKG_VERSION:= 1.2.8
8 PKG_RELEASE:= 1
9 PKG_HASH:= 831df043236df8e9a7667b9e3bb37e1fcb1220a0f163b6de2626774b9590d057
10 PKG_DESCR:= implementation of the deflate compression method
11 PKG_SECTION:= libs/comp
12 PKG_URL:= http://www.zlib.net/
13 PKG_SITES:= http://zlib.net/
14 PKG_OPTS:= dev
16 include $(ADK_TOPDIR)/mk/package.mk
18 $(eval $(call PKG_template,ZLIB,zlib,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
20 CONFIG_STYLE:= manual
21 CONFIGURE_ENV+= uname=Linux
23 ifeq ($(ADK_TARGET_USE_STATIC_LIBS),)
24 CONFIGURE_OPTS:= --shared
25 endif
27 ALL_TARGET:= libz.a
28 ifeq ($(ADK_TARGET_USE_STATIC_LIBS),)
29 ALL_TARGET+= libz.so.$(PKG_VERSION)
30 endif
32 do-configure:
33 (cd $(WRKBUILD); \
34 uname="Linux" \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="$(TARGET_CFLAGS) -fPIC" \
37 CPPFLAGS="-I$(STAGING_TARGET_DIR)/usr/include" \
38 LDFLAGS="-L$(STAGING_TARGET_DIR)/usr/lib" \
39 ./configure \
40 --prefix=/usr \
41 $(CONFIGURE_OPTS) \
44 zlib-install:
45 $(INSTALL_DIR) $(IDIR_ZLIB)/usr/lib
46 $(CP) $(WRKINST)/usr/lib/libz.so* $(IDIR_ZLIB)/usr/lib
48 include $(ADK_TOPDIR)/mk/pkg-bottom.mk