]> git.ipfire.org Git - ipfire-3.x.git/blame - lfs/xfsprogs
Added some lines for ext4 on installer.
[ipfire-3.x.git] / lfs / xfsprogs
CommitLineData
a97daddb
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 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
25include Config
26
27PKG_NAME = xfsprogs
8161c907 28VER = 2.10.2
a97daddb
MT
29
30THISAPP = $(PKG_NAME)-$(VER)
8161c907 31DL_FILE = $(THISAPP)-1.tar.bz2
a97daddb
MT
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33
6679675b 34OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
a97daddb
MT
35
36###############################################################################
37# Top-level Rules
38###############################################################################
39
8161c907
MT
40objects = $(DL_FILE) \
41 $(THISAPP)-parallel-build.patch
a97daddb 42
b9d8c932
MT
43info:
44 $(DO_PKG_INFO)
45
6679675b 46install: $(OBJECT)
a97daddb 47
87703b91 48download : $(objects)
a97daddb 49
87703b91 50$(objects) :
a97daddb
MT
51 @$(LOAD)
52
53###############################################################################
54# Installation Details
55###############################################################################
56
6679675b 57$(OBJECT) :
a97daddb 58 @$(PREBUILD)
8161c907
MT
59 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
60 cd $(DIR_APP) && patch -Np2 -i $(DIR_PATCHES)/$(THISAPP)-parallel-build.patch
61 # XXX We compile xfsprogs STATIC at the moment because there is a bug with
62 # installation of the shared libs (may be it is libtool's fault).
af9b13f5
MT
63 cd $(DIR_APP) && DEBUG=-DNDEBUG \
64 ./configure \
e1a428b7 65 $(CONFIGURE_ARCH) \
af9b13f5
MT
66 --prefix=/usr \
67 --bindir=/sbin \
68 --sbindir=/sbin \
69 --libdir=/lib \
70 --libexecdir=/usr/lib \
8161c907 71 --enable-shared=no
af9b13f5 72 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
b71dadb2 73 cd $(DIR_APP) && make install #install-dev
b58311eb
MT
74 #chmod -v 755 /lib/libhandle.so*
75 #rm -f /lib/libhandle.{a,la,so}
76 #ln -svf ../../lib/libhandle.so.1 /usr/lib/libhandle.so
a97daddb
MT
77 @rm -rf $(DIR_APP)
78 @$(POSTBUILD)