Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. 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_DIR)/usr/include" \
  38. LDFLAGS="-L$(STAGING_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