Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. ALL_TARGET:= libz.a libz.so.1.2.5
  31. do-configure:
  32. (cd $(WRKBUILD); $(COPTS) \
  33. uname="Linux" \
  34. CFLAGS="$(TARGET_CFLAGS) -fPIC" \
  35. CPPFLAGS="-I$(STAGING_TARGET_DIR)/usr/include" \
  36. LDFLAGS="-L$(STAGING_TARGET_DIR)/usr/lib" \
  37. ./configure \
  38. --prefix=/usr \
  39. $(CONFIGURE_OPTS) \
  40. );
  41. post-install:
  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