Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # Copyright (C) 2006-2008 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.4
  11. PKG_SOURCE_URL:=http://ftp.debian.org/pool/main/x/xfsprogs
  12. PKG_MD5SUM:=23568a603c913b80076abe3c23521573
  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. DEPENDS:=+libuuid +libpthread +librt
  22. URL:=http://oss.sgi.com/projects/xfs
  23. endef
  24. define Package/xfs-mkfs
  25. $(call Package/xfsprogs/default)
  26. TITLE:=Utility for creating XFS filesystems
  27. endef
  28. define Package/xfs-fsck
  29. $(call Package/xfsprogs/default)
  30. TITLE:=Utilities for checking and repairing XFS filesystems
  31. endef
  32. define Package/xfs-growfs
  33. $(call Package/xfsprogs/default)
  34. TITLE:=Utility for increasing the size of XFS filesystems
  35. endef
  36. CONFIGURE_ARGS += \
  37. --enable-gettext=no \
  38. --enable-lib64=no
  39. TARGET_CFLAGS += \
  40. -I$(STAGING_DIR)/usr/include \
  41. -D_LARGEFILE64_SOURCE \
  42. -D_FILE_OFFSET_BITS=64 \
  43. -D_GNU_SOURCE
  44. MAKE_FLAGS += \
  45. DEBUG= Q= \
  46. PCFLAGS="-Wall" \
  47. PKG_PLATFORM=linux \
  48. ENABLE_GETTEXT=no \
  49. prefix=$(PKG_INSTALL_DIR)/usr \
  50. exec_prefix=$(PKG_INSTALL_DIR)/usr \
  51. PKG_SBIN_DIR=$(PKG_INSTALL_DIR)/usr/sbin \
  52. PKG_ROOT_SBIN_DIR=$(PKG_INSTALL_DIR)/sbin \
  53. PKG_MAN_DIR=$(PKG_INSTALL_DIR)/usr/man \
  54. PKG_LOCALE_DIR=$(PKG_INSTALL_DIR)/usr/share/locale \
  55. PKG_ROOT_LIB_DIR=$(PKG_INSTALL_DIR)/lib \
  56. PKG_DOC_DIR=$(PKG_INSTALL_DIR)/usr/share/doc/xfsprogs
  57. define Package/xfs-mkfs/install
  58. mkdir -p $(1)/sbin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/sbin
  60. endef
  61. define Package/xfs-fsck/install
  62. mkdir -p $(1)/sbin
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/sbin
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
  65. endef
  66. define Package/xfs-growfs/install
  67. mkdir -p $(1)/sbin
  68. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/sbin
  69. endef
  70. $(eval $(call BuildPackage,xfs-mkfs))
  71. $(eval $(call BuildPackage,xfs-fsck))
  72. $(eval $(call BuildPackage,xfs-growfs))