Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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:= e2fsprogs
  5. PKG_VERSION:= 1.41.9
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 52f60a9e19a02f142f5546f1b5681927
  8. PKG_DESCR:= Ext2/3/4 filesystem utilities
  9. PKG_SECTION:= admin
  10. PKG_DEPENDS:= libcom-err libuuid libblkid libpthread
  11. PKG_URL:= http://e2fsprogs.sourceforge.net
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=e2fsprogs/}
  13. PKG_DESCR_UUID:= UUID library
  14. PKG_SECTION_UUID:= libs
  15. PKG_DESCR_COM_ERR:= Common error library
  16. PKG_SECTION_COM_ERR:= libs
  17. PKG_DESCR_BLKID:= Libblkid
  18. PKG_SECTION_BLKID:= libs
  19. PKG_DESCR_SS:= Subsystem command parsing library
  20. PKG_SECTION_SS:= libs
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,E2FSPROGS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_UUID},${PKG_SECTION_UUID}))
  24. $(eval $(call PKG_template,LIBCOM_ERR,libcom-err,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_COM_ERR},${PKG_SECTION_COM_ERR}))
  25. $(eval $(call PKG_template,LIBSS,libss,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_SS},${PKG_SECTION_SS}))
  26. $(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_BLKID},${PKG_SECTION_BLKID}))
  27. CONFIGURE_STYLE:= gnu
  28. CONFIGURE_ARGS+= --enable-elf-shlibs \
  29. --disable-tls \
  30. --enable-dynamic-e2fsck
  31. BUILD_STYLE:= auto
  32. INSTALL_STYLE:= auto
  33. INSTALL_TARGET+= install-libs
  34. pre-build:
  35. ${MAKE} -C ${WRKBUILD}/util \
  36. BUILDCC="${HOSTCC}" \
  37. CFLAGS="" \
  38. LDFLAGS="" \
  39. CPPFLAGS="" \
  40. subst
  41. post-install:
  42. ${INSTALL_DIR} ${IDIR_E2FSPROGS}/usr/lib ${IDIR_E2FSPROGS}/usr/sbin
  43. ${INSTALL_BIN} ${WRKINST}/usr/sbin/e2fsck ${IDIR_E2FSPROGS}/usr/sbin/
  44. ${INSTALL_BIN} ${WRKINST}/usr/sbin/mke2fs ${IDIR_E2FSPROGS}/usr/sbin/
  45. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tune2fs ${IDIR_E2FSPROGS}/usr/sbin/
  46. ${CP} ${WRKINST}/usr/lib/lib{e2p,ext2fs}.so.* \
  47. ${IDIR_E2FSPROGS}/usr/lib/
  48. # subpackage libblkid
  49. ${INSTALL_DIR} ${IDIR_LIBBLKID}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libblkid.so* \
  51. ${IDIR_LIBBLKID}/usr/lib/
  52. # subpackage libcom_err
  53. ${INSTALL_DIR} ${IDIR_LIBCOM_ERR}/usr/lib
  54. ${CP} ${WRKINST}/usr/lib/libcom_err.so* \
  55. ${IDIR_LIBCOM_ERR}/usr/lib/
  56. # subpackage libss
  57. ${INSTALL_DIR} ${IDIR_LIBSS}/usr/lib
  58. ${CP} ${WRKINST}/usr/lib/libss.so* \
  59. ${IDIR_LIBSS}/usr/lib/
  60. # subpackage libuuid
  61. ${INSTALL_DIR} ${IDIR_LIBUUID}/usr/lib
  62. ${CP} ${WRKINST}/usr/lib/libuuid.so* \
  63. ${IDIR_LIBUUID}/usr/lib/
  64. # install some headers/apps explicitely
  65. ${INSTALL_DIR} ${STAGING_DIR}/usr/include/uuid
  66. ${CP} ${WRKBUILD}/lib/uuid/uuid.h \
  67. ${STAGING_DIR}/usr/include/uuid
  68. ${CP} ${WRKINST}/usr/bin/compile_et ${STAGING_TOOLS}/bin
  69. include ${TOPDIR}/mk/pkg-bottom.mk