Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # $Id$
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=e2fsprogs
  10. PKG_VERSION:=1.39
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SF/e2fsprogs
  14. PKG_MD5SUM:=06f7806782e357797fad1d34b7ced0c6
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/e2fsprogs
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. TITLE:=Ext2/3 filesystem utilities
  20. DEPENDS:=+libuuid
  21. DESCRIPTION:=\
  22. This package contains essential ext2 filesystem utilities which consists of \\\
  23. e2fsck, mke2fs, debugfs, dumpe2fs, tune2fs, and most of the other core ext2 \\\
  24. filesystem utilities.
  25. endef
  26. define Package/libuuid
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. TITLE:=DCE compatible Universally Unique Identifier library
  30. DESCRIPTION:=\
  31. Library for generating DCE compatible Universally Unique Identifiers
  32. URL:=http://e2fsprogs.sourceforge.net/
  33. endef
  34. define Package/tune2fs
  35. $(call Package/e2fsprogs)
  36. TITLE:=Ext2 Filesystem tune utility
  37. DESCRIPTION:=Ext2 Filesystem tune utility
  38. DEPENDS:=e2fsprogs
  39. endef
  40. define Package/resize2fs
  41. $(call Package/e2fsprogs)
  42. TITLE:=Ext2 Filesystem resize utility
  43. DESCRIPTION:=Ext2 Filesystem resize utility
  44. DEPENDS:=e2fsprogs
  45. endef
  46. CONFIGURE_ARGS += \
  47. --enable-shared \
  48. --enable-static \
  49. --disable-rpath \
  50. --enable-elf-shlibs \
  51. --enable-dynamic-e2fsck
  52. define Build/Compile
  53. $(MAKE) -C $(PKG_BUILD_DIR)/util \
  54. BUILDCC="$(HOSTCC)" \
  55. CFLAGS="" \
  56. CPPFLAGS="" \
  57. LDFLAGS="" \
  58. subst
  59. $(MAKE) -C $(PKG_BUILD_DIR) \
  60. BUILDCC="$(HOSTCC)" \
  61. DESTDIR="$(PKG_INSTALL_DIR)" \
  62. all install
  63. endef
  64. define Build/InstallDev
  65. $(MAKE) -C $(PKG_BUILD_DIR) \
  66. BUILDCC="$(HOSTCC)" \
  67. DESTDIR="$(STAGING_DIR)" \
  68. install-libs
  69. endef
  70. define Package/e2fsprogs/install
  71. $(INSTALL_DIR) $(1)/usr/sbin
  72. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/e2fsck $(1)/usr/sbin/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mke2fs $(1)/usr/sbin/
  74. ln -sf mke2fs $(1)/usr/sbin/mkfs.ext2
  75. ln -sf mke2fs $(1)/usr/sbin/mkfs.ext3
  76. $(INSTALL_DIR) $(1)/usr/lib
  77. $(CP) $(foreach lib,blkid com_err e2p ext2fs,$(PKG_INSTALL_DIR)/usr/lib/lib$(lib).so.*) $(1)/usr/lib/
  78. endef
  79. define Package/libuuid/install
  80. $(INSTALL_DIR) $(1)/usr/lib
  81. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuuid.so.* $(1)/usr/lib/
  82. endef
  83. define Package/tune2fs/install
  84. $(INSTALL_DIR) $(1)/usr/sbin
  85. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tune2fs $(1)/usr/sbin/
  86. endef
  87. define Package/resize2fs/install
  88. $(INSTALL_DIR) $(1)/usr/sbin
  89. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/resize2fs $(1)/usr/sbin/
  90. endef
  91. $(eval $(call BuildPackage,e2fsprogs))
  92. $(eval $(call BuildPackage,libuuid))
  93. $(eval $(call BuildPackage,tune2fs))
  94. $(eval $(call BuildPackage,resize2fs))