wok view ghostscript/receipt @ rev 6752

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