license info - revert r43155
[openwrt/staging/lynxis/omap.git] / package / utils / xfsprogs / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xfsprogs
11 PKG_RELEASE:=1
12 PKG_VERSION:=3.1.7
13 PKG_SOURCE_URL:=ftp://oss.sgi.com/projects/xfs/previous/
14 PKG_MD5SUM:=049cf9873794ea49d0bb3f12d45748a4
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_INSTALL:=1
18 PKG_FIXUP:=autoreconf
19 PKG_CHECK_FORMAT_SECURITY:=0
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 define Package/xfsprogs/default
25 SECTION:=utils
26 CATEGORY:=Utilities
27 SUBMENU:=Filesystem
28 DEPENDS:=+libuuid +libpthread +librt
29 URL:=http://oss.sgi.com/projects/xfs
30 endef
31
32 define Package/xfs-mkfs
33 $(call Package/xfsprogs/default)
34 TITLE:=Utility for creating XFS filesystems
35 endef
36
37 define Package/xfs-fsck
38 $(call Package/xfsprogs/default)
39 TITLE:=Utilities for checking and repairing XFS filesystems
40 endef
41
42 define Package/xfs-growfs
43 $(call Package/xfsprogs/default)
44 TITLE:=Utility for increasing the size of XFS filesystems
45 endef
46
47 CONFIGURE_ARGS += \
48 --enable-gettext=no \
49 --enable-lib64=no \
50 --enable-blkid=no
51
52 TARGET_CFLAGS += \
53 -I$(STAGING_DIR)/usr/include \
54 -D_LARGEFILE64_SOURCE \
55 -D_FILE_OFFSET_BITS=64 \
56 -D_GNU_SOURCE
57
58 MAKE_FLAGS += \
59 DEBUG= Q= \
60 PCFLAGS="-Wall" \
61 PKG_PLATFORM=linux \
62 ENABLE_GETTEXT=no \
63 prefix=$(PKG_INSTALL_DIR)/usr \
64 exec_prefix=$(PKG_INSTALL_DIR)/usr \
65 PKG_SBIN_DIR=$(PKG_INSTALL_DIR)/usr/sbin \
66 PKG_ROOT_SBIN_DIR=$(PKG_INSTALL_DIR)/sbin \
67 PKG_MAN_DIR=$(PKG_INSTALL_DIR)/usr/man \
68 PKG_LOCALE_DIR=$(PKG_INSTALL_DIR)/usr/share/locale \
69 PKG_ROOT_LIB_DIR=$(PKG_INSTALL_DIR)/lib \
70 PKG_DOC_DIR=$(PKG_INSTALL_DIR)/usr/share/doc/xfsprogs
71
72 define Package/xfs-mkfs/install
73 mkdir -p $(1)/sbin
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/sbin
75 endef
76
77 define Package/xfs-fsck/install
78 mkdir -p $(1)/sbin
79 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/sbin
80 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
81 endef
82
83 define Package/xfs-growfs/install
84 mkdir -p $(1)/sbin
85 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/sbin
86 endef
87
88 $(eval $(call BuildPackage,xfs-mkfs))
89 $(eval $(call BuildPackage,xfs-fsck))
90 $(eval $(call BuildPackage,xfs-growfs))