summaryrefslogtreecommitdiff
path: root/ghostscript/Pkgfile
blob: b2e49c5238285890b2821e9f3dc1b6864849413e (plain)
    1 # Description: Postscript interpreter
    2 # URL:         http://www.ghostscript.com
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  util-linux, cups, fontconfig, xorg-libxt, xorg-libxext
    5 
    6 name=ghostscript
    7 version=9.18
    8 release=2
    9 source=(http://downloads.ghostscript.com/public/$name-$version.tar.bz2
   10         http://downloads.sourceforge.net/sourceforge/gs-fonts/$name-fonts-std-8.11.tar.gz
   11         ghostscript-gpl-9.18-gserrors.h-backport.patch)
   12 
   13 build () {
   14     cd $name-$version
   15 
   16     # required for gimp
   17     patch -p1 -i $SRC/ghostscript-gpl-9.18-gserrors.h-backport.patch
   18 
   19     ./configure --prefix=/usr \
   20                 --mandir=/usr/man \
   21                 --enable-cups \
   22                 --disable-gtk \
   23                 --disable-dbus \
   24                 --with-drivers=ALL \
   25                 --with-ijs \
   26                 --with-fontpath=/usr/share/ghostscript/fonts:/usr/share/fonts
   27 
   28     make so all 
   29     make DESTDIR=$PKG install-so install
   30 
   31     cd ijs
   32     
   33     ./autogen.sh
   34     ./configure --prefix=/usr --mandir=/usr/man --enable-shared
   35     make
   36     make DESTDIR=$PKG install
   37 
   38     cp -r $SRC/fonts $PKG/usr/share/ghostscript
   39 
   40     rm -r $PKG/usr/{share/ghostscript/$version/{examples,doc},man/de}
   41     rm $PKG/usr/share/ghostscript/fonts/[CRT]*
   42     rm $PKG/usr/bin/ijs_{client,server}_example
   43 }

Generated by cgit