Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #
  2. # Copyright (C) 2006-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=xfsprogs
  9. PKG_RELEASE:=1
  10. PKG_VERSION:=3.1.7
  11. PKG_SOURCE_URL:=ftp://oss.sgi.com/projects/xfs/previous/
  12. PKG_MD5SUM:=049cf9873794ea49d0bb3f12d45748a4
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_INSTALL:=1
  15. PKG_FIXUP:=autoreconf
  16. PKG_CHECK_FORMAT_SECURITY:=0
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. define Package/xfsprogs/default
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. SUBMENU:=Filesystem
  23. DEPENDS:=+libuuid +libpthread +librt
  24. URL:=http://oss.sgi.com/projects/xfs
  25. endef
  26. define Package/xfs-mkfs
  27. $(call Package/xfsprogs/default)
  28. TITLE:=Utility for creating XFS filesystems
  29. endef
  30. define Package/xfs-fsck
  31. $(call Package/xfsprogs/default)
  32. TITLE:=Utilities for checking and repairing XFS filesystems
  33. endef
  34. define Package/xfs-growfs
  35. $(call Package/xfsprogs/default)
  36. TITLE:=Utility for increasing the size of XFS filesystems
  37. endef
  38. CONFIGURE_ARGS += \
  39. --enable-gettext=no \
  40. --enable-lib64=no \
  41. --enable-blkid=no
  42. TARGET_CFLAGS += \
  43. -I$(STAGING_DIR)/usr/include \
  44. -D_LARGEFILE64_SOURCE \
  45. -D_FILE_OFFSET_BITS=64 \
  46. -D_GNU_SOURCE
  47. MAKE_FLAGS += \
  48. DEBUG= Q= \
  49. PCFLAGS="-Wall" \
  50. PKG_PLATFORM=linux \
  51. ENABLE_GETTEXT=no \
  52. prefix=$(PKG_INSTALL_DIR)/usr \
  53. exec_prefix=$(PKG_INSTALL_DIR)/usr \
  54. PKG_SBIN_DIR=$(PKG_INSTALL_DIR)/usr/sbin \
  55. PKG_ROOT_SBIN_DIR=$(PKG_INSTALL_DIR)/sbin \
  56. PKG_MAN_DIR=$(PKG_INSTALL_DIR)/usr/man \
  57. PKG_LOCALE_DIR=$(PKG_INSTALL_DIR)/usr/share/locale \
  58. PKG_ROOT_LIB_DIR=$(PKG_INSTALL_DIR)/lib \
  59. PKG_DOC_DIR=$(PKG_INSTALL_DIR)/usr/share/doc/xfsprogs
  60. define Package/xfs-mkfs/install
  61. mkdir -p $(1)/sbin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/sbin
  63. endef
  64. define Package/xfs-fsck/install
  65. mkdir -p $(1)/sbin
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/sbin
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
  68. endef
  69. define Package/xfs-growfs/install
  70. mkdir -p $(1)/sbin
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/sbin
  72. endef
  73. $(eval $(call BuildPackage,xfs-mkfs))
  74. $(eval $(call BuildPackage,xfs-fsck))
  75. $(eval $(call BuildPackage,xfs-growfs))