2016-02-24 01:27:23 +01:00
|
|
|
# Description: An interpreter for the PostScript language
|
|
|
|
# URL: http://www.ghostscript.com/awki
|
2017-01-31 01:37:09 +01:00
|
|
|
# Packager: milisarge
|
|
|
|
# Depends on: glib atk libpng libjpeg-turbo libtiff jasper lcms2 gnutls cups
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
name=ghostscript
|
|
|
|
version=9.18
|
|
|
|
release=1
|
2016-03-05 21:01:31 +01:00
|
|
|
source=( http://repository.timesys.com/buildsources/g/ghostscript/ghostscript-9.18/ghostscript-9.18.tar.gz
|
2016-02-24 01:27:23 +01:00
|
|
|
http://ghostscript.googlecode.com/files/ghostscript-fonts-std-8.11.tar.gz
|
|
|
|
http://ftp.gnu.org/pub/gnu/ghostscript/gnu-gs-fonts-other-6.0.tar.gz )
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2017-01-31 01:37:09 +01:00
|
|
|
sed -i 's/ZLIBDIR=src/ZLIBDIR=$includedir/' configure.ac configure
|
2016-02-24 01:27:23 +01:00
|
|
|
rm -rf freetype lcms2 jpeg libpng zlib
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-dynamic \
|
|
|
|
--with-system-libtiff \
|
|
|
|
--disable-compile-inits
|
|
|
|
make
|
|
|
|
make so
|
|
|
|
make DESTDIR=$PKG install soinstall
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/include/ghostscript
|
|
|
|
mkdir -p $PKG/usr/share/doc/$name-$version
|
|
|
|
|
|
|
|
install -v -m644 base/*.h $PKG/usr/include/ghostscript
|
|
|
|
ln -v -s ghostscript $PKG/usr/include/ps
|
|
|
|
|
|
|
|
ln -sv ../ghostscript/$version/doc \
|
|
|
|
$PKG/usr/share/doc/$name-$version
|
|
|
|
|
|
|
|
cp -r $SRC/fonts $PKG/usr/share/ghostscript
|
|
|
|
}
|