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