]>
Commit | Line | Data |
---|---|---|
7ac38dc9 MT |
1 | ###############################################################################\r |
2 | # This file is part of the IPCop Firewall. #\r | |
3 | # #\r | |
4 | # IPCop is free software; you can redistribute it and/or modify #\r | |
5 | # it under the terms of the GNU General Public License as published by #\r | |
6 | # the Free Software Foundation; either version 2 of the License, or #\r | |
7 | # (at your option) any later version. #\r | |
8 | # #\r | |
9 | # IPCop is distributed in the hope that it will be useful, #\r | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of #\r | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #\r | |
12 | # GNU General Public License for more details. #\r | |
13 | # #\r | |
14 | # You should have received a copy of the GNU General Public License #\r | |
15 | # along with IPCop; if not, write to the Free Software #\r | |
16 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #\r | |
17 | # #\r | |
18 | # Makefiles are based on LFSMake, which is #\r | |
19 | # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #\r | |
20 | # #\r | |
21 | # Modifications by: #\r | |
22 | # ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #\r | |
23 | # - Modified Makefile for IPCop build #\r | |
24 | # #\r | |
25 | # $Id: GD,v 1.5.2.3 2005/02/05 15:38:14 gespinasse Exp $\r | |
26 | # #\r | |
27 | ###############################################################################\r | |
28 | \r | |
29 | ###############################################################################\r | |
30 | # Definitions\r | |
31 | ###############################################################################\r | |
32 | \r | |
33 | include Config\r | |
34 | \r | |
35 | VER = 2.12\r | |
36 | \r | |
37 | THISAPP = GD-$(VER)\r | |
38 | DL_FILE = $(THISAPP).tar.gz\r | |
39 | DL_FROM = $(URL_CPAN)/GD\r | |
40 | DIR_APP = $(DIR_SRC)/$(THISAPP)\r | |
41 | TARGET = $(DIR_INFO)/$(THISAPP)\r | |
42 | \r | |
43 | ###############################################################################\r | |
44 | # Top-level Rules\r | |
45 | ###############################################################################\r | |
46 | \r | |
47 | objects = $(DL_FILE)\r | |
48 | \r | |
49 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE)\r | |
50 | \r | |
51 | $(DL_FILE)_MD5 = 84de3734fb32947d08c0d3d1e68201a6\r | |
52 | \r | |
53 | install : $(TARGET)\r | |
54 | \r | |
55 | check : $(patsubst %,$(DIR_CHK)/%,$(objects))\r | |
56 | \r | |
57 | download :$(patsubst %,$(DIR_DL)/%,$(objects))\r | |
58 | \r | |
59 | md5 : $(subst %,%_MD5,$(objects))\r | |
60 | \r | |
61 | ###############################################################################\r | |
62 | # Downloading, checking, md5sum\r | |
63 | ###############################################################################\r | |
64 | \r | |
65 | $(patsubst %,$(DIR_CHK)/%,$(objects)) :\r | |
66 | @$(CHECK)\r | |
67 | \r | |
68 | $(patsubst %,$(DIR_DL)/%,$(objects)) :\r | |
69 | @$(LOAD)\r | |
70 | \r | |
71 | $(subst %,%_MD5,$(objects)) :\r | |
72 | @$(MD5)\r | |
73 | \r | |
74 | ###############################################################################\r | |
75 | # Installation Details\r | |
76 | ###############################################################################\r | |
77 | \r | |
78 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))\r | |
79 | @$(PREBUILD)\r | |
80 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)\r | |
81 | cd $(DIR_APP) && sed -i "s%,'y'%,'n'%" Makefile.PL\r | |
82 | cd $(DIR_APP) && yes 'n' | perl Makefile.PL\r | |
83 | cd $(DIR_APP) && make\r | |
84 | cd $(DIR_APP) && make install\r | |
85 | @rm -rf $(DIR_APP)\r | |
86 | @$(POSTBUILD)\r |