# 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.41.0 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 lcms2-dev gobject-introspection-dev openjpeg-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 } 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="849a8bd6af5794efb961b70418414e5a poppler-0.41.0.tar.xz" sha256sums="420abaab63caed9e1ee28964a0ba216d1979506726164bc99ad5ade289192a1b poppler-0.41.0.tar.xz" sha512sums="b2b99ac056efaae26f0bffc20756f17524011b7718a554ff48901422e7ab8caa4f879b800eacce1af5ae468346fa0beb569a4378f028a7d7cf0c9cc45f0d2402 poppler-0.41.0.tar.xz"