wok-next view 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 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="poppler"
4 VERSION="0.68.0"
5 CATEGORY="office"
6 SHORT_DESC="PDF rendering library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://poppler.freedesktop.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/poppler.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://poppler.freedesktop.org/$TARBALL"
15 BUILD_DEPENDS="cmake freetype-dev fontconfig-dev libjpeg-turbo-dev zlib-dev \
16 libpng16-dev tiff-dev nss-dev cairo-dev gobject-introspection-dev gtk3-dev \
17 gdk-pixbuf-dev openjpeg2-dev lcms2-dev curl-dev poppler-data"
18 SPLIT="$PACKAGE-apps $PACKAGE-dev"
20 compile_rules() {
21 fix math
23 mkdir build
24 cd build
26 cmake \
27 -DCMAKE_BUILD_TYPE=Release \
28 -DCMAKE_INSTALL_PREFIX=/usr \
29 -DTESTDATADIR=$PWD/test \
30 -DENABLE_XPDF_HEADERS=ON \
31 .. &&
32 make &&
33 make install || return 1
35 cook_pick_docs ../glib/reference/html
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 poppler)
41 copy *.so*
42 DEPENDS="cairo fontconfig freetype glib lcms2 libcurl \
43 libjpeg-turbo libpng16 nspr nss openjpeg2 tiff zlib"
44 ;;
45 *-apps)
46 copy bin/
47 CAT="office|utilities to manipulate PDF file"
48 DEPENDS="cairo freetype lcms2 poppler"
49 ;;
50 *-dev)
51 copy @dev @rm
52 DEPENDS="poppler poppler-apps cairo-dev glib-dev"
53 ;;
54 esac
55 }