Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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:= ${MASTER_SITE_SOURCEFORGE:=libpng/zlib/}
  12. PKG_SUBPKGS:= ZLIB ZLIB_DEV
  13. PKGSD_ZLIB_DEV:= development files for zlib
  14. PKGSC_ZLIB_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},${PKGSD_ZLIB_DEV},${PKGSC_ZLIB_DEV}))
  22. SUB_INSTALLS-y:=
  23. SUB_INSTALLS-m:=
  24. SUB_INSTALLS-${ADK_PACKAGE_ZLIB_DEV}+= zlib-dev-install
  25. CONFIG_STYLE:= manual
  26. CONFIGURE_ENV+= uname=Linux
  27. ifeq ($(ADK_NATIVE),)
  28. COPTS:= $(TARGET_CONFIGURE_OPTS)
  29. endif
  30. ifeq ($(ADK_STATIC),)
  31. CONFIGURE_OPTS:= --shared
  32. endif
  33. do-configure:
  34. (cd $(WRKBUILD); $(COPTS) \
  35. uname="Linux" \
  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) \
  42. );
  43. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  44. ${INSTALL_DIR} ${IDIR_ZLIB}/usr/lib
  45. ${CP} ${WRKBUILD}/libz.so* ${IDIR_ZLIB}/usr/lib
  46. zlib-dev-install:
  47. ${INSTALL_DIR} ${IDIR_ZLIB_DEV}/usr/include
  48. ${CP} ${WRKBUILD}/*.h ${IDIR_ZLIB_DEV}/usr/include
  49. include ${TOPDIR}/mk/pkg-bottom.mk