Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= bzip2
  5. PKG_VERSION:= 1.0.6
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 00b516f4704d4a7cb50a1d97e6e8e15b
  8. PKG_DESCR:= bzip2 compression utility
  9. PKG_SECTION:= archive
  10. PKG_DEPENDS:= libbz2
  11. PKG_URL:= http://www.bzip.org/
  12. PKG_SITES:= http://www.bzip.org/${PKG_VERSION}/
  13. PKG_LIBNAME:= libbz2
  14. PKG_OPTS:= dev
  15. PKG_SUBPKGS:= BZIP2 LIBBZ2
  16. PKGSD_LIBBZ2:= bzip2 compression library
  17. PKGSC_LIBBZ2:= libs
  18. ifeq ($(ADK_STATIC),y)
  19. PKG_OPTS+= libmix
  20. endif
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,BZIP2,bzip2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,LIBBZ2,libbz2,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBBZ2},${PKGSC_LIBBZ2},${PKG_OPTS}))
  24. MAKE_FILE:= Makefile-libbz2_so
  25. CONFIG_STYLE:= manual
  26. TARGET_CFLAGS+= -fPIC
  27. XAKE_FLAGS+= PREFIX=${WRKINST}/usr
  28. INSTALL_STYLE:= manual
  29. libbz2-install:
  30. ${INSTALL_DIR} ${IDIR_LIBBZ2}/usr/lib
  31. $(CP) ${WRKBUILD}/libbz2.so* \
  32. ${IDIR_LIBBZ2}/usr/lib
  33. $(CP) ${WRKBUILD}/libbz2.so* \
  34. ${STAGING_DIR}/usr/lib
  35. (cd ${STAGING_DIR}/usr/lib; ln -sf libbz2.so.1.0.6 libbz2.so)
  36. $(CP) $(WRKBUILD)/bzlib.h $(STAGING_DIR)/usr/include
  37. ${INSTALL_DIR} $(IDIR_LIBBZ2_DEV)/usr/include
  38. $(CP) $(WRKBUILD)/bzlib.h $(IDIR_LIBBZ2_DEV)/usr/include
  39. bzip2-install:
  40. ${INSTALL_DIR} ${IDIR_BZIP2}/usr/bin
  41. ${INSTALL_BIN} ${WRKBUILD}/bzip2-shared ${IDIR_BZIP2}/usr/bin/bzip2
  42. include ${TOPDIR}/mk/pkg-bottom.mk