Files
ports/main/ghostscript/spkgbuild
2023-11-03 09:18:05 +01:00

36 lines
891 B
Plaintext

# description : Postscript interpreter
# depends : libxext libxt cups fontconfig util-linux
name=ghostscript
version=10.02.1
_vrsn=$(echo $version | sed 's/\.//g')
release=1
source="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${_vrsn}/$name-$version.tar.xz
https://downloads.sourceforge.net/sourceforge/gs-fonts/$name-fonts-std-8.11.tar.gz"
build() {
cd $name-$version
./configure --prefix=/usr \
--enable-cups \
--disable-gtk \
--with-drivers=ALL \
--with-ijs \
--with-fontpath=/usr/share/ghostscript/fonts:/usr/share/fonts
make so all
make DESTDIR=$PKG install-so install
cd ijs
./autogen.sh
./configure --prefix=/usr --enable-shared
make
make DESTDIR=$PKG install
cp -r $SRC/fonts $PKG/usr/share/ghostscript
rm $PKG/usr/share/ghostscript/fonts/[CRT]*
rm $PKG/usr/bin/ijs_client_example \
$PKG/usr/bin/ijs_server_example
}