Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. CONFIG_STYLE:= manual
  23. CONFIGURE_ENV+= uname=Linux
  24. ifeq ($(ADK_NATIVE),)
  25. COPTS:= $(TARGET_CONFIGURE_OPTS)
  26. endif
  27. ifeq ($(ADK_STATIC),)
  28. CONFIGURE_OPTS:= --shared
  29. endif
  30. do-configure:
  31. (cd $(WRKBUILD); $(COPTS) \
  32. uname="Linux" \
  33. CFLAGS="$(TARGET_CFLAGS) -fPIC" \
  34. CPPFLAGS="-I$(STAGING_TARGET_DIR)/usr/include" \
  35. LDFLAGS="-L$(STAGING_TARGET_DIR)/usr/lib" \
  36. ./configure \
  37. --prefix=/usr \
  38. $(CONFIGURE_OPTS) \
  39. );
  40. zlib-install:
  41. ${INSTALL_DIR} ${IDIR_ZLIB}/usr/lib
  42. ${CP} ${WRKBUILD}/libz.so* ${IDIR_ZLIB}/usr/lib
  43. zlib-dev-install:
  44. ${INSTALL_DIR} ${IDIR_ZLIB_DEV}/usr/include
  45. ${CP} ${WRKBUILD}/*.h ${IDIR_ZLIB_DEV}/usr/include
  46. include ${TOPDIR}/mk/pkg-bottom.mk