wok-current annotate ghostscript/receipt @ rev 23432
updated phpvirtualbox (4.0-7 -> 5.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 01 17:31:39 2020 +0100 (2020-04-01) |
parents | b62f93de1a4e |
children | d8c511e24c20 |
rev | line source |
---|---|
pankso@626 | 1 # SliTaz package receipt. |
pankso@626 | 2 |
pankso@626 | 3 PACKAGE="ghostscript" |
slaxemulator@9423 | 4 VERSION="9.02" |
pankso@626 | 5 CATEGORY="office" |
pankso@626 | 6 SHORT_DESC="Ghostscript tools and utilities." |
jozee@2762 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15215 | 8 LICENSE="GPL3" |
Hans-G?nter@23221 | 9 WEB_SITE="http://pages.cs.wisc.edu/~ghost/" |
Hans-G?nter@23221 | 10 |
slaxemulator@8659 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@15215 | 12 #WGET_URL="http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs862/$TARBALL" |
pascal@15215 | 13 WGET_URL="http://downloads.ghostscript.com/public/$TARBALL" |
pascal@15215 | 14 |
pascal@2845 | 15 DEPENDS="gtk+ expat fontconfig freetype gnutls jpeg libgcrypt libgpg-error \ |
Hans-G?nter@23221 | 16 libpng tiff zlib cups xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \ |
Hans-G?nter@23221 | 17 xorg-libXdmcp xorg-libXext xorg-libXt gcc-lib-base jasper jbig2dec" |
jozee@2765 | 18 # build depends are optional ; ghostscripts still build but does not compile in cups support |
al@18472 | 19 BUILD_DEPENDS="cairo-dev gtk+-dev expat-dev fontconfig-dev freetype-dev \ |
Hans-G?nter@23221 | 20 gnutls-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng-dev tiff-dev \ |
Hans-G?nter@23221 | 21 zlib-dev cups-dev jbig2dec jasper-dev" |
pankso@626 | 22 |
pankso@626 | 23 # Rules to configure and make the package. |
pankso@626 | 24 compile_rules() |
pankso@626 | 25 { |
slaxemulator@6650 | 26 # force it to use system-libs |
slaxemulator@8659 | 27 rm -rf jpeg libpng zlib jasper expat tiff |
slaxemulator@6650 | 28 |
slaxemulator@6650 | 29 # --disable-compile-inits is needed for linking with system-zlib |
slaxemulator@6650 | 30 |
Hans-G?nter@23221 | 31 # 9.02 |
Hans-G?nter@23221 | 32 sed -i '32i#include <cups/ppd.h>' \ |
Hans-G?nter@23221 | 33 cups/colord.h |
Hans-G?nter@23221 | 34 |
Hans-G?nter@23221 | 35 ./configure \ |
Hans-G?nter@23221 | 36 --prefix=/usr \ |
Hans-G?nter@23221 | 37 --infodir=/usr/share/info \ |
Hans-G?nter@23221 | 38 --mandir=/usr/share/man \ |
Hans-G?nter@23221 | 39 --disable-compile-inits \ |
Hans-G?nter@23221 | 40 --enable-dynamic \ |
Hans-G?nter@23221 | 41 --enable-cups \ |
Hans-G?nter@23221 | 42 --enable-cairo \ |
Hans-G?nter@23221 | 43 --enable-gtk \ |
jozee@2762 | 44 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \ |
Hans-G?nter@23221 | 45 --disable-compile-inits \ |
pankso@2211 | 46 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 47 make $MAKEFLAGS && |
pascal@15215 | 48 make DESTDIR=$DESTDIR install soinstall |
pankso@626 | 49 } |
pankso@626 | 50 |
pankso@626 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@626 | 52 genpkg_rules() |
pankso@626 | 53 { |
pankso@626 | 54 mkdir -p $fs/usr/share |
jozee@2762 | 55 mkdir -p $fs/usr/lib |
Hans-G?nter@23221 | 56 |
Hans-G?nter@23221 | 57 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23221 | 58 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23221 | 59 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
Hans-G?nter@23221 | 60 |
jozee@2762 | 61 # if cups-dev installed |
Hans-G?nter@23221 | 62 cp -a $install/usr/share/cups $fs/usr/share |
Hans-G?nter@23221 | 63 cp -a $install/etc $fs |
Hans-G?nter@23221 | 64 |
Hans-G?nter@23221 | 65 # Remove documentation and examples |
Hans-G?nter@23221 | 66 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc |
Hans-G?nter@23221 | 67 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples |
Hans-G?nter@23221 | 68 |
jozee@2762 | 69 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP |
Hans-G?nter@23221 | 70 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/* |
jozee@2762 | 71 |
Hans-G?nter@23221 | 72 # already compiled as a shared library; gsc is same as gs |
Hans-G?nter@23221 | 73 rm -rf $fs/usr/bin/gs |
pankso@626 | 74 } |
jozee@2762 | 75 |
jozee@2762 | 76 post_install() |
jozee@2762 | 77 { |
al@18472 | 78 ln -sf /usr/bin/gsc "$1/usr/bin/gs" |
jozee@2762 | 79 } |