Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.3
  6. PKG_RELEASE:= 6
  7. PKG_MD5SUM:= dee233bf288ee795ac96a98cc2e369b6
  8. PKG_DESCR:= implementation of the deflate compression method (library)
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.zlib.net
  11. PKG_SITES:= http://www.zlib.net/ \
  12. ${MASTER_SITE_SOURCEFORGE:=zlib/}
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,ZLIB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,ZLIB_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIGURE_STYLE= manual
  18. BUILD_STYLE= auto
  19. INSTALL_STYLE= auto
  20. ifeq ($(ADK_NATIVE),n)
  21. COPTS:= $(TARGET_CONFIGURE_OPTS)
  22. endif
  23. do-configure:
  24. (cd $(WRKBUILD); $(COPTS) \
  25. CFLAGS="$(TARGET_CFLAGS) -fPIC" \
  26. CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
  27. LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
  28. ./configure \
  29. --prefix=$(STAGING_DIR)/usr \
  30. --includedir=$(STAGING_DIR)/usr/include \
  31. --shared \
  32. );
  33. post-install:
  34. ${INSTALL_DIR} ${IDIR_ZLIB}/usr/lib
  35. ${CP} ${WRKBUILD}/libz.so* ${IDIR_ZLIB}/usr/lib
  36. ${INSTALL_DIR} ${IDIR_ZLIB_DEV}/usr/include
  37. ${CP} ${WRKBUILD}/*.h ${IDIR_ZLIB_DEV}/usr/include
  38. include ${TOPDIR}/mk/pkg-bottom.mk