Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.7
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 2ab442d169156f34c379c968f3f482dd
  8. PKG_DESCR:= implementation of the deflate compression method
  9. PKG_SECTION:= libs/misc
  10. PKG_URL:= http://www.zlib.net/
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libpng/zlib/}
  12. PKG_OPTS:= dev
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,ZLIB,zlib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  16. CONFIG_STYLE:= manual
  17. CONFIGURE_ENV+= uname=Linux
  18. ifeq ($(ADK_STATIC),)
  19. CONFIGURE_OPTS:= --shared
  20. endif
  21. ALL_TARGET:= libz.a libz.so.$(PKG_VERSION)
  22. do-configure:
  23. (cd $(WRKBUILD); \
  24. uname="Linux" \
  25. $(TARGET_CONFIGURE_OPTS) \
  26. CFLAGS="$(TARGET_CFLAGS) -fPIC" \
  27. CPPFLAGS="-I$(STAGING_TARGET_DIR)/usr/include" \
  28. LDFLAGS="-L$(STAGING_TARGET_DIR)/usr/lib" \
  29. ./configure \
  30. --prefix=/usr \
  31. $(CONFIGURE_OPTS) \
  32. );
  33. zlib-install:
  34. ${INSTALL_DIR} ${IDIR_ZLIB}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libz.so* ${IDIR_ZLIB}/usr/lib
  36. include ${TOPDIR}/mk/pkg-bottom.mk