1
0

Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_BUILDDEP:= bzip2-host
  11. PKG_DEPENDS:= libbz2
  12. PKG_URL:= http://www.bzip.org/
  13. PKG_SITES:= http://www.bzip.org/${PKG_VERSION}/
  14. PKG_LIBNAME:= libbz2
  15. PKG_OPTS:= dev
  16. PKG_SUBPKGS:= BZIP2 LIBBZ2
  17. PKGSD_LIBBZ2:= bzip2 compression library
  18. PKGSC_LIBBZ2:= libs
  19. ifeq ($(ADK_STATIC),y)
  20. PKG_OPTS+= libmix
  21. endif
  22. include ${TOPDIR}/mk/host.mk
  23. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call HOST_template,BZIP2,bzip2,${PKG_VERSION}-${PKG_RELEASE}))
  25. $(eval $(call PKG_template,BZIP2,bzip2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,LIBBZ2,libbz2,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBBZ2},${PKGSC_LIBBZ2},${PKG_OPTS}))
  27. HOST_STYLE:= manual
  28. MAKE_FILE:= Makefile-libbz2_so
  29. CONFIG_STYLE:= manual
  30. TARGET_CFLAGS+= -fPIC
  31. XAKE_FLAGS+= PREFIX=${WRKINST}/usr
  32. INSTALL_STYLE:= manual
  33. host-build:
  34. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  35. PREFIX=${HOST_WRKINST}/usr ${HOST_ALL_TARGET})
  36. bzip2-hostinstall:
  37. ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/lib
  38. ${INSTALL_DIR} $(STAGING_HOST_DIR)/usr/include
  39. $(CP) ${WRKBUILD}/libbz2.so* \
  40. ${STAGING_HOST_DIR}/usr/lib
  41. (cd ${STAGING_HOST_DIR}/usr/lib; ln -sf libbz2.so.1.0.6 libbz2.so)
  42. $(CP) $(WRKBUILD)/bzlib.h $(STAGING_HOST_DIR)/usr/include
  43. libbz2-install:
  44. ${INSTALL_DIR} ${IDIR_LIBBZ2}/usr/lib
  45. $(CP) ${WRKBUILD}/libbz2.so* \
  46. ${IDIR_LIBBZ2}/usr/lib
  47. $(CP) ${WRKBUILD}/libbz2.so* \
  48. ${STAGING_DIR}/usr/lib
  49. (cd ${STAGING_DIR}/usr/lib; ln -sf libbz2.so.1.0.6 libbz2.so)
  50. $(CP) $(WRKBUILD)/bzlib.h $(STAGING_DIR)/usr/include
  51. ${INSTALL_DIR} $(IDIR_LIBBZ2_DEV)/usr/include
  52. $(CP) $(WRKBUILD)/bzlib.h $(IDIR_LIBBZ2_DEV)/usr/include
  53. bzip2-install:
  54. ${INSTALL_DIR} ${IDIR_BZIP2}/usr/bin
  55. ${INSTALL_BIN} ${WRKBUILD}/bzip2-shared ${IDIR_BZIP2}/usr/bin/bzip2
  56. include ${TOPDIR}/mk/host-bottom.mk
  57. include ${TOPDIR}/mk/pkg-bottom.mk