Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= zlib
  7. PKG_VERSION:= 1.2.3
  8. PKG_RELEASE:= 5
  9. PKG_MD5SUM:= dee233bf288ee795ac96a98cc2e369b6
  10. PKG_DESCR:= implementation of the deflate compression method (library)
  11. PKG_SECTION:= libs
  12. PKG_URL:= http://www.zlib.net
  13. PKG_SITES:= http://www.zlib.net/ \
  14. ${MASTER_SITE_SOURCEFORGE:=zlib/}
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,ZLIB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_STYLE= manual
  19. BUILD_STYLE= auto
  20. INSTALL_STYLE= auto
  21. do-configure:
  22. (cd $(WRKBUILD); \
  23. $(TARGET_CONFIGURE_OPTS) \
  24. CFLAGS="$(TARGET_CFLAGS) -fPIC" \
  25. CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
  26. LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
  27. ./configure \
  28. --prefix=$(STAGING_DIR)/usr \
  29. --includedir=$(STAGING_DIR)/usr/include \
  30. --shared \
  31. );
  32. post-install:
  33. ${INSTALL_DIR} ${IDIR_ZLIB}/usr/lib
  34. ${CP} ${WRKBUILD}/libz.so* ${IDIR_ZLIB}/usr/lib
  35. include ${TOPDIR}/mk/pkg-bottom.mk