diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-01-31 10:19:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-01-31 10:46:24 +0000 |
commit | 9a8edeb425e938c7e5af0626185455f61431bbbf (patch) | |
tree | 45b7908ff4eabd1ded23684471dedb0bdd949351 /main/poppler-qt4 | |
parent | 1af3181ba86c8e28ee64a5021ef99f9d17267dfd (diff) | |
download | aports-9a8edeb425e938c7e5af0626185455f61431bbbf.tar.bz2 aports-9a8edeb425e938c7e5af0626185455f61431bbbf.tar.xz |
main/poppler-qt4: moved from testing
Diffstat (limited to 'main/poppler-qt4')
-rw-r--r-- | main/poppler-qt4/APKBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/main/poppler-qt4/APKBUILD b/main/poppler-qt4/APKBUILD new file mode 100644 index 000000000..f2c305217 --- /dev/null +++ b/main/poppler-qt4/APKBUILD @@ -0,0 +1,61 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> + +# this aport only includes glib/gtk support in order to break the +# circular make dependency: gtk <- cups <- poppler <- gtk + +_ver=0.22.0 +# get the pkgver from poppler +if [ -r ../../main/poppler/APKBUILD ]; then + . ../../main/poppler/APKBUILD + pkgname=poppler-qt4 + if [ "$_ver" != "$pkgver" ]; then + die "please set _ver to $pkgver" + fi +fi + +pkgname=poppler-qt4 +_realname=poppler +pkgver=$_ver +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 lcms-dev" +depends= +replaces="poppler-glib" +depends_dev="$makedepends" +source="http://poppler.freedesktop.org/poppler-$pkgver.tar.gz" + +prepare() { + return 0 +} + +build() { + cd "$srcdir"/$_realname-$pkgver + ./configure --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 "$srcdir"/$_realname-$pkgver + install -D -m644 poppler-qt4.pc "$pkgdir"/usr/lib/pkgconfig/poppler-qt4.pc + cd qt4 + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/*.la || return 1 +} + +md5sums="c7038be37a7d446544e83a7df3c26196 poppler-0.22.0.tar.gz" |