wok view ghostscript/receipt @ rev 14169

Add libnfc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 08 12:16:44 2013 +0100 (2013-03-08)
parents acc4afe2f2e5
children 7bb096863642
line source
1 # SliTaz package receipt.
3 PACKAGE="ghostscript"
4 VERSION="9.02"
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 jasper jbig2dec"
12 # build depends are optional ; ghostscripts still build but does not compile in cups support
13 BUILD_DEPENDS="cairo-dev gtk+-dev expat-dev fontconfig-dev freetype-dev gnutls-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng-dev tiff-dev zlib-dev cups-dev jbig2dec 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://downloads.ghostscript.com/public/$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 tiff
26 # --disable-compile-inits is needed for linking with system-zlib
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 --disable-compile-inits \
33 --enable-dynamic \
34 --enable-cups \
35 --enable-cairo \
36 --enable-gtk \
37 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
38 --disable-compile-inits \
39 $CONFIGURE_ARGS &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$PWD/_pkg install soinstall
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share
49 mkdir -p $fs/usr/lib
50 cp -a $_pkg/usr/bin $fs/usr
51 cp -a $_pkg/usr/lib $fs/usr
52 cp -a $_pkg/usr/share/$PACKAGE $fs/usr/share
53 # if cups-dev installed
54 cp -a $_pkg/usr/share/cups $fs/usr/share
55 cp -a $_pkg/etc $fs
56 # Remove doc and examples
57 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
58 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
59 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
60 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
62 # already compiled as a shared lib; gsc is same as gs
63 rm -rf $fs/usr/bin/gs
64 }
66 post_install()
67 {
68 ln -s /usr/bin/gsc $1/usr/bin/gs
69 }