# Maintainer: Natanael Copa # this aport does not include qt support in order to break the # circular make dependency: qt <- cups <- poppler <- qt # So we build qt support in separate package poppler-qt4 pkgname=poppler pkgver=0.24.4 pkgrel=0 pkgdesc="PDF rendering library based on xpdf 3.0" url="http://poppler.freedesktop.org/" arch="all" license="GPL" depends= depends_dev="cairo-dev glib-dev" makedepends="$depends_dev libjpeg-turbo-dev cairo-dev libxml2-dev fontconfig-dev libiconv-dev lcms2-dev gobject-introspection-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-glib " source="http://poppler.freedesktop.org/poppler-$pkgver.tar.xz" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --enable-cairo-output \ --enable-xpdf-headers \ --enable-libjpeg \ --enable-zlib \ --enable-poppler-glib \ --disable-poppler-qt4 \ || return 1 make } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" -name '*.la' -delete } utils() { pkgdesc="Poppler's xpdf-workalike command line utilities" install -d "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } glib() { pkgdesc="Glib wrapper for poppler" replaces="poppler-gtk" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libpoppler-glib.so.* \ "$pkgdir"/usr/lib/girepository* \ "$subpkgdir"/usr/lib/ || return 1 } _cpp() { pkgdesc="Pure C++ wrapper for poppler" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libpoppler-cpp.so.* \ "$subpkgdir"/usr/lib/ || return 1 } md5sums="2da22b966cf7a2f8da5bf021e68188ce poppler-0.24.4.tar.xz" sha256sums="c8a3509a17e6f0bbb07eeb1b58276b485974a8bff3f5eef1bc8e150ccd7c01e2 poppler-0.24.4.tar.xz" sha512sums="5567a51c2d2311ceaae087a7f7d5c0b71ba90afa91184a41997b3ea76aeff6d5b182d7c4018a1c2e93eb15b1f6cfec783b326940797ad4d5b7ee0276008b06db poppler-0.24.4.tar.xz"