Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= zlib
  5. PKG_VERSION:= 1.2.7
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 2ab442d169156f34c379c968f3f482dd
  8. PKG_DESCR:= implementation of the deflate compression method
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.zlib.net/
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libpng/zlib/}
  12. PKG_OPTS:= dev
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. ifeq ($(ADK_STATIC),y)
  15. PKG_OPTS+= libonly
  16. endif
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,ZLIB,zlib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. CONFIG_STYLE:= manual
  20. CONFIGURE_ENV+= uname=Linux
  21. ifeq ($(ADK_NATIVE),)
  22. COPTS:= $(TARGET_CONFIGURE_OPTS)
  23. endif
  24. ifeq ($(ADK_STATIC),)
  25. CONFIGURE_OPTS:= --shared
  26. endif
  27. ALL_TARGET:= libz.a libz.so.$(PKG_VERSION)
  28. do-configure:
  29. (cd $(WRKBUILD); $(COPTS) \
  30. uname="Linux" \
  31. CFLAGS="$(TARGET_CFLAGS) -fPIC" \
  32. CPPFLAGS="-I$(STAGING_TARGET_DIR)/usr/include" \
  33. LDFLAGS="-L$(STAGING_TARGET_DIR)/usr/lib" \
  34. ./configure \
  35. --prefix=/usr \
  36. $(CONFIGURE_OPTS) \
  37. );
  38. zlib-install:
  39. ${INSTALL_DIR} ${IDIR_ZLIB}/usr/lib
  40. ${CP} ${WRKINST}/usr/lib/libz.so* ${IDIR_ZLIB}/usr/lib
  41. include ${TOPDIR}/mk/pkg-bottom.mk