]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - lfs/ghostscript
Ein Paar Dateien fuer die GPLv3 angepasst.
[people/teissler/ipfire-2.x.git] / lfs / ghostscript
CommitLineData
a31b2bc4 1###############################################################################
a31b2bc4 2# #
70df8302
MT
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
a31b2bc4 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
a31b2bc4
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
a31b2bc4
MT
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. #
15# #
16# You should have received a copy of the GNU General Public License #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
a31b2bc4 18# #
a31b2bc4
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
27VER = 8.15.1
28
fd3e7da0
MT
29THISAPP = espgs-$(VER)
30DL_FILE = $(THISAPP)-source.tar.bz2
1751628e 31DL_FROM = $(URL_IPFIRE)
a31b2bc4
MT
32DIR_APP = $(DIR_SRC)/espgs-$(VER)
33TARGET = $(DIR_INFO)/$(THISAPP)
3489ebac
MT
34PROG = ghostscript
35PAK_VER = 1
36
37DESCDE = "Eine Adobe-Postscript-Alternative."
38DESCEN = "An alternative to Adobe-Postscript."
39DEPS = ""
a31b2bc4
MT
40
41###############################################################################
42# Top-level Rules
43###############################################################################
44
45objects = $(DL_FILE) \
46 ghostscript-fonts-std-8.11.tar.gz \
47 gnu-gs-fonts-other-6.0.tar.gz
48
49$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
1751628e
MT
50ghostscript-fonts-std-8.11.tar.gz = $(URL_IPFIRE)/ghostscript-fonts-std-8.11.tar.gz
51gnu-gs-fonts-other-6.0.tar.gz = $(URL_IPFIRE)/gnu-gs-fonts-other-6.0.tar.gz
a31b2bc4
MT
52
53$(DL_FILE)_MD5 = 2a21136953c3559e6088522753b06b1f
54ghostscript-fonts-std-8.11.tar.gz_MD5 = 6865682b095f8c4500c54b285ff05ef6
55gnu-gs-fonts-other-6.0.tar.gz_MD5 = 33457d3f37de7ef03d2eea05a9e6aa4f
56
57install : $(TARGET)
58
59check : $(patsubst %,$(DIR_CHK)/%,$(objects))
60
61download :$(patsubst %,$(DIR_DL)/%,$(objects))
62
63md5 : $(subst %,%_MD5,$(objects))
64
65dist:
3489ebac 66 $(PAK)
a31b2bc4
MT
67
68###############################################################################
69# Downloading, checking, md5sum
70###############################################################################
71
72$(patsubst %,$(DIR_CHK)/%,$(objects)) :
73 @$(CHECK)
74
75$(patsubst %,$(DIR_DL)/%,$(objects)) :
76 @$(LOAD)
77
78$(subst %,%_MD5,$(objects)) :
79 @$(MD5)
80
81###############################################################################
82# Installation Details
83###############################################################################
84
85$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
86 @$(PREBUILD)
87 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
88# cd $(DIR_APP) && sed -i "s/bbox.dev$/x11.dev/" Makefile.in
89 cd $(DIR_APP) && ./configure --prefix=/usr --enable-threads --without-omni
90 cd $(DIR_APP) && make
91 cd $(DIR_APP) && make install
92 rmdir -v /usr/lib/ghostscript/8.15 /usr/lib/ghostscript
a31b2bc4
MT
93 tar xfz $(DIR_SRC)/cache/ghostscript-fonts-std-8.11.tar.gz -C /usr/share/ghostscript
94 tar xfz $(DIR_SRC)/cache/gnu-gs-fonts-other-6.0.tar.gz -C /usr/share/ghostscript
95 chown -v root:root /usr/share/ghostscript/fonts/*
96 @rm -rf $(DIR_APP)
97 @$(POSTBUILD)