]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/glib
vdradmin part II
[ipfire-2.x.git] / lfs / glib
CommitLineData
f8e5510c 1###############################################################################
f8e5510c 2# #
70df8302
MT
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 #
f8e5510c 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
f8e5510c
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
f8e5510c
MT
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 #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
f8e5510c 18# #
f8e5510c
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
2c1b94f0 27VER = 2.16.5
f8e5510c
MT
28
29THISAPP = glib-$(VER)
30DL_FILE = $(THISAPP).tar.bz2
f28d0ddc 31DL_FROM = $(URL_IPFIRE)
f8e5510c
MT
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33TARGET = $(DIR_INFO)/$(THISAPP)
fe7fe395 34PROG = glib
2c1b94f0 35PAK_VER = 2
fe7fe395 36
fe7fe395 37DEPS = ""
f8e5510c
MT
38
39###############################################################################
40# Top-level Rules
41###############################################################################
42
43objects = $(DL_FILE)
44
45$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
46
2c1b94f0 47$(DL_FILE)_MD5 = 039f02d47d4071322a3f00abf031e5d9
f8e5510c
MT
48install : $(TARGET)
49
50check : $(patsubst %,$(DIR_CHK)/%,$(objects))
51
52download :$(patsubst %,$(DIR_DL)/%,$(objects))
53
54md5 : $(subst %,%_MD5,$(objects))
55
fe7fe395
MT
56dist:
57 @$(PAK)
58
f8e5510c
MT
59###############################################################################
60# Downloading, checking, md5sum
61###############################################################################
62
63$(patsubst %,$(DIR_CHK)/%,$(objects)) :
64 @$(CHECK)
65
66$(patsubst %,$(DIR_DL)/%,$(objects)) :
67 @$(LOAD)
68
69$(subst %,%_MD5,$(objects)) :
70 @$(MD5)
71
72###############################################################################
73# Installation Details
74###############################################################################
75
76$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
77 @$(PREBUILD)
78 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
f28d0ddc 79 cd $(DIR_APP) && ./configure --prefix=/usr --disable-nls
fd3e7da0 80 cd $(DIR_APP) && make $(MAKETUNING)
f8e5510c
MT
81 cd $(DIR_APP) && make install
82 @rm -rf $(DIR_APP)
fe7fe395 83 @$(POSTBUILD)