wok annotate ghostscript/receipt @ rev 20503

partclone 0.2.89 blkid header not found
author Erkan Yilmaz <erkan@slitaz.org>
date Tue Oct 30 10:55:16 2018 +0000 (2018-10-30)
parents 7bb096863642
children ff236a1ecca5
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"
slaxemulator@8659 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15215 10 WEB_SITE="http://pages.cs.wisc.edu/~ghost/"
pascal@15215 11 #WGET_URL="http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs862/$TARBALL"
pascal@15215 12 WGET_URL="http://downloads.ghostscript.com/public/$TARBALL"
pascal@15215 13
pascal@2845 14 DEPENDS="gtk+ expat fontconfig freetype gnutls jpeg libgcrypt libgpg-error \
pankso@3363 15 libpng tiff zlib cups xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
slaxemulator@8659 16 xorg-libXdmcp xorg-libXext xorg-libXt gcc-lib-base jasper jbig2dec"
jozee@2765 17 # build depends are optional ; ghostscripts still build but does not compile in cups support
al@18472 18 BUILD_DEPENDS="cairo-dev gtk+-dev expat-dev fontconfig-dev freetype-dev \
al@18472 19 gnutls-dev jpeg-dev libgcrypt-dev libgpg-error-dev libpng-dev tiff-dev \
al@18472 20 zlib-dev cups-dev jbig2dec jasper-dev"
pankso@626 21
pankso@626 22 # Rules to configure and make the package.
pankso@626 23 compile_rules()
pankso@626 24 {
slaxemulator@6650 25 # force it to use system-libs
slaxemulator@8659 26 rm -rf jpeg libpng zlib jasper expat tiff
slaxemulator@6650 27
slaxemulator@6650 28 # --disable-compile-inits is needed for linking with system-zlib
slaxemulator@6650 29
pankso@626 30 ./configure \
pankso@626 31 --prefix=/usr \
pankso@626 32 --infodir=/usr/share/info \
pankso@626 33 --mandir=/usr/share/man \
jozee@2762 34 --disable-compile-inits \
jozee@2762 35 --enable-dynamic \
jozee@2762 36 --enable-cups \
jozee@2762 37 --enable-cairo \
jozee@2762 38 --enable-gtk \
jozee@2762 39 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
slaxemulator@6650 40 --disable-compile-inits \
pankso@2211 41 $CONFIGURE_ARGS &&
gokhlayeh@11574 42 make $MAKEFLAGS &&
pascal@15215 43 make DESTDIR=$DESTDIR install soinstall
pankso@626 44 }
pankso@626 45
pankso@626 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@626 47 genpkg_rules()
pankso@626 48 {
pankso@626 49 mkdir -p $fs/usr/share
jozee@2762 50 mkdir -p $fs/usr/lib
pascal@15215 51 cp -a $install/usr/bin $fs/usr
pascal@15215 52 cp -a $install/usr/lib $fs/usr
pascal@15215 53 cp -a $install/usr/share/$PACKAGE $fs/usr/share
jozee@2762 54 # if cups-dev installed
pascal@15215 55 cp -a $install/usr/share/cups $fs/usr/share
pascal@15215 56 cp -a $install/etc $fs
pankso@626 57 # Remove doc and examples
pankso@626 58 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
pankso@626 59 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
jozee@2762 60 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
jozee@2762 61 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
jozee@2762 62
jozee@2762 63 # already compiled as a shared lib; gsc is same as gs
jozee@2762 64 rm -rf $fs/usr/bin/gs
pankso@626 65 }
jozee@2762 66
jozee@2762 67 post_install()
jozee@2762 68 {
al@18472 69 ln -sf /usr/bin/gsc "$1/usr/bin/gs"
jozee@2762 70 }