1
0

Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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:= 1
  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_1:= UUID library
  13. PKG_SECTION_1:= libs
  14. PKG_DESCR_2:= Common error library
  15. PKG_SECTION_2:= libs
  16. PKG_DESCR_3:= Libblkid
  17. PKG_SECTION_3:= libs
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,E2FSPROGS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION_1}))
  21. $(eval $(call PKG_template,LIBCOM_ERR,libcom-err,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_2},${PKG_SECTION_2}))
  22. $(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_3},${PKG_SECTION_3}))
  23. CONFIGURE_STYLE= gnu
  24. CONFIGURE_ARGS+= --enable-elf-shlibs \
  25. --disable-tls \
  26. --enable-dynamic-e2fsck
  27. BUILD_STYLE= auto
  28. INSTALL_STYLE= auto
  29. INSTALL_TARGET+= install-libs
  30. pre-build:
  31. ${MAKE} -C ${WRKBUILD}/util \
  32. BUILDCC="${HOSTCC}" \
  33. CFLAGS="" \
  34. LDFLAGS="" \
  35. CPPFLAGS="" \
  36. subst
  37. post-install:
  38. ${INSTALL_DIR} ${IDIR_E2FSPROGS}/usr/lib ${IDIR_E2FSPROGS}/usr/sbin
  39. ${INSTALL_BIN} ${WRKINST}/usr/sbin/e2fsck ${IDIR_E2FSPROGS}/usr/sbin/
  40. ${INSTALL_BIN} ${WRKINST}/usr/sbin/mke2fs ${IDIR_E2FSPROGS}/usr/sbin/
  41. ${INSTALL_BIN} ${WRKINST}/usr/sbin/tune2fs ${IDIR_E2FSPROGS}/usr/sbin/
  42. ${CP} ${WRKINST}/usr/lib/lib{e2p,ext2fs}.so.* \
  43. ${IDIR_E2FSPROGS}/usr/lib/
  44. # subpackage libblkid
  45. ${INSTALL_DIR} ${IDIR_LIBBLKID}/usr/lib
  46. ${CP} ${WRKINST}/usr/lib/libblkid.so.* \
  47. ${IDIR_LIBBLKID}/usr/lib/
  48. # subpackage libcom_err
  49. ${INSTALL_DIR} ${IDIR_LIBCOM_ERR}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libcom_err.so.* \
  51. ${IDIR_LIBCOM_ERR}/usr/lib/
  52. # subpackage libuuid
  53. ${INSTALL_DIR} ${IDIR_LIBUUID}/usr/lib
  54. ${CP} ${WRKINST}/usr/lib/libuuid.so.* \
  55. ${IDIR_LIBUUID}/usr/lib/
  56. # install some headers explicitely
  57. ${INSTALL_DIR} ${STAGING_DIR}/usr/include/uuid
  58. ${CP} ${WRKBUILD}/lib/uuid/uuid.h \
  59. ${STAGING_DIR}/usr/include/uuid
  60. include ${TOPDIR}/mk/pkg-bottom.mk