libmad: update to 0.16.4
[feed/packages.git] / 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_VERSION:=6.2.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@KERNEL/linux/utils/fs/xfs/xfsprogs
16 PKG_HASH:=d67dcba5a28e0904b60886b6e5f752bc7c9c3a5c7096153855b5adca9db86c51
17
18 PKG_MAINTAINER:=
19 PKG_LICENSE:=GPL-2.0-only
20 PKG_LICENSE_FILES:=LICENSES/GPL-2.0
21 PKG_CPE_ID:=cpe:/a:sgi:xfsprogs
22
23 PKG_BUILD_DEPENDS:=inih
24 PKG_BUILD_FLAGS:=no-mips16
25 PKG_BUILD_PARALLEL:=1
26 PKG_INSTALL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/xfsprogs/default
31 SECTION:=utils
32 CATEGORY:=Utilities
33 SUBMENU:=Filesystem
34 DEPENDS:=+liburcu +libuuid +libpthread
35 URL:=https://xfs.org/
36 endef
37
38 define Package/xfs-admin
39 $(call Package/xfsprogs/default)
40 TITLE:=Utilities for changing parameters of an XFS filesystems
41 endef
42
43 define Package/xfs-mkfs
44 $(call Package/xfsprogs/default)
45 TITLE:=Utility for creating XFS filesystems
46 DEPENDS+=+libinih
47 endef
48
49 define Package/xfs-fsck
50 $(call Package/xfsprogs/default)
51 TITLE:=Utilities for checking and repairing XFS filesystems
52 endef
53
54 define Package/xfs-growfs
55 $(call Package/xfsprogs/default)
56 TITLE:=Utility for increasing the size of XFS filesystems
57 endef
58
59 CONFIGURE_ARGS += \
60 --disable-gettext \
61 --disable-blkid \
62 --disable-readline \
63 --disable-editline \
64 --disable-termcap \
65 --disable-lib64 \
66 --disable-librt \
67 --disable-ubisan \
68 --disable-addrsan \
69 --disable-threadsan \
70 --disable-scrub \
71 --disable-libicu
72
73 TARGET_CFLAGS += -DHAVE_MAP_SYNC $(if $(CONFIG_USE_MUSL),-D_LARGEFILE64_SOURCE)
74 TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
75
76 define Package/xfs-admin/install
77 $(INSTALL_DIR) $(1)/sbin
78 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
79 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_admin $(1)/sbin
80 endef
81
82 define Package/xfs-mkfs/install
83 $(INSTALL_DIR) $(1)/usr/sbin
84 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/usr/sbin
85 endef
86
87 define Package/xfs-fsck/install
88 $(INSTALL_DIR) $(1)/usr/sbin
89 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/usr/sbin
90 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/usr/sbin
91 endef
92
93 define Package/xfs-growfs/install
94 $(INSTALL_DIR) $(1)/usr/sbin
95 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/usr/sbin
96 endef
97
98 $(eval $(call BuildPackage,xfs-admin))
99 $(eval $(call BuildPackage,xfs-mkfs))
100 $(eval $(call BuildPackage,xfs-fsck))
101 $(eval $(call BuildPackage,xfs-growfs))