wok-next annotate poppler/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 94b1769614d9
children d5aab818505e
rev   line source
al@19797 1 # SliTaz package receipt v2.
pankso@27 2
pankso@27 3 PACKAGE="poppler"
al@20942 4 VERSION="0.68.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@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html"
al@19681 11
al@16625 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@20648 13 WGET_URL="https://poppler.freedesktop.org/$TARBALL"
pankso@27 14
al@20648 15 BUILD_DEPENDS="cmake freetype-dev fontconfig-dev libjpeg-turbo-dev zlib-dev \
al@21017 16 libpng16-dev tiff-dev nss-dev cairo-dev gobject-introspection-dev gtk3-dev \
al@20648 17 gdk-pixbuf-dev openjpeg2-dev lcms2-dev curl-dev poppler-data"
al@21017 18 SPLIT="$PACKAGE-apps $PACKAGE-dev"
slaxemulator@10338 19
al@20534 20 compile_rules() {
al@20942 21 fix math
al@20942 22
al@20648 23 mkdir build
al@20648 24 cd build
al@20648 25
al@20648 26 cmake \
al@20648 27 -DCMAKE_BUILD_TYPE=Release \
al@20648 28 -DCMAKE_INSTALL_PREFIX=/usr \
al@20942 29 -DTESTDATADIR=$PWD/test \
al@20648 30 -DENABLE_XPDF_HEADERS=ON \
al@20648 31 .. &&
al@20534 32 make &&
al@20534 33 make install || return 1
al@19681 34
al@20648 35 cook_pick_docs ../glib/reference/html
pankso@27 36 }
pankso@27 37
al@20534 38 genpkg_rules() {
al@19797 39 case $PACKAGE in
al@19797 40 poppler)
al@19797 41 copy *.so*
al@20648 42 DEPENDS="cairo fontconfig freetype glib lcms2 libcurl \
al@20648 43 libjpeg-turbo libpng16 nspr nss openjpeg2 tiff zlib"
al@19797 44 ;;
al@21017 45 *-apps)
al@19797 46 copy bin/
al@19797 47 CAT="office|utilities to manipulate PDF file"
al@20648 48 DEPENDS="cairo freetype lcms2 poppler"
al@19797 49 ;;
al@21017 50 *-dev)
al@20513 51 copy @dev @rm
al@19797 52 DEPENDS="poppler poppler-apps cairo-dev glib-dev"
al@19797 53 ;;
al@19797 54 esac
pankso@27 55 }