wok view ghostscript/receipt @ rev 4532
Add linux-bridge
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 30 12:55:40 2009 +0100 (2009-11-30) |
parents | 098650c56380 |
children | 9f19aee613be |
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"
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/*
57 # already compiled as a shared lib; gsc is same as gs
58 rm -rf $fs/usr/bin/gs
62 }
64 post_install()
65 {
66 ln -s /usr/bin/gsc /usr/bin/gs
67 }