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