wok-6.x view ghostscript/receipt @ rev 24538
updated fbcat (0.5.1 -> 0.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 15:14:49 2022 +0100 (2022-02-23) |
parents | ff236a1ecca5 |
children | bbb38f5d2cd9 |
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 WEB_SITE="http://pages.cs.wisc.edu/~ghost/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 #WGET_URL="http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs862/$TARBALL"
13 WGET_URL="http://downloads.ghostscript.com/public/$TARBALL"
15 DEPENDS="gtk+ expat fontconfig freetype gnutls jpeg libgcrypt libgpg-error \
16 libpng tiff zlib cups xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
17 xorg-libXdmcp xorg-libXext xorg-libXt gcc-lib-base jasper jbig2dec"
18 # build depends are optional ; ghostscripts still build but does not compile in cups support
19 BUILD_DEPENDS="cairo-dev gtk+-dev expat-dev fontconfig-dev freetype-dev \
20 gnutls-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng-dev tiff-dev \
21 zlib-dev cups-dev jbig2dec jasper-dev"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - https://www.ghostscript.com/releases/index.html 2>/dev/null | \
27 sed '/latest release/!d;s|.*script ||;s| .*||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 # force it to use system-libs
34 rm -rf jpeg libpng zlib jasper expat tiff
36 # --disable-compile-inits is needed for linking with system-zlib
38 # 9.02
39 sed -i '32i#include <cups/ppd.h>' \
40 cups/colord.h
42 ./configure \
43 --prefix=/usr \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 --disable-compile-inits \
47 --enable-dynamic \
48 --enable-cups \
49 --enable-cairo \
50 --enable-gtk \
51 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
52 --disable-compile-inits \
53 $CONFIGURE_ARGS &&
54 make $MAKEFLAGS &&
55 make DESTDIR=$DESTDIR install soinstall
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/share
62 mkdir -p $fs/usr/lib
64 cp -a $install/usr/bin $fs/usr
65 cp -a $install/usr/lib $fs/usr
66 cp -a $install/usr/share/$PACKAGE $fs/usr/share
68 # if cups-dev installed
69 cp -a $install/usr/share/cups $fs/usr/share
70 cp -a $install/etc $fs
72 # Remove documentation and examples
73 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
74 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
76 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
77 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
79 # already compiled as a shared library; gsc is same as gs
80 rm -rf $fs/usr/bin/gs
81 }
83 post_install()
84 {
85 ln -sf /usr/bin/gsc "$1/usr/bin/gs"
86 }