Makefile 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= e2fsprogs
  5. PKG_VERSION:= 1.42.10
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 62bfe2fe0a194c5c37165789ac2825a8
  8. PKG_DESCR:= ext2/3/4 filesystem utilities
  9. PKG_SECTION:= sys/fs
  10. PKG_DEPENDS:= libpthread
  11. PKG_BUILDDEP:= util-linux
  12. PKG_URL:= http://e2fsprogs.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=e2fsprogs/}
  14. PKG_OPTS:= dev
  15. PKG_NOPARALLEL:= 1
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  17. PKG_SUBPKGS:= LIBE2FS LIBCOM_ERR LIBSS
  18. PKG_SUBPKGS+= RESIZE2FS TUNE2FS E2FSCK MKE2FS
  19. PKGSD_LIBE2FS:= e2fsprogs library
  20. PKGSC_LIBE2FS:= libs/misc
  21. PKGSD_LIBCOM_ERR:= common error library
  22. PKGSC_LIBCOM_ERR:= libs/misc
  23. PKGSD_LIBSS:= subsystem command parsing library
  24. PKGSC_LIBSS:= libs/misc
  25. PKGSD_RESIZE2FS:= ext2/3/4 resize utility
  26. PKGSC_RESIZE2FS:= sys/fs
  27. PKGSS_RESIZE2FS:= libe2fs libcom-err libblkid
  28. PKGSD_TUNE2FS:= ext2/3/4 tune utility
  29. PKGSC_TUNE2FS:= sys/fs
  30. PKGSS_TUNE2FS:= libe2fs libcom-err libblkid libuuid
  31. PKGSD_E2FSCK:= ext2/3/4 filesystem check utility
  32. PKGSC_E2FSCK:= sys/fs
  33. PKGSS_E2FSCK:= libe2fs libcom-err libblkid libuuid
  34. PKGSD_MKE2FS:= ext2/3/4 filesystem creation utility
  35. PKGSC_MKE2FS:= sys/fs
  36. PKGSS_MKE2FS:= libe2fs libcom-err libblkid libuuid libncurses
  37. include ${ADK_TOPDIR}/mk/package.mk
  38. $(eval $(call PKG_template,LIBE2FS,libe2fs,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBE2FS},${PKGSC_LIBE2FS}))
  39. $(eval $(call PKG_template,LIBCOM_ERR,libcom-err,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBCOM_ERR},${PKGSC_LIBCOM_ERR}))
  40. $(eval $(call PKG_template,LIBSS,libss,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBSS},${PKGSC_LIBSS}))
  41. $(eval $(call PKG_template,TUNE2FS,tune2fs,${PKG_VERSION}-${PKG_RELEASE},$(PKGSS_TUNE2FS),${PKGSD_TUNE2FS},${PKGSC_TUNE2FS}))
  42. $(eval $(call PKG_template,RESIZE2FS,resize2fs,${PKG_VERSION}-${PKG_RELEASE},$(PKGSS_RESIZE2FS),${PKGSD_RESIZE2FS},${PKGSC_RESIZE2FS}))
  43. $(eval $(call PKG_template,MKE2FS,mke2fs,${PKG_VERSION}-${PKG_RELEASE},$(PKGSS_MKE2FS),${PKGSD_MKE2FS},${PKGSC_MKE2FS}))
  44. $(eval $(call PKG_template,E2FSCK,e2fsck,${PKG_VERSION}-${PKG_RELEASE},$(PKGSS_E2FSCK),${PKGSD_E2FSCK},${PKGSC_E2FSCK}))
  45. CONFIGURE_ARGS+= --enable-elf-shlibs \
  46. --disable-rpath \
  47. --disable-libuuid \
  48. --disable-libblkid \
  49. --disable-debugfs \
  50. --disable-defrag
  51. TARGET_CFLAGS+= $(TARGET_CPPFLAGS) -I$(STAGING_TARGET_DIR)/usr/include
  52. MAKE_FLAGS+= BUILD_CC="${HOST_CC}" \
  53. BUILD_CFLAGS="${HOST_CFLAGS} ${HOST_CPPFLAGS} -I${WRKSRC}/lib -I." \
  54. BUILD_LDFLAGS="${HOST_LDFLAGS}"
  55. libe2fs-install:
  56. ${INSTALL_DIR} ${IDIR_LIBE2FS}/etc
  57. ${INSTALL_DATA} ${WRKBUILD}/misc/mke2fs.conf ${IDIR_LIBE2FS}/etc
  58. ${INSTALL_DIR} ${IDIR_LIBE2FS}/usr/lib
  59. ${CP} ${WRKINST}/usr/lib/lib{e2p,ext2fs}.so.* \
  60. ${IDIR_LIBE2FS}/usr/lib
  61. e2fsck-install:
  62. ${INSTALL_DIR} ${IDIR_E2FSCK}/usr/sbin
  63. ${INSTALL_BIN} ${WRKINST}/usr/sbin/e2fsck ${IDIR_E2FSCK}/usr/sbin
  64. cd $(IDIR_E2FSCK)/usr/sbin && ln -sf e2fsck fsck.ext2
  65. cd $(IDIR_E2FSCK)/usr/sbin && ln -sf e2fsck fsck.ext3
  66. cd $(IDIR_E2FSCK)/usr/sbin && ln -sf e2fsck fsck.ext4
  67. mke2fs-install:
  68. ${INSTALL_DIR} ${IDIR_MKE2FS}/usr/sbin
  69. ${INSTALL_BIN} ${WRKINST}/usr/sbin/mke2fs ${IDIR_MKE2FS}/usr/sbin
  70. cd $(IDIR_MKE2FS)/usr/sbin && ln -sf mke2fs mkfs.ext2
  71. cd $(IDIR_MKE2FS)/usr/sbin && ln -sf mke2fs mkfs.ext3
  72. cd $(IDIR_MKE2FS)/usr/sbin && ln -sf mke2fs mkfs.ext4
  73. tune2fs-install:
  74. ${INSTALL_DIR} ${IDIR_TUNE2FS}/usr/sbin
  75. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tune2fs ${IDIR_TUNE2FS}/usr/sbin
  76. resize2fs-install:
  77. ${INSTALL_DIR} ${IDIR_RESIZE2FS}/usr/sbin
  78. ${INSTALL_BIN} ${WRKINST}/usr/sbin/resize2fs ${IDIR_RESIZE2FS}/usr/sbin
  79. libcom-err-install:
  80. ${INSTALL_DIR} ${IDIR_LIBCOM_ERR}/usr/lib
  81. ${CP} ${WRKINST}/usr/lib/libcom_err.so* \
  82. ${IDIR_LIBCOM_ERR}/usr/lib
  83. libss-install:
  84. ${INSTALL_DIR} ${IDIR_LIBSS}/usr/lib
  85. ${CP} ${WRKINST}/usr/lib/libss.so* \
  86. ${IDIR_LIBSS}/usr/lib
  87. include ${ADK_TOPDIR}/mk/pkg-bottom.mk