2
0

Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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_HASH:=e150914210ac5fd29c098ef0fd94bdec51d2fb231cf9faa765c16ec6d75c8eaa
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_INSTALL:=1
  15. PKG_FIXUP:=autoreconf
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/nls.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-mkfs
  26. $(call Package/xfsprogs/default)
  27. TITLE:=Utility for creating XFS filesystems
  28. endef
  29. define Package/xfs-fsck
  30. $(call Package/xfsprogs/default)
  31. TITLE:=Utilities for checking and repairing XFS filesystems
  32. endef
  33. define Package/xfs-growfs
  34. $(call Package/xfsprogs/default)
  35. TITLE:=Utility for increasing the size of XFS filesystems
  36. endef
  37. CONFIGURE_ARGS += \
  38. --enable-gettext=no \
  39. --enable-lib64=no \
  40. --enable-blkid=no
  41. TARGET_CFLAGS += \
  42. -I$(STAGING_DIR)/usr/include \
  43. -D_LARGEFILE64_SOURCE \
  44. -D_FILE_OFFSET_BITS=64 \
  45. -D_GNU_SOURCE
  46. MAKE_FLAGS += \
  47. DEBUG= Q= \
  48. PCFLAGS="-Wall" \
  49. PKG_PLATFORM=linux \
  50. ENABLE_GETTEXT=no \
  51. prefix=$(PKG_INSTALL_DIR)/usr \
  52. exec_prefix=$(PKG_INSTALL_DIR)/usr \
  53. PKG_SBIN_DIR=$(PKG_INSTALL_DIR)/usr/sbin \
  54. PKG_ROOT_SBIN_DIR=$(PKG_INSTALL_DIR)/sbin \
  55. PKG_MAN_DIR=$(PKG_INSTALL_DIR)/usr/man \
  56. PKG_LOCALE_DIR=$(PKG_INSTALL_DIR)/usr/share/locale \
  57. PKG_ROOT_LIB_DIR=$(PKG_INSTALL_DIR)/lib \
  58. PKG_DOC_DIR=$(PKG_INSTALL_DIR)/usr/share/doc/xfsprogs
  59. define Package/xfs-mkfs/install
  60. mkdir -p $(1)/usr/sbin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/usr/sbin
  62. endef
  63. define Package/xfs-fsck/install
  64. mkdir -p $(1)/usr/sbin
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/usr/sbin
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/usr/sbin
  67. endef
  68. define Package/xfs-growfs/install
  69. mkdir -p $(1)/usr/sbin
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/usr/sbin
  71. endef
  72. $(eval $(call BuildPackage,xfs-mkfs))
  73. $(eval $(call BuildPackage,xfs-fsck))
  74. $(eval $(call BuildPackage,xfs-growfs))