wok-next view ghostscript/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | dd145c435e4b |
children | b856fc8d7283 |
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 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 gtk+-dev expat-dev fontconfig-dev freetype-dev \
16 gnutls-dev libgcrypt-dev libgpg-error-dev libpng16-dev tiff-dev \
17 zlib-dev cups-dev jbig2dec jasper-dev"
18 SPLIT="ghostscript ghostscript-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=$DESTDIR 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 cairo cups fontconfig freetype gdk-pixbuf glib gtk+ \
52 libcups libgnutls libidn libjpeg-turbo libpng16 pango tiff zlib"
53 ;;
54 *-dev)
55 copy @std
56 ;;
57 esac
58 }