wok-next view ghostscript/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 75632eca5b07 |
children |
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="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://pages.cs.wisc.edu/~ghost/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION/./}/$TARBALL"
14 # build depends are optional; ghostscripts still build but does not compile in cups support
15 BUILD_DEPENDS="cairo-dev gtk2-dev expat-dev fontconfig-dev freetype-dev \
16 gnutls-dev libgcrypt-dev libgpg-error-dev libpng-dev tiff-dev \
17 zlib-dev cups-dev jbig2dec jasper-dev libjpeg-turbo-dev"
18 SPLIT="$PACKAGE-dev"
20 compile_rules() {
21 # force it to use system-libs
22 rm -rf jpeg libpng zlib jasper expat tiff
24 # --disable-compile-inits is needed for linking with system-zlib
26 ./configure \
27 --disable-compile-inits \
28 --enable-dynamic \
29 --enable-cups \
30 --enable-gtk \
31 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
32 --disable-compile-inits \
33 $CONFIGURE_ARGS &&
34 make $MAKEFLAGS &&
35 make DESTDIR=$install install soinstall
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 ghostscript)
41 copy @std
42 # Remove doc and examples
43 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
44 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
45 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
46 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
47 # already compiled as a shared lib; gsc is same as gs
48 rm -rf $fs/usr/bin/gs
49 ln -s gsc $fs/usr/bin/gs
51 DEPENDS="atk libcairo cups fontconfig freetype gdk-pixbuf glib gtk2 \
52 libcups libgnutls libidn libjpeg-turbo libpng pango libtiff zlib"
53 ;;
54 *-dev)
55 copy @dev
56 ;;
57 esac
58 }