Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= be1e89810e66150f5b0327984d8625a0
  8. PKG_DESCR:= implementation of the deflate compression method
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.zlib.net
  11. PKG_SITES:= http://www.zlib.net/ \
  12. ${MASTER_SITE_SOURCEFORGE:=zlib/}
  13. PKG_DESCR_LIB_DEV:= development files for zlib
  14. PKG_SECTION_LIB_DEV:= devel
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. ifeq ($(ADK_STATIC),y)
  17. PKG_OPTS:= libonly
  18. endif
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,ZLIB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. $(eval $(call PKG_template,ZLIB_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_LIB_DEV},${PKG_SECTION_LIB_DEV}))
  22. SUB_INSTALLS-y:=
  23. SUB_INSTALLS-m:=
  24. SUB_INSTALLS-${ADK_PACKAGE_ZLIB_DEV}+= zlib-dev-install
  25. CONFIG_STYLE:= manual
  26. ifeq ($(ADK_NATIVE),)
  27. COPTS:= $(TARGET_CONFIGURE_OPTS)
  28. endif
  29. ifeq ($(ADK_STATIC),)
  30. CONFIGURE_OPTS:= --shared
  31. endif
  32. do-configure:
  33. (cd $(WRKBUILD); $(COPTS) \
  34. CFLAGS="$(TARGET_CFLAGS) -fPIC" \
  35. CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
  36. LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
  37. ./configure \
  38. --prefix=/usr \
  39. $(CONFIGURE_OPTS) \
  40. );
  41. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  42. ${INSTALL_DIR} ${IDIR_ZLIB}/usr/lib
  43. ${CP} ${WRKBUILD}/libz.so* ${IDIR_ZLIB}/usr/lib
  44. zlib-dev-install:
  45. ${INSTALL_DIR} ${IDIR_ZLIB_DEV}/usr/include
  46. ${CP} ${WRKBUILD}/*.h ${IDIR_ZLIB_DEV}/usr/include
  47. include ${TOPDIR}/mk/pkg-bottom.mk