wok-current annotate ghostscript/receipt @ rev 24598
updated ghostscript and ghostscript-dev (9.02 -> 9.55.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 02 07:25:16 2022 +0100 (2022-03-02) |
parents | d8c511e24c20 |
children | 8691816c33c5 |
rev | line source |
---|---|
pankso@626 | 1 # SliTaz package receipt. |
pankso@626 | 2 |
pankso@626 | 3 PACKAGE="ghostscript" |
Hans-G?nter@24598 | 4 VERSION="9.55.0" |
pankso@626 | 5 CATEGORY="office" |
pankso@626 | 6 SHORT_DESC="Ghostscript tools and utilities." |
jozee@2762 | 7 MAINTAINER="jozee@slitaz.org" |
Hans-G?nter@24598 | 8 LICENSE="AGPL" |
Hans-G?nter@24598 | 9 WEB_SITE="https://www.ghostscript.com/" |
Hans-G?nter@23221 | 10 |
Hans-G?nter@24598 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@24598 | 12 WGET_URL="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION//./}/$TARBALL" |
pascal@15215 | 13 |
Hans-G?nter@24598 | 14 DEPENDS="cups expat fontconfig freetype gcc83-lib-base gnutls gtk+ jasper |
Hans-G?nter@24598 | 15 jbig2dec jpeg libgcrypt libgpg-error libpng tiff xorg-libICE |
Hans-G?nter@24598 | 16 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext |
Hans-G?nter@24598 | 17 xorg-libXt zlib" |
jozee@2765 | 18 # build depends are optional ; ghostscripts still build but does not compile in cups support |
Hans-G?nter@24598 | 19 BUILD_DEPENDS="cairo-dev cups-dev expat-dev fontconfig-dev freetype-dev |
Hans-G?nter@24598 | 20 gcc83 gnutls-dev gtk+-dev jasper-dev jbig2dec jpeg-dev libgcrypt-dev |
Hans-G?nter@24598 | 21 libgpg-error-dev libpng-dev tiff-dev zlib-dev" |
pankso@626 | 22 |
pascal@24491 | 23 # What is the latest version available today? |
pascal@24491 | 24 current_version() |
pascal@24491 | 25 { |
pascal@24491 | 26 wget -O - https://www.ghostscript.com/releases/index.html 2>/dev/null | \ |
pascal@24491 | 27 sed '/latest release/!d;s|.*script ||;s| .*||;q' |
pascal@24491 | 28 } |
pascal@24491 | 29 |
pankso@626 | 30 # Rules to configure and make the package. |
pankso@626 | 31 compile_rules() |
pankso@626 | 32 { |
slaxemulator@6650 | 33 # force it to use system-libs |
Hans-G?nter@24598 | 34 rm -rf jpeg libpng zlib jasper expat |
slaxemulator@6650 | 35 |
slaxemulator@6650 | 36 # --disable-compile-inits is needed for linking with system-zlib |
slaxemulator@6650 | 37 |
Hans-G?nter@23221 | 38 # 9.02 |
Hans-G?nter@23221 | 39 sed -i '32i#include <cups/ppd.h>' \ |
Hans-G?nter@23221 | 40 cups/colord.h |
Hans-G?nter@23221 | 41 |
Hans-G?nter@24598 | 42 ./configure \ |
Hans-G?nter@24598 | 43 CC=gcc-83 \ |
Hans-G?nter@24598 | 44 CXX=g++-83 \ |
Hans-G?nter@24598 | 45 --prefix=/usr \ |
Hans-G?nter@24598 | 46 --infodir=/usr/share/info \ |
Hans-G?nter@24598 | 47 --mandir=/usr/share/man \ |
Hans-G?nter@24598 | 48 --disable-compile-inits \ |
Hans-G?nter@24598 | 49 --enable-cups \ |
Hans-G?nter@24598 | 50 --enable-dynamic \ |
Hans-G?nter@24598 | 51 --enable-gtk \ |
Hans-G?nter@24598 | 52 --with-fontpath="/usr/share/fonts/truetype/:/usr/share/fonts" \ |
Hans-G?nter@24598 | 53 --with-system-libtiff \ |
pankso@2211 | 54 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 55 make $MAKEFLAGS && |
Hans-G?nter@24598 | 56 make install soinstall DESTDIR=$DESTDIR |
pankso@626 | 57 } |
pankso@626 | 58 |
pankso@626 | 59 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@626 | 60 genpkg_rules() |
pankso@626 | 61 { |
pankso@626 | 62 mkdir -p $fs/usr/share |
jozee@2762 | 63 mkdir -p $fs/usr/lib |
Hans-G?nter@23221 | 64 |
Hans-G?nter@23221 | 65 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23221 | 66 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23221 | 67 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
Hans-G?nter@23221 | 68 |
jozee@2762 | 69 # if cups-dev installed |
Hans-G?nter@24598 | 70 # 9.55.0: not created |
Hans-G?nter@24598 | 71 # cp -a $install/usr/share/cups $fs/usr/share |
Hans-G?nter@24598 | 72 # cp -a $install/etc $fs |
Hans-G?nter@23221 | 73 |
Hans-G?nter@23221 | 74 # Remove documentation and examples |
Hans-G?nter@23221 | 75 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc |
Hans-G?nter@23221 | 76 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples |
Hans-G?nter@23221 | 77 |
Hans-G?nter@24598 | 78 # Remove CMAPs (Non-free : not covered under GPL) : |
Hans-G?nter@24598 | 79 # moved to non-free package get-ghostscript-CMAP |
Hans-G?nter@23221 | 80 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/* |
Hans-G?nter@24598 | 81 |
Hans-G?nter@24598 | 82 # already compiled as a shared lib; gsc is same as gs |
Hans-G?nter@23221 | 83 rm -rf $fs/usr/bin/gs |
pankso@626 | 84 } |
jozee@2762 | 85 |
jozee@2762 | 86 post_install() |
jozee@2762 | 87 { |
Hans-G?nter@24598 | 88 ln -sf /usr/bin/gsc "$1/usr/bin/gs" |
jozee@2762 | 89 } |