]>
Commit | Line | Data |
---|---|---|
fccb3371 MT |
1 | ############################################################################### |
2 | # This file is part of the IPCop Firewall. # | |
3 | # # | |
4 | # IPCop is free software; you can redistribute it and/or modify # | |
5 | # it under the terms of the GNU General Public License as published by # | |
6 | # the Free Software Foundation; either version 2 of the License, or # | |
7 | # (at your option) any later version. # | |
8 | # # | |
9 | # IPCop is distributed in the hope that it will be useful, # | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
12 | # GNU General Public License for more details. # | |
13 | # # | |
14 | # You should have received a copy of the GNU General Public License # | |
15 | # along with IPCop; if not, write to the Free Software # | |
16 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # | |
17 | # # | |
18 | # Makefiles are based on LFSMake, which is # | |
19 | # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> # | |
20 | # # | |
21 | ############################################################################### | |
22 | ||
23 | ############################################################################### | |
24 | # Definitions | |
25 | ############################################################################### | |
26 | ||
27 | include Config | |
28 | ||
29 | DATE = 20070813 | |
a1d042dd | 30 | VER = 3.0-20070813 |
fccb3371 MT |
31 | |
32 | THISAPP = foomatic-$(VER) | |
33 | DL_FILE = foomatic-filters-$(VER).tar.gz | |
34 | DL_FROM = $(URL_IPFIRE) | |
35 | DIR_APP = $(DIR_SRC)/foomatic-filters-$(VER) | |
36 | TARGET = $(DIR_INFO)/$(THISAPP) | |
37 | PROG = foomatic | |
38 | PAK_VER = 1 | |
39 | ||
40 | DESCDE = "Foomatic beinhaltet Filter und Treiber für CUPS." | |
41 | DESCEN = "Foomatic is a collection of filters and ppds for cups." | |
42 | DEPS = "cups ghostscript" | |
43 | ||
44 | ############################################################################### | |
45 | # Top-level Rules | |
46 | ############################################################################### | |
47 | ||
48 | objects = $(DL_FILE) \ | |
49 | foomatic-db-$(DATE).tar.gz \ | |
50 | foomatic-db-engine-$(VER).tar.gz \ | |
51 | foomatic-db-hpijs-$(DATE).tar.gz | |
52 | ||
53 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
54 | foomatic-db-$(DATE).tar.gz = $(DL_FROM)/foomatic-db-$(DATE).tar.gz | |
55 | foomatic-db-engine-$(VER).tar.gz = $(DL_FROM)/foomatic-db-engine-$(VER).tar.gz | |
56 | foomatic-db-hpijs-$(DATE).tar.gz = $(DL_FROM)/foomatic-db-hpijs-$(DATE).tar.gz | |
57 | ||
58 | $(DL_FILE)_MD5 = 41de0f45866ab4c19c1d5e3e2cdab42f | |
59 | foomatic-db-$(DATE).tar.gz_MD5 = a3ab04b7cc5d870b040ffce19e664698 | |
60 | foomatic-db-engine-$(VER).tar.gz_MD5 = ec9639719a9c1d4095248e534c3f2d0d | |
61 | foomatic-db-hpijs-$(DATE).tar.gz_MD5 = e59fa189336e96a9d43cfcfb6222a9c2 | |
62 | ||
63 | install : $(TARGET) | |
64 | ||
65 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
66 | ||
67 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
68 | ||
69 | md5 : $(subst %,%_MD5,$(objects)) | |
70 | ||
71 | dist: | |
72 | $(PAK) | |
73 | ||
74 | ############################################################################### | |
75 | # Downloading, checking, md5sum | |
76 | ############################################################################### | |
77 | ||
78 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
79 | @$(CHECK) | |
80 | ||
81 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
82 | @$(LOAD) | |
83 | ||
84 | $(subst %,%_MD5,$(objects)) : | |
85 | @$(MD5) | |
86 | ||
87 | ############################################################################### | |
88 | # Installation Details | |
89 | ############################################################################### | |
90 | ||
91 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
92 | @$(PREBUILD) | |
93 | @rm -rf $(DIR_SRC)/foomatic-* && cd $(DIR_SRC) && \ | |
94 | tar zxf $(DIR_DL)/$(DL_FILE) && \ | |
95 | tar zxf $(DIR_DL)/foomatic-db-$(DATE).tar.gz && \ | |
96 | tar zxf $(DIR_DL)/foomatic-db-engine-$(VER).tar.gz && \ | |
97 | tar zxf $(DIR_DL)/foomatic-db-hpijs-$(DATE).tar.gz | |
a1d042dd | 98 | cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc |
fccb3371 MT |
99 | cd $(DIR_APP) && make $(MAKETUNING) |
100 | cd $(DIR_APP) && make install | |
101 | cd $(DIR_SRC)/foomatic-db-$(DATE) && ./configure --prefix=/usr --sysconfdir=/etc | |
102 | cd $(DIR_SRC)/foomatic-db-$(DATE) && make $(MAKETUNING) | |
103 | cd $(DIR_SRC)/foomatic-db-$(DATE) && make install | |
104 | cd $(DIR_SRC)/foomatic-db-engine-$(VER) && ./configure --prefix=/usr --sysconfdir=/etc | |
105 | cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make $(MAKETUNING) | |
106 | cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make install | |
107 | cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && ./configure --prefix=/usr --sysconfdir=/etc | |
108 | cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && make $(MAKETUNING) | |
109 | cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && make install | |
110 | @rm -rf $(DIR_SRC)/foomatic-* | |
111 | @$(POSTBUILD) |