Makefile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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_CPE_ID:=cpe:/a:sgi:xfsprogs
  10. PKG_RELEASE:=2
  11. PKG_VERSION:=4.11.0
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/fs/xfs/xfsprogs
  13. PKG_HASH:=c3a6d87b564d7738243c507df82276bed982265e345363a95f2c764e8a5f5bb2
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/xfsprogs/default
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. SUBMENU:=Filesystem
  22. DEPENDS:=+libuuid +libpthread +librt
  23. URL:=http://oss.sgi.com/projects/xfs
  24. endef
  25. define Package/xfs-admin
  26. $(call Package/xfsprogs/default)
  27. TITLE:=Utilities for changing parameters of an XFS filesystems
  28. endef
  29. define Package/xfs-mkfs
  30. $(call Package/xfsprogs/default)
  31. TITLE:=Utility for creating XFS filesystems
  32. endef
  33. define Package/xfs-fsck
  34. $(call Package/xfsprogs/default)
  35. TITLE:=Utilities for checking and repairing XFS filesystems
  36. endef
  37. define Package/xfs-growfs
  38. $(call Package/xfsprogs/default)
  39. TITLE:=Utility for increasing the size of XFS filesystems
  40. endef
  41. CONFIGURE_ARGS += \
  42. --enable-gettext=no \
  43. --enable-lib64=no \
  44. --enable-blkid=no
  45. TARGET_CFLAGS += \
  46. -I$(STAGING_DIR)/usr/include \
  47. -D_LARGEFILE64_SOURCE \
  48. -D_FILE_OFFSET_BITS=64 \
  49. -D_GNU_SOURCE
  50. MAKE_FLAGS += \
  51. DEBUG= Q= \
  52. PCFLAGS="-Wall" \
  53. PKG_PLATFORM=linux \
  54. ENABLE_GETTEXT=no
  55. define Build/Compile
  56. $(MAKE) -C $(PKG_BUILD_DIR)/libxfs crc32table.h CFLAGS="$(HOST_CFLAGS) -I$(PKG_BUILD_DIR)/include"
  57. $(call Build/Compile/Default)
  58. endef
  59. define Package/xfs-admin/install
  60. mkdir -p $(1)/sbin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_admin $(1)/sbin
  63. endef
  64. define Package/xfs-mkfs/install
  65. mkdir -p $(1)/usr/sbin
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/usr/sbin
  67. endef
  68. define Package/xfs-fsck/install
  69. mkdir -p $(1)/usr/sbin
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/usr/sbin
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/usr/sbin
  72. endef
  73. define Package/xfs-growfs/install
  74. mkdir -p $(1)/usr/sbin
  75. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/usr/sbin
  76. endef
  77. $(eval $(call BuildPackage,xfs-admin))
  78. $(eval $(call BuildPackage,xfs-mkfs))
  79. $(eval $(call BuildPackage,xfs-fsck))
  80. $(eval $(call BuildPackage,xfs-growfs))