wok view ghostscript/receipt @ rev 5762

Add exosip
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 05 11:58:10 2010 +0200 (2010-07-05)
parents 9f19aee613be
children e4319b0b765a
line source
1 # SliTaz package receipt.
3 PACKAGE="ghostscript"
4 VERSION="8.70"
5 CATEGORY="office"
6 SHORT_DESC="Ghostscript tools and utilities."
7 MAINTAINER="jozee@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
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"
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 &&
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 }