wok annotate ghostscript/receipt @ rev 3426
Up: glib (2.20.3), gtk+ (2.16.2) and fix libsdl post_install
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jun 13 12:28:38 2009 +0200 (2009-06-13) |
parents | 7bd16a7179e2 |
children | 2c679ce49f4c |
rev | line source |
---|---|
pankso@626 | 1 # SliTaz package receipt. |
pankso@626 | 2 |
pankso@626 | 3 PACKAGE="ghostscript" |
jozee@2762 | 4 VERSION="8.64" |
pankso@626 | 5 CATEGORY="office" |
pankso@626 | 6 SHORT_DESC="Ghostscript tools and utilities." |
jozee@2762 | 7 MAINTAINER="jozee@slitaz.org" |
pankso@626 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
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 \ |
jozee@2762 | 11 xorg-libXdmcp xorg-libXext xorg-libXt" |
jozee@2765 | 12 # build depends are optional ; ghostscripts still build but does not compile in cups support |
pankso@3422 | 13 BUILD_DEPENDS="cairo-dev gtk+-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 |
pankso@626 | 23 ./configure \ |
pankso@626 | 24 --prefix=/usr \ |
pankso@626 | 25 --infodir=/usr/share/info \ |
pankso@626 | 26 --mandir=/usr/share/man \ |
pankso@2211 | 27 --with-libiconv=native \ |
jozee@2762 | 28 --disable-compile-inits \ |
jozee@2762 | 29 --enable-dynamic \ |
jozee@2762 | 30 --enable-cups \ |
jozee@2762 | 31 --enable-cairo \ |
jozee@2762 | 32 --enable-gtk \ |
jozee@2762 | 33 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \ |
pankso@2211 | 34 $CONFIGURE_ARGS && |
pankso@2211 | 35 make && |
jozee@2762 | 36 make DESTDIR=$PWD/_pkg install soinstall |
jozee@2762 | 37 |
pankso@626 | 38 } |
pankso@626 | 39 |
pankso@626 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@626 | 41 genpkg_rules() |
pankso@626 | 42 { |
pankso@626 | 43 mkdir -p $fs/usr/share |
jozee@2762 | 44 mkdir -p $fs/usr/lib |
pankso@626 | 45 cp -a $_pkg/usr/bin $fs/usr |
pankso@2211 | 46 cp -a $_pkg/usr/lib $fs/usr |
pankso@626 | 47 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share |
jozee@2762 | 48 # if cups-dev installed |
pankso@2211 | 49 cp -a $_pkg/usr/share/cups $fs/usr/share |
pankso@2211 | 50 cp -a $_pkg/etc $fs |
pankso@626 | 51 # Remove doc and examples |
pankso@626 | 52 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc |
pankso@626 | 53 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples |
jozee@2762 | 54 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP |
jozee@2762 | 55 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/* |
jozee@2762 | 56 |
jozee@2762 | 57 |
jozee@2762 | 58 # already compiled as a shared lib; gsc is same as gs |
jozee@2762 | 59 rm -rf $fs/usr/bin/gs |
jozee@2762 | 60 |
jozee@2762 | 61 |
jozee@2762 | 62 |
pankso@626 | 63 } |
jozee@2762 | 64 |
jozee@2762 | 65 post_install() |
jozee@2762 | 66 { |
jozee@2762 | 67 ln -s /usr/bin/gsc /usr/bin/gs |
jozee@2762 | 68 } |