wok view ghostscript/receipt @ rev 21207
Up pure-ftpd (1.0.48)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 08 19:08:56 2019 +0200 (2019-04-08) |
parents | 7bb096863642 |
children | ff236a1ecca5 |
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 \
19 gnutls-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng-dev tiff-dev \
20 zlib-dev cups-dev jbig2dec jasper-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # force it to use system-libs
26 rm -rf jpeg libpng zlib jasper expat tiff
28 # --disable-compile-inits is needed for linking with system-zlib
30 ./configure \
31 --prefix=/usr \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 --disable-compile-inits \
35 --enable-dynamic \
36 --enable-cups \
37 --enable-cairo \
38 --enable-gtk \
39 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
40 --disable-compile-inits \
41 $CONFIGURE_ARGS &&
42 make $MAKEFLAGS &&
43 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 -sf /usr/bin/gsc "$1/usr/bin/gs"
70 }