1 ###############################################################################
2 # This file is part of the IPCop Firewall. #
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. #
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. #
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 #
18 # Makefiles are based on LFSMake, which is #
19 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
21 ###############################################################################
23 ###############################################################################
25 ###############################################################################
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)
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"
44 ###############################################################################
46 ###############################################################################
48 objects = $(DL_FILE) \
49 foomatic-db-$(DATE).tar.gz \
50 foomatic-db-engine-$(VER).tar.gz \
51 foomatic-db-hpijs-$(DATE).tar.gz
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
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
65 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
67 download :$(patsubst %,$(DIR_DL)/%,$(objects))
69 md5 : $(subst %,%_MD5,$(objects))
74 ###############################################################################
75 # Downloading, checking, md5sum
76 ###############################################################################
78 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
81 $(patsubst %,$(DIR_DL)/%,$(objects)) :
84 $(subst %,%_MD5,$(objects)) :
87 ###############################################################################
88 # Installation Details
89 ###############################################################################
91 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
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
98 cd $(DIR_APP) && ./configure --prefix=/usr
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-*