Makefile 1.2 KB

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