wok view ghostscript/receipt @ rev 24225
updated perl-io-socket-ssl (2.068 -> 2.073)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 17:41:39 2021 +0100 (2021-12-31) |
parents | b62f93de1a4e |
children | d8c511e24c20 |
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 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # force it to use system-libs
27 rm -rf jpeg libpng zlib jasper expat tiff
29 # --disable-compile-inits is needed for linking with system-zlib
31 # 9.02
32 sed -i '32i#include <cups/ppd.h>' \
33 cups/colord.h
35 ./configure \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 --disable-compile-inits \
40 --enable-dynamic \
41 --enable-cups \
42 --enable-cairo \
43 --enable-gtk \
44 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
45 --disable-compile-inits \
46 $CONFIGURE_ARGS &&
47 make $MAKEFLAGS &&
48 make DESTDIR=$DESTDIR install soinstall
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/share
55 mkdir -p $fs/usr/lib
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/lib $fs/usr
59 cp -a $install/usr/share/$PACKAGE $fs/usr/share
61 # if cups-dev installed
62 cp -a $install/usr/share/cups $fs/usr/share
63 cp -a $install/etc $fs
65 # Remove documentation and examples
66 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
67 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
69 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
70 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
72 # already compiled as a shared library; gsc is same as gs
73 rm -rf $fs/usr/bin/gs
74 }
76 post_install()
77 {
78 ln -sf /usr/bin/gsc "$1/usr/bin/gs"
79 }