mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-21 15:44:36 +00:00
37 lines
915 B
Plaintext
37 lines
915 B
Plaintext
# description : Postscript interpreter
|
|
# depends : libxext libxt cups fontconfig util-linux
|
|
|
|
name=ghostscript
|
|
version=9.56.1
|
|
_version=$(echo $version | sed 's/\.//g')
|
|
release=1
|
|
source="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${_version}/$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 \
|
|
--disable-dbus \
|
|
--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
|
|
}
|