wok-next annotate ghostscript/receipt @ rev 7327

Enabled devtmpfs support in kernel. Also enabled APM to help reboot some systems.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Nov 18 19:15:28 2010 +0000 (2010-11-18)
parents a4eeecddb37a
children 94fbabafc8d7
rev   line source
pankso@626 1 # SliTaz package receipt.
pankso@626 2
pankso@626 3 PACKAGE="ghostscript"
slaxemulator@6650 4 VERSION="9.00"
pankso@626 5 CATEGORY="office"
pankso@626 6 SHORT_DESC="Ghostscript tools and utilities."
jozee@2762 7 MAINTAINER="jozee@slitaz.org"
slaxemulator@6312 8 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@2845 9 DEPENDS="gtk+ expat fontconfig freetype gnutls jpeg libgcrypt libgpg-error \
pankso@3363 10 libpng tiff zlib cups xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
slaxemulator@6650 11 xorg-libXdmcp xorg-libXext xorg-libXt gcc-lib-base jasper"
jozee@2765 12 # build depends are optional ; ghostscripts still build but does not compile in cups support
slaxemulator@6650 13 BUILD_DEPENDS="cairo-dev gtk+-dev xorg-dev expat-dev fontconfig-dev freetype-dev gnutls-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng-dev tiff-dev zlib-dev cups-dev jasper-dev"
jozee@2762 14 WEB_SITE="http://pages.cs.wisc.edu/~ghost/"
jozee@2762 15 #WGET_URL="http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs862/$TARBALL"
jozee@2762 16 WGET_URL="http://ghostscript.com/releases/$TARBALL"
jozee@2762 17
pankso@626 18
pankso@626 19 # Rules to configure and make the package.
pankso@626 20 compile_rules()
pankso@626 21 {
pankso@626 22 cd $src
slaxemulator@6650 23 # force it to use system-libs
slaxemulator@6650 24 rm -rf jpeg libpng zlib jasper expat
slaxemulator@6650 25
slaxemulator@6650 26 # fix build with system jasper
slaxemulator@6650 27 patch -Np1 -i ../stuff/ghostscript-system-jasper.patch
slaxemulator@6650 28
slaxemulator@6650 29 # --disable-compile-inits is needed for linking with system-zlib
slaxemulator@6650 30
pankso@626 31 ./configure \
pankso@626 32 --prefix=/usr \
pankso@626 33 --infodir=/usr/share/info \
pankso@626 34 --mandir=/usr/share/man \
jozee@2762 35 --disable-compile-inits \
jozee@2762 36 --enable-dynamic \
jozee@2762 37 --enable-cups \
jozee@2762 38 --enable-cairo \
jozee@2762 39 --enable-gtk \
jozee@2762 40 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
slaxemulator@6650 41 --disable-compile-inits \
pankso@2211 42 $CONFIGURE_ARGS &&
pascal@5784 43 make -j 4 &&
jozee@2762 44 make DESTDIR=$PWD/_pkg install soinstall
jozee@2762 45
pankso@626 46 }
pankso@626 47
pankso@626 48 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@626 49 genpkg_rules()
pankso@626 50 {
pankso@626 51 mkdir -p $fs/usr/share
jozee@2762 52 mkdir -p $fs/usr/lib
pankso@626 53 cp -a $_pkg/usr/bin $fs/usr
pankso@2211 54 cp -a $_pkg/usr/lib $fs/usr
pankso@626 55 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
jozee@2762 56 # if cups-dev installed
pankso@2211 57 cp -a $_pkg/usr/share/cups $fs/usr/share
pankso@2211 58 cp -a $_pkg/etc $fs
pankso@626 59 # Remove doc and examples
pankso@626 60 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
pankso@626 61 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
jozee@2762 62 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
jozee@2762 63 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
jozee@2762 64
jozee@2762 65 # already compiled as a shared lib; gsc is same as gs
jozee@2762 66 rm -rf $fs/usr/bin/gs
pankso@626 67 }
jozee@2762 68
jozee@2762 69 post_install()
jozee@2762 70 {
pascal@5123 71 ln -s /usr/bin/gsc $1/usr/bin/gs
jozee@2762 72 }