]>
Commit | Line | Data |
---|---|---|
acba165f BS |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = xfsprogs | |
95379a44 | 28 | PKG_VER = 3.1.2 |
acba165f BS |
29 | PKG_REL = 0 |
30 | ||
31 | PKG_MAINTAINER = | |
bb7d617c | 32 | PKG_GROUPS = System/Filesystems |
acba165f BS |
33 | PKG_URL = http://oss.sgi.com/projects/xfs/ |
34 | PKG_LICENSE = GPL+ and LGPLv2+ | |
35 | PKG_SUMMARY = Utilities for managing the XFS filesystem | |
36 | ||
74edf1b4 SS |
37 | PKG_BUILD_DEPS+= e2fsprogs-devel gettext libacl-devel libblkid-devel libtool \ |
38 | libuuid-devel readline-devel | |
acba165f BS |
39 | |
40 | define PKG_DESCRIPTION | |
41 | A set of commands to use the XFS filesystem, including mkfs.xfs. | |
42 | endef | |
43 | ||
44 | PKG_TARBALL = $(THISAPP).tar.gz | |
45 | ||
1d3c45f2 | 46 | PKG_PACKAGES += $(PKG_NAME)-devel |
acba165f BS |
47 | |
48 | define STAGE_BUILD | |
7ce06e41 MT |
49 | cd $(DIR_APP) && \ |
50 | ./configure \ | |
acba165f BS |
51 | --prefix=/usr \ |
52 | --mandir=/usr/share/man \ | |
53 | --bindir=/sbin \ | |
54 | --sbindir=/sbin \ | |
55 | --libdir=/lib \ | |
56 | --libexecdir=/usr/lib \ | |
7ce06e41 | 57 | --enable-readline=yes \ |
cc16e27c | 58 | --enable-blkid=yes \ |
7ce06e41 MT |
59 | --disable-static |
60 | ||
61 | # Kill rpaths | |
62 | cd $(DIR_APP) && sed -i libtool \ | |
63 | -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ | |
64 | -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' | |
65 | ||
cc16e27c | 66 | cd $(DIR_APP) && make V=1 DEBUG=-DNDEBUG |
acba165f BS |
67 | endef |
68 | ||
69 | define STAGE_INSTALL | |
70 | cd $(DIR_APP) && make install install-dev install-qa DIST_ROOT=$(BUILDROOT) | |
7ce06e41 | 71 | |
acba165f BS |
72 | chmod -v 755 $(BUILDROOT)/lib/libhandle.so* |
73 | rm -vf $(BUILDROOT)/lib/libhandle.so | |
74 | -mkdir -pv $(BUILDROOT)/usr/lib | |
75 | ln -svf ../../lib/libhandle.so.1 $(BUILDROOT)/usr/lib/libhandle.so | |
76 | endef |