wok-next view poppler-qt4/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 831ee4103c8f |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="poppler-qt4"
4 VERSION="0.51.0"
5 CATEGORY="office"
6 SHORT_DESC="Poppler compiled with Qt4 library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://poppler.freedesktop.org/"
11 TARBALL="poppler-$VERSION.tar.xz"
12 WGET_URL="http://poppler.freedesktop.org/$TARBALL"
14 BUILD_DEPENDS="xorg-libXdamage expat-dev pkg-config jpeg-dev tiff-dev \
15 freetype-dev fontconfig-dev glib-dev lcms-dev zlib-dev cairo-dev \
16 automake bzip2-dev libpng16-dev libtool Qt4-dev libxml2-dev"
17 SPLIT="poppler-qt4-apps poppler-qt4-dev"
19 # FIXME: after Qt will be available, to merge this receipt with the poppler receipt.
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 autoreconf -fi
25 ./configure \
26 --enable-zlib \
27 --enable-cairo-output \
28 --enable-poppler-qt4 \
29 --disable-libopenjpeg \
30 $CONFIGURE_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 case $PACKAGE in
38 poppler-qt4)
39 copy /usr/lib/*qt4.so*
40 DEPENDS="poppler libQtCore libQtXml libQtGui"
41 ;;
42 *-apps)
43 copy /usr/bin/
44 if [ -f $fs/usr/bin/poppler-glib-demo ]; then
45 rm -rf $fs/usr/bin/poppler-glib-demo
46 fi
47 CAT="office|utilities to manipulate PDF file"
48 DEPENDS="fontconfig poppler-qt4 cairo zlib libpng16 gcc-lib-base \
49 libQtCore libQtXml libQtGui"
50 PROVIDE="poppler-apps"
51 ;;
52 *-dev)
53 copy \
54 /usr/lib/*qt4.*a \
55 /usr/include/poppler/qt4/ \
56 /usr/lib/pkgconfig/poppler-qt4.pc
57 DEPENDS="poppler-dev"
58 ;;
59 esac
60 }