mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 18:20:07 +00:00
36 lines
891 B
Plaintext
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
|
|
}
|