summaryrefslogtreecommitdiffstats
path: root/extra/ghostscript/Pkgfile
blob: 1d00c5e1d094caa6993f33ef67b63bf6fd0f58a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Description: Permet le rendu des documents Postscripts vers différentes cibles
# URL: http://www.ghostscript.com/awki
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: cups, fontconfig

name=ghostscript
version=8.70
release=1
source=( http://downloads.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2 \
	 ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/ghostscript-fonts-std-8.11.tar.gz\
	 http://ftp.gnu.org/pub/gnu/ghostscript/gnu-gs-fonts-other-6.0.tar.gz ghostscript-fPIC.patch)

build() {
	cd $name-$version

if [ "`uname -m`" == "x86_64" ]; then
    patch -Np1 -i ../ghostscript-fPIC.patch
fi
	
	cd ijs
	./autogen.sh
	./configure --prefix=/usr --enable-shared --disable-static
	make
	make DESTDIR=$PKG install

	cd ..
	./configure --prefix=/usr --enable-dynamic --enable-threads --with-ijs \
		--with-jbig2dec --with-omni --with-x --with-drivers=ALL  \
		--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts
	make
	make DESTDIR=$PKG install
	cd ..
	mv fonts $PKG/usr/share/ghostscript
}