wok view ghostscript/receipt @ rev 6317

Fixed typo in ghostscript.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Sep 17 02:20:38 2010 +0000 (2010-09-17)
parents e17e83137164
children a481142b1d25
line source
1 # SliTaz package receipt.
3 PACKAGE="ghostscript"
4 VERSION="8.71"
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"
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"
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 ./configure \
24 --prefix=/usr \
25 --infodir=/usr/share/info \
26 --mandir=/usr/share/man \
27 --disable-compile-inits \
28 --enable-dynamic \
29 --enable-cups \
30 --enable-cairo \
31 --enable-gtk \
32 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
33 $CONFIGURE_ARGS &&
34 make -j 4 &&
35 make DESTDIR=$PWD/_pkg install soinstall
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
43 mkdir -p $fs/usr/lib
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a $_pkg/usr/lib $fs/usr
46 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
47 # if cups-dev installed
48 cp -a $_pkg/usr/share/cups $fs/usr/share
49 cp -a $_pkg/etc $fs
50 # Remove doc and examples
51 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
52 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
53 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
54 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
56 # already compiled as a shared lib; gsc is same as gs
57 rm -rf $fs/usr/bin/gs
58 }
60 post_install()
61 {
62 ln -s /usr/bin/gsc $1/usr/bin/gs
63 }