1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
30 THISAPP = foomatic-$(VER)
31 DL_FILE = foomatic-filters-$(VER).tar.gz
32 DL_FROM = $(URL_IPFIRE)
33 DIR_APP = $(DIR_SRC)/foomatic-filters-$(VER)
34 TARGET = $(DIR_INFO)/$(THISAPP)
38 DESCDE = "Foomatic beinhaltet Filter und Treiber für CUPS."
39 DESCEN = "Foomatic is a collection of filters and ppds for cups."
40 DEPS = "cups ghostscript"
42 ###############################################################################
44 ###############################################################################
46 objects = $(DL_FILE) \
47 foomatic-db-$(DATE).tar.gz \
48 foomatic-db-engine-$(VER).tar.gz \
49 foomatic-db-hpijs-$(DATE).tar.gz
51 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
52 foomatic-db-$(DATE).tar.gz = $(DL_FROM)/foomatic-db-$(DATE).tar.gz
53 foomatic-db-engine-$(VER).tar.gz = $(DL_FROM)/foomatic-db-engine-$(VER).tar.gz
54 foomatic-db-hpijs-$(DATE).tar.gz = $(DL_FROM)/foomatic-db-hpijs-$(DATE).tar.gz
56 $(DL_FILE)_MD5 = 41de0f45866ab4c19c1d5e3e2cdab42f
57 foomatic-db-$(DATE).tar.gz_MD5 = a3ab04b7cc5d870b040ffce19e664698
58 foomatic-db-engine-$(VER).tar.gz_MD5 = ec9639719a9c1d4095248e534c3f2d0d
59 foomatic-db-hpijs-$(DATE).tar.gz_MD5 = e59fa189336e96a9d43cfcfb6222a9c2
63 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
65 download :$(patsubst %,$(DIR_DL)/%,$(objects))
67 md5 : $(subst %,%_MD5,$(objects))
72 ###############################################################################
73 # Downloading, checking, md5sum
74 ###############################################################################
76 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
79 $(patsubst %,$(DIR_DL)/%,$(objects)) :
82 $(subst %,%_MD5,$(objects)) :
85 ###############################################################################
86 # Installation Details
87 ###############################################################################
89 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
91 @rm -rf $(DIR_SRC)/foomatic-* && cd $(DIR_SRC) && \
92 tar zxf $(DIR_DL)/$(DL_FILE) && \
93 tar zxf $(DIR_DL)/foomatic-db-$(DATE).tar.gz && \
94 tar zxf $(DIR_DL)/foomatic-db-engine-$(VER).tar.gz && \
95 tar zxf $(DIR_DL)/foomatic-db-hpijs-$(DATE).tar.gz
96 cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
97 cd $(DIR_APP) && make $(MAKETUNING)
98 cd $(DIR_APP) && make install
99 cd $(DIR_SRC)/foomatic-db-$(DATE) && ./configure --prefix=/usr --sysconfdir=/etc
100 cd $(DIR_SRC)/foomatic-db-$(DATE) && make $(MAKETUNING)
101 cd $(DIR_SRC)/foomatic-db-$(DATE) && make install
102 cd $(DIR_SRC)/foomatic-db-engine-$(VER) && ./configure --prefix=/usr --sysconfdir=/etc
103 cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make $(MAKETUNING)
104 cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make install
105 cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && ./configure --prefix=/usr --sysconfdir=/etc
106 cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && make $(MAKETUNING)
107 cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && make install
108 @rm -rf $(DIR_SRC)/foomatic-*