wok-next view ghostscript/receipt @ rev 20582
Up libjson-c (0.13.1-20180305)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 10:00:23 2018 +0300 (2018-04-14) |
parents | 27028e8d3c5f |
children | 5f2679c2abb7 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ghostscript"
4 VERSION="9.22"
5 CATEGORY="office"
6 SHORT_DESC="Ghostscript tools and utilities."
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://pages.cs.wisc.edu/~ghost/"
11 WGET_URL="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION/./}/$TARBALL"
13 # build depends are optional ; ghostscripts still build but does not compile in cups support
14 BUILD_DEPENDS="cairo-dev gtk+-dev expat-dev fontconfig-dev freetype-dev \
15 gnutls-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng16-dev tiff-dev \
16 zlib-dev cups-dev jbig2dec jasper-dev"
17 SPLIT="ghostscript ghostscript-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # force it to use system-libs
23 rm -rf jpeg libpng zlib jasper expat tiff
25 # --disable-compile-inits is needed for linking with system-zlib
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 --disable-compile-inits \
32 --enable-dynamic \
33 --enable-cups \
34 --enable-cairo \
35 --enable-gtk \
36 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
37 --disable-compile-inits \
38 $CONFIGURE_ARGS &&
39 make $MAKEFLAGS &&
40 make DESTDIR=$DESTDIR install soinstall
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 case $PACKAGE in
47 ghostscript)
48 DEPENDS="gtk+ expat fontconfig freetype gnutls jpeg libgcrypt \
49 libgpg-error libpng16 tiff zlib cups xorg-libICE \
50 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \
51 xorg-libXext xorg-libXt gcc-lib-base jasper jbig2dec"
52 mkdir -p $fs/usr/share
53 mkdir -p $fs/usr/lib
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/lib $fs/usr
56 cp -a $install/usr/share/$PACKAGE $fs/usr/share
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 ;;
66 ghostscript-dev)
67 CAT="development|Ghostscript devel file"
68 mkdir -p $fs/usr/include
69 cp -a $install/usr/include $fs/usr
70 ;;
71 esac
72 }
74 post_install_ghostscript()
75 {
76 ln -sf /usr/bin/gsc "$1/usr/bin/gs"
77 }