wok-6.x view ghostscript/receipt @ rev 16074
Add f3
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Fri Mar 14 20:38:37 2014 +0000 (2014-03-14) |
parents | 8e4c74abdf74 |
children | b62f93de1a4e |
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 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://pages.cs.wisc.edu/~ghost/"
11 #WGET_URL="http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs862/$TARBALL"
12 WGET_URL="http://downloads.ghostscript.com/public/$TARBALL"
14 DEPENDS="gtk+ expat fontconfig freetype gnutls jpeg libgcrypt libgpg-error \
15 libpng tiff zlib cups xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
16 xorg-libXdmcp xorg-libXext xorg-libXt gcc-lib-base jasper jbig2dec"
17 # build depends are optional ; ghostscripts still build but does not compile in cups support
18 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"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 # force it to use system-libs
25 rm -rf jpeg libpng zlib jasper expat tiff
27 # --disable-compile-inits is needed for linking with system-zlib
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 --disable-compile-inits \
34 --enable-dynamic \
35 --enable-cups \
36 --enable-cairo \
37 --enable-gtk \
38 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
39 --disable-compile-inits \
40 $CONFIGURE_ARGS &&
41 make $MAKEFLAGS &&
42 make DESTDIR=$DESTDIR install soinstall
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share
50 mkdir -p $fs/usr/lib
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib $fs/usr
53 cp -a $install/usr/share/$PACKAGE $fs/usr/share
54 # if cups-dev installed
55 cp -a $install/usr/share/cups $fs/usr/share
56 cp -a $install/etc $fs
57 # Remove doc and examples
58 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
59 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
60 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
61 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
63 # already compiled as a shared lib; gsc is same as gs
64 rm -rf $fs/usr/bin/gs
65 }
67 post_install()
68 {
69 ln -s /usr/bin/gsc $1/usr/bin/gs
70 }