wok-next annotate ghostscript/receipt @ rev 21234

Up tazlito (522)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 04 11:14:50 2019 +0100 (2019-12-04)
parents 75632eca5b07
children
rev   line source
pascal@19948 1 # SliTaz package receipt v2.
pankso@626 2
pankso@626 3 PACKAGE="ghostscript"
pascal@19945 4 VERSION="9.22"
pankso@626 5 CATEGORY="office"
al@20637 6 SHORT_DESC="Ghostscript tools and utilities"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15215 8 LICENSE="GPL3"
al@20637 9 WEB_SITE="http://pages.cs.wisc.edu/~ghost/"
al@20637 10
pascal@19945 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@19945 12 WGET_URL="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION/./}/$TARBALL"
pascal@15215 13
al@21017 14 # build depends are optional; ghostscripts still build but does not compile in cups support
al@21017 15 BUILD_DEPENDS="cairo-dev gtk2-dev expat-dev fontconfig-dev freetype-dev \
al@21078 16 gnutls-dev libgcrypt-dev libgpg-error-dev libpng-dev tiff-dev \
al@20771 17 zlib-dev cups-dev jbig2dec jasper-dev libjpeg-turbo-dev"
al@21017 18 SPLIT="$PACKAGE-dev"
pankso@626 19
al@20637 20 compile_rules() {
slaxemulator@6650 21 # force it to use system-libs
slaxemulator@8659 22 rm -rf jpeg libpng zlib jasper expat tiff
slaxemulator@6650 23
slaxemulator@6650 24 # --disable-compile-inits is needed for linking with system-zlib
slaxemulator@6650 25
pankso@626 26 ./configure \
jozee@2762 27 --disable-compile-inits \
jozee@2762 28 --enable-dynamic \
jozee@2762 29 --enable-cups \
jozee@2762 30 --enable-gtk \
jozee@2762 31 --with-fontpath=/usr/share/fonts/truetype/:/usr/share/fonts \
slaxemulator@6650 32 --disable-compile-inits \
pankso@2211 33 $CONFIGURE_ARGS &&
gokhlayeh@11574 34 make $MAKEFLAGS &&
al@21020 35 make DESTDIR=$install install soinstall
pankso@626 36 }
pankso@626 37
al@20637 38 genpkg_rules() {
pascal@19947 39 case $PACKAGE in
al@20637 40 ghostscript)
al@20637 41 copy @std
al@20637 42 # Remove doc and examples
al@20637 43 rm -rf $fs/usr/share/$PACKAGE/$VERSION/doc
al@20637 44 rm -rf $fs/usr/share/$PACKAGE/$VERSION/examples
al@20637 45 # Remove CMAPs (Non-free : not covered under GPL) : moved to non-free package get-ghostscript-CMAP
al@20637 46 rm -rf $fs/usr/share/$PACKAGE/$VERSION/Resource/CMap/*
al@20637 47 # already compiled as a shared lib; gsc is same as gs
al@20637 48 rm -rf $fs/usr/bin/gs
al@20637 49 ln -s gsc $fs/usr/bin/gs
al@20637 50
al@21105 51 DEPENDS="atk libcairo cups fontconfig freetype gdk-pixbuf glib gtk2 \
al@21080 52 libcups libgnutls libidn libjpeg-turbo libpng pango libtiff zlib"
al@20637 53 ;;
al@20637 54 *-dev)
al@20770 55 copy @dev
al@20637 56 ;;
pascal@19946 57 esac
pankso@626 58 }