Makefile 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.14
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 05f70470aea2ef7efbb0845b2b116720
  8. PKG_DESCR:= Ext2/3/4 filesystem utilities
  9. PKG_SECTION:= fs
  10. PKG_DEPENDS:= libcom-err libuuid libblkid libpthread
  11. PKG_URL:= http://e2fsprogs.sourceforge.net/
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=e2fsprogs/}
  13. PKG_CFLINE_E2FSPROGS:= default y if ADK_TARGET_ROOTFS_CF
  14. PKG_SUBPKGS:= E2FSPROGS LIBUUID LIBCOM_ERR LIBSS LIBBLKID
  15. PKGSD_LIBUUID:= UUID library
  16. PKGSC_LIBUUID:= libs
  17. PKGSD_LIBCOM_ERR:= Common error library
  18. PKGSC_LIBCOM_ERR:= libs
  19. PKGSD_LIBSS:= Subsystem command parsing library
  20. PKGSC_LIBSS:= libs
  21. PKGSD_LIBBLKID:= Libblkid
  22. PKGSC_LIBBLKID:= libs
  23. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,E2FSPROGS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBUUID},${PKGSC_LIBUUID}))
  26. $(eval $(call PKG_template,LIBCOM_ERR,libcom-err,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBCOM_ERR},${PKGSC_LIBCOM_ERR}))
  27. $(eval $(call PKG_template,LIBSS,libss,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBSS},${PKGSC_LIBSS}))
  28. $(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBBLKID},${PKGSC_LIBBLKID}))
  29. CONFIGURE_ARGS+= --enable-elf-shlibs --disable-tls
  30. INSTALL_TARGET+= install-libs
  31. pre-build:
  32. ${MAKE} -C ${WRKBUILD}/util \
  33. BUILDCC="${HOSTCC}" \
  34. CFLAGS="" \
  35. LDFLAGS="" \
  36. CPPFLAGS="" \
  37. subst
  38. post-install:
  39. ${INSTALL_DIR} ${IDIR_E2FSPROGS}/usr/lib ${IDIR_E2FSPROGS}/usr/sbin
  40. ${INSTALL_BIN} ${WRKINST}/usr/sbin/e2fsck ${IDIR_E2FSPROGS}/usr/sbin/
  41. cd $(IDIR_E2FSPROGS)/usr/sbin && ln -sf e2fsck fsck.ext2
  42. ${INSTALL_BIN} ${WRKINST}/usr/sbin/mke2fs ${IDIR_E2FSPROGS}/usr/sbin/
  43. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tune2fs ${IDIR_E2FSPROGS}/usr/sbin/
  44. ${CP} ${WRKINST}/usr/lib/lib{e2p,ext2fs}.so.* \
  45. ${IDIR_E2FSPROGS}/usr/lib/
  46. # subpackage libblkid
  47. ${INSTALL_DIR} ${IDIR_LIBBLKID}/usr/lib
  48. ${CP} ${WRKINST}/usr/lib/libblkid.so* \
  49. ${IDIR_LIBBLKID}/usr/lib/
  50. # subpackage libcom_err
  51. ${INSTALL_DIR} ${IDIR_LIBCOM_ERR}/usr/lib
  52. ${CP} ${WRKINST}/usr/lib/libcom_err.so* \
  53. ${IDIR_LIBCOM_ERR}/usr/lib/
  54. # subpackage libss
  55. ${INSTALL_DIR} ${IDIR_LIBSS}/usr/lib
  56. ${CP} ${WRKINST}/usr/lib/libss.so* \
  57. ${IDIR_LIBSS}/usr/lib/
  58. # subpackage libuuid
  59. ${INSTALL_DIR} ${IDIR_LIBUUID}/usr/lib
  60. ${CP} ${WRKINST}/usr/lib/libuuid.so* \
  61. ${IDIR_LIBUUID}/usr/lib/
  62. # install some headers/apps explicitely
  63. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/include/uuid
  64. ${CP} ${WRKBUILD}/lib/uuid/uuid.h \
  65. ${STAGING_TARGET_DIR}/usr/include/uuid
  66. ${CP} ${WRKINST}/usr/bin/compile_et ${STAGING_HOST_DIR}/bin
  67. include ${TOPDIR}/mk/pkg-bottom.mk