wok-next annotate poppler-qt4/receipt @ rev 21094
Apply "force-arch" for selected dev packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 31 17:23:40 2018 +0200 (2018-12-31) |
parents | d5aab818505e |
children | 6f5739796e82 |
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" |
al@21020 | 7 MAINTAINER="devel@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@21078 | 15 BUILD_DEPENDS="libxdamage expat-dev jpeg-dev tiff-dev \ |
al@19797 | 16 freetype-dev fontconfig-dev glib-dev lcms-dev zlib-dev cairo-dev \ |
al@21078 | 17 automake bzip2-dev libpng-dev libtool Qt4-dev libxml2-dev" |
al@21020 | 18 SPLIT="$PACKAGE-apps $PACKAGE-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@21020 | 22 compile_rules() { |
al@19797 | 23 autoreconf -fi |
al@19797 | 24 ./configure \ |
al@19797 | 25 --enable-zlib \ |
al@19797 | 26 --enable-cairo-output \ |
al@19797 | 27 --enable-poppler-qt4 \ |
al@19797 | 28 --disable-libopenjpeg \ |
al@19797 | 29 $CONFIGURE_ARGS && |
al@21020 | 30 make && |
al@21020 | 31 make install |
al@19797 | 32 } |
pascal@15001 | 33 |
al@21020 | 34 genpkg_rules() { |
al@19797 | 35 case $PACKAGE in |
al@19797 | 36 poppler-qt4) |
al@19797 | 37 copy /usr/lib/*qt4.so* |
al@19797 | 38 DEPENDS="poppler libQtCore libQtXml libQtGui" |
al@19797 | 39 ;; |
al@19797 | 40 *-apps) |
al@19797 | 41 copy /usr/bin/ |
al@19797 | 42 if [ -f $fs/usr/bin/poppler-glib-demo ]; then |
al@19797 | 43 rm -rf $fs/usr/bin/poppler-glib-demo |
al@19797 | 44 fi |
al@19797 | 45 CAT="office|utilities to manipulate PDF file" |
al@21078 | 46 DEPENDS="fontconfig poppler-qt4 cairo zlib libpng gcc-lib-base \ |
al@19797 | 47 libQtCore libQtXml libQtGui" |
al@19797 | 48 PROVIDE="poppler-apps" |
al@19797 | 49 ;; |
al@19797 | 50 *-dev) |
al@19797 | 51 copy \ |
al@19797 | 52 /usr/lib/*qt4.*a \ |
al@19797 | 53 /usr/include/poppler/qt4/ \ |
al@19797 | 54 /usr/lib/pkgconfig/poppler-qt4.pc |
al@19797 | 55 DEPENDS="poppler-dev" |
al@19797 | 56 ;; |
al@19797 | 57 esac |
pankso@4246 | 58 } |