]>
Commit | Line | Data |
---|---|---|
cbc275a9 CS |
1 | ###############################################################################\r |
2 | # #\r | |
3 | # IPFire.org - A linux based firewall #\r | |
4 | # Copyright (C) 2007 Michael Tremer & Christian Schmidt #\r | |
5 | # #\r | |
6 | # This program is free software: you can redistribute it and/or modify #\r | |
7 | # it under the terms of the GNU General Public License as published by #\r | |
8 | # the Free Software Foundation, either version 3 of the License, or #\r | |
9 | # (at your option) any later version. #\r | |
10 | # #\r | |
11 | # This program is distributed in the hope that it will be useful, #\r | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of #\r | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #\r | |
14 | # GNU General Public License for more details. #\r | |
15 | # #\r | |
16 | # You should have received a copy of the GNU General Public License #\r | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. #\r | |
18 | # #\r | |
19 | ###############################################################################\r | |
20 | \r | |
21 | ###############################################################################\r | |
22 | # Definitions\r | |
23 | ###############################################################################\r | |
24 | \r | |
25 | include Config\r | |
26 | \r | |
27 | VER = 1.1.4\r | |
28 | \r | |
29 | THISAPP = libogg-$(VER)\r | |
30 | DL_FILE = $(THISAPP).tar.gz\r | |
31 | DL_FROM = $(URL_IPFIRE)\r | |
32 | DIR_APP = $(DIR_SRC)/$(THISAPP)\r | |
33 | TARGET = $(DIR_INFO)/$(THISAPP)\r | |
34 | PROG = libogg\r | |
35 | PAK_VER = 2\r | |
36 | \r | |
37 | DEPS = ""\r | |
38 | \r | |
39 | ###############################################################################\r | |
40 | # Top-level Rules\r | |
41 | ###############################################################################\r | |
42 | \r | |
43 | objects = $(DL_FILE)\r | |
44 | \r | |
45 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE)\r | |
46 | \r | |
47 | $(DL_FILE)_MD5 = 10200ec22543841d9d1c23e0aed4e5e9\r | |
48 | \r | |
49 | install : $(TARGET)\r | |
50 | \r | |
51 | check : $(patsubst %,$(DIR_CHK)/%,$(objects))\r | |
52 | \r | |
53 | download :$(patsubst %,$(DIR_DL)/%,$(objects))\r | |
54 | \r | |
55 | md5 : $(subst %,%_MD5,$(objects))\r | |
56 | \r | |
57 | dist: \r | |
58 | @$(PAK)\r | |
59 | \r | |
60 | ###############################################################################\r | |
61 | # Downloading, checking, md5sum\r | |
62 | ###############################################################################\r | |
63 | \r | |
64 | $(patsubst %,$(DIR_CHK)/%,$(objects)) :\r | |
65 | @$(CHECK)\r | |
66 | \r | |
67 | $(patsubst %,$(DIR_DL)/%,$(objects)) :\r | |
68 | @$(LOAD)\r | |
69 | \r | |
70 | $(subst %,%_MD5,$(objects)) :\r | |
71 | @$(MD5)\r | |
72 | \r | |
73 | ###############################################################################\r | |
74 | # Installation Details\r | |
75 | ###############################################################################\r | |
76 | \r | |
77 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))\r | |
78 | @$(PREBUILD)\r | |
79 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)\r | |
80 | cd $(DIR_APP) && ./configure --prefix=/usr\r | |
81 | cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)\r | |
82 | cd $(DIR_APP) && make install\r | |
83 | @rm -rf $(DIR_APP)\r | |
84 | @$(POSTBUILD)\r |