wok-next annotate poppler/receipt @ rev 20513
A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 21 15:58:17 2018 +0200 (2018-03-21) |
parents | 4ca71b0ef823 |
children | 757d032c55c7 |
rev | line source |
---|---|
al@19797 | 1 # SliTaz package receipt v2. |
pankso@27 | 2 |
pankso@27 | 3 PACKAGE="poppler" |
al@19797 | 4 VERSION="0.51.0" |
pankso@205 | 5 CATEGORY="office" |
al@19681 | 6 SHORT_DESC="PDF rendering library" |
pankso@27 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
al@19681 | 9 WEB_SITE="https://poppler.freedesktop.org/" |
al@19681 | 10 |
al@16625 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@27 | 12 WGET_URL="http://poppler.freedesktop.org/$TARBALL" |
pankso@27 | 13 |
al@19797 | 14 BUILD_DEPENDS="tiff-dev zlib-dev libjpeg-turbo-dev libpng16-dev freetype-dev \ |
al@19681 | 15 fontconfig-dev cairo-dev lcms2-dev" |
al@19797 | 16 SPLIT="poppler-apps poppler-dev" |
slaxemulator@10338 | 17 |
pankso@27 | 18 # Rules to configure and make the package. |
pankso@27 | 19 compile_rules() |
pankso@27 | 20 { |
pankso@725 | 21 ./configure \ |
al@19681 | 22 --sysconfdir=/etc \ |
al@19681 | 23 --disable-static \ |
al@19681 | 24 --enable-build-type=release \ |
al@19681 | 25 --enable-cmyk \ |
al@19681 | 26 --enable-xpdf-headers \ |
al@19681 | 27 --with-testdatadir=$PWD/testfiles \ |
slaxemulator@10338 | 28 $CONFIGURE_ARGS && |
al@19681 | 29 make && make install && |
al@19681 | 30 |
al@19681 | 31 docdir="$install/usr/share/doc/poppler-$VERSION" && |
al@19681 | 32 install -v -m755 -d $docdir && |
al@19681 | 33 install -v -m644 README* $docdir && |
al@19681 | 34 cp -vr glib/reference/html $docdir |
pankso@27 | 35 } |
pankso@27 | 36 |
pankso@27 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@27 | 38 genpkg_rules() |
pankso@27 | 39 { |
al@19797 | 40 case $PACKAGE in |
al@19797 | 41 poppler) |
al@19797 | 42 copy *.so* |
al@19797 | 43 DEPENDS="cairo fontconfig freetype glib lcms2 libjpeg-turbo \ |
al@19797 | 44 libpng16 tiff zlib" |
al@19797 | 45 ;; |
al@19797 | 46 poppler-apps) |
al@19797 | 47 copy bin/ |
al@19797 | 48 CAT="office|utilities to manipulate PDF file" |
al@19797 | 49 DEPENDS="poppler cairo freetype lcms2 zlib" |
al@19797 | 50 ;; |
al@19797 | 51 poppler-dev) |
al@20513 | 52 copy @dev @rm |
al@19797 | 53 DEPENDS="poppler poppler-apps cairo-dev glib-dev" |
al@19797 | 54 ;; |
al@19797 | 55 esac |
pankso@27 | 56 } |