wok-current view ghostscript/receipt @ rev 2768
Add: ghostscript-dev
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Sun Apr 26 18:08:35 2009 +0000 (2009-04-26) |
parents | a22540dbc257 |
children | 583bdd691510 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ghostscript"
4 VERSION="8.64"
5 CATEGORY="office"
6 SHORT_DESC="Ghostscript tools and utilities."
7 MAINTAINER="jozee@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 DEPENDS="expat fontconfig freetype gnutls jpeg libgcrypt libgpg-error \
10 libiconv libpng tiff zlib cups xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
11 xorg-libXdmcp xorg-libXext xorg-libXt"
12 # build depends are optional ; ghostscripts still build but does not compile in cups support
13 BUILD_DEPENDS="libiconv cairo-dev gtk+-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 --with-libiconv=native \
28 --disable-compile-inits \
29 --enable-dynamic \
30 --enable-cups \
31 --enable-cairo \
32 --enable-gtk \
33 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$PWD/_pkg install soinstall
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share
44 mkdir -p $fs/usr/lib
45 cp -a $_pkg/usr/bin $fs/usr
46 cp -a $_pkg/usr/lib $fs/usr
47 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
48 # if cups-dev installed
49 cp -a $_pkg/usr/share/cups $fs/usr/share
50 cp -a $_pkg/etc $fs
51 # Remove doc and examples
52 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
53 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
54 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
55 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
58 # already compiled as a shared lib; gsc is same as gs
59 rm -rf $fs/usr/bin/gs
63 }
65 post_install()
66 {
67 ln -s /usr/bin/gsc /usr/bin/gs
68 }