# Template build file for 'poppler'.
pkgname=poppler
version=0.16.2
distfiles="http://poppler.freedesktop.org/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--enable-zlib --disable-poppler-qt --enable-libcurl
--enable-libjpeg --disable-libopenjpeg --disable-abiword-output"
short_desc="PDF rendering library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=aae5ae0a8f1492fe1e0b235b24bc885ce40d202d19384cccc377804144c276cb
long_desc="
 This is poppler, a PDF rendering library. It is a fork of the xpdf
 3.0 PDF viewer developed by Derek Noonburg of Glyph and Cog, LLC.

 Poppler provides PDF rendering functionality as a shared library,
 to centralize the maintenence effort and to reduce duplicated
 effort. And the poppler developers would like to move libpoppler
 forward in a number of areas that doesn't fit within the goals of
 xpdf."

subpackages="$pkgname-devel $pkgname-glib $pkgname-glib-devel $pkgname-utils"
subpackages="$subpackages $pkgname-cpp $pkgname-cpp-devel"
subpackages="$subpackages $pkgname-qt4 $pkgname-qt4-devel"

Add_dependency run libgcc
Add_dependency run glibc
Add_dependency run libstdc++
Add_dependency run zlib
Add_dependency run jpeg
Add_dependency run libpng
Add_dependency run lcms
Add_dependency run freetype
Add_dependency run fontconfig
Add_dependency run libcurl

Add_dependency build pkg-config
Add_dependency build gtk+-devel
Add_dependency build jpeg-devel
Add_dependency build lcms-devel
Add_dependency build freetype-devel
Add_dependency build fontconfig-devel
Add_dependency build libpng-devel
Add_dependency build zlib-devel
Add_dependency build qt-devel
Add_dependency build libcurl-devel
