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