# Maintainer: Natanael Copa # this aport only includes glib/gtk support in order to break the # circular make dependency: gtk <- cups <- poppler <- gtk pkgname=poppler-qt4 _realname=poppler pkgver=0.38.0 pkgrel=0 pkgdesc="PDF rendering library based on xpdf 3.0" url="http://poppler.freedesktop.org/" arch="all" license="GPL" subpackages="$pkgname-dev" makedepends="jpeg-dev cairo-dev libxml2-dev fontconfig-dev qt-dev poppler-dev lcms2-dev openjpeg-dev" depends= replaces="poppler-glib" depends_dev="$makedepends" source="http://poppler.freedesktop.org/poppler-$pkgver.tar.xz" _builddir="$srcdir/$_realname-$pkgver" prepare() { cd "$startdir" # get the pkgver from poppler ( if [ -r ../../main/poppler/APKBUILD ]; then _popplerqtver=$pkgver . ../../main/poppler/APKBUILD if [ "$_popplerqtver" != "$pkgver" ]; then pkgname=poppler-qt4 die "pkgver must correspond with poppler ($pkgver)" fi fi ) || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --disable-poppler-glib \ --enable-cairo-output \ --enable-xpdf-headers \ --enable-libjpeg \ --enable-zlib \ --enable-poppler-qt4 \ --disable-utils \ || return 1 make || return 1 } package() { cd "$_builddir" install -D -m644 poppler-qt4.pc "$pkgdir"/usr/lib/pkgconfig/poppler-qt4.pc cd qt4 make DESTDIR="$pkgdir" install || return 1 } md5sums="850f0725e5b263c504f0cb0910d1fadc poppler-0.38.0.tar.xz" sha256sums="6f0c0d49c8346d7c0cfe6348124e7f19cc901b5d35c9cd89944aac6e454e8a8b poppler-0.38.0.tar.xz" sha512sums="1b8643c0f58eb1e1c3d98266c38d311c66458168188146af72c99c9f374882bdc616aa3febd8833538b286652c21a567e6240aa590111bcebcba5ee845e6bad9 poppler-0.38.0.tar.xz"