Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 = libtool
  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. TARGET_CFLAGS += \
  37. -I$(STAGING_DIR)/usr/include \
  38. -D_LARGEFILE64_SOURCE \
  39. -D_FILE_OFFSET_BITS=64 \
  40. -D_GNU_SOURCE
  41. MAKE_FLAGS += \
  42. DEBUG= Q= \
  43. PCFLAGS="-Wall" \
  44. PKG_PLATFORM=linux \
  45. ENABLE_GETTEXT=no \
  46. prefix=$(PKG_INSTALL_DIR)/usr \
  47. exec_prefix=$(PKG_INSTALL_DIR)/usr \
  48. PKG_SBIN_DIR=$(PKG_INSTALL_DIR)/usr/sbin \
  49. PKG_ROOT_SBIN_DIR=$(PKG_INSTALL_DIR)/sbin \
  50. PKG_MAN_DIR=$(PKG_INSTALL_DIR)/usr/man \
  51. PKG_LOCALE_DIR=$(PKG_INSTALL_DIR)/usr/share/locale \
  52. PKG_ROOT_LIB_DIR=$(PKG_INSTALL_DIR)/lib \
  53. PKG_DOC_DIR=$(PKG_INSTALL_DIR)/usr/share/doc/xfsprogs
  54. define Package/xfs-mkfs/install
  55. mkdir -p $(1)/sbin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/sbin
  57. endef
  58. define Package/xfs-fsck/install
  59. mkdir -p $(1)/sbin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/sbin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
  62. endef
  63. define Package/xfs-growfs/install
  64. mkdir -p $(1)/sbin
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/sbin
  66. endef
  67. $(eval $(call BuildPackage,xfs-mkfs))
  68. $(eval $(call BuildPackage,xfs-fsck))
  69. $(eval $(call BuildPackage,xfs-growfs))