2008-10-10 07:05:01 +00:00
|
|
|
# Template build file for 'poppler'.
|
|
|
|
pkgname=poppler
|
2014-06-23 09:15:40 +00:00
|
|
|
version=0.26.2
|
2014-04-29 06:10:41 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2011-10-21 14:29:34 +00:00
|
|
|
configure_args="--enable-zlib --enable-libcurl --enable-libjpeg
|
2012-05-16 13:46:15 +00:00
|
|
|
--enable-libtiff --disable-libopenjpeg --enable-cairo-output
|
2012-05-17 07:38:39 +00:00
|
|
|
--enable-xpdf-headers --disable-poppler-qt4 --disable-gtk-test"
|
2014-04-29 06:10:41 +00:00
|
|
|
hostmakedepends="libtool pkg-config poppler-data glib-devel"
|
2013-05-06 13:50:51 +00:00
|
|
|
makedepends="libpng-devel>=1.6 glib-devel cairo-devel tiff-devel lcms2-devel libcurl-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="poppler-data"
|
2008-10-10 07:05:01 +00:00
|
|
|
short_desc="PDF rendering library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-21 14:29:34 +00:00
|
|
|
license="GPL-2"
|
2012-06-05 22:28:12 +00:00
|
|
|
homepage="http://poppler.freedesktop.org"
|
2013-09-04 08:38:37 +00:00
|
|
|
distfiles="${homepage}/$pkgname-$version.tar.xz"
|
2014-06-23 09:15:40 +00:00
|
|
|
checksum=1dd9963a82eba00b7a8c9f57a7d1d787be22f5e6cb0aead5dfe602775d0d9526
|
2013-05-06 13:50:51 +00:00
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
2014-04-29 06:10:41 +00:00
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
|
|
|
|
2013-04-12 17:13:19 +00:00
|
|
|
poppler-cpp-devel_package() {
|
2014-02-17 16:43:28 +00:00
|
|
|
depends="libstdc++-devel zlib-devel poppler-devel>=${version}_${revision}"
|
2013-09-04 08:38:37 +00:00
|
|
|
short_desc+=" - C++ bindings (development files)"
|
2013-04-12 17:13:19 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/poppler/cpp
|
|
|
|
vmove usr/lib/libpoppler-cpp.a
|
2013-09-04 08:38:37 +00:00
|
|
|
vmove usr/lib/libpoppler-cpp.so
|
2013-04-12 17:13:19 +00:00
|
|
|
vmove usr/lib/pkgconfig/poppler-cpp.pc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
poppler-cpp_package() {
|
2013-09-04 08:38:37 +00:00
|
|
|
short_desc+=" - C++ bindings"
|
2013-04-12 17:13:19 +00:00
|
|
|
pkg_install() {
|
2013-09-04 08:38:37 +00:00
|
|
|
vmove "usr/lib/libpoppler-cpp.so.*"
|
2013-04-12 17:13:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
poppler-devel_package() {
|
2014-02-17 16:43:28 +00:00
|
|
|
depends="libglib-devel poppler>=${version}_${revision}"
|
2013-09-04 08:38:37 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 17:13:19 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/include/poppler/*.h"
|
|
|
|
vmove usr/include/poppler/splash
|
|
|
|
vmove usr/include/poppler/fofi
|
|
|
|
vmove usr/include/poppler/goo
|
|
|
|
vmove usr/lib/libpoppler.a
|
2013-09-04 08:38:37 +00:00
|
|
|
vmove usr/lib/libpoppler.so
|
2013-04-12 17:13:19 +00:00
|
|
|
vmove usr/lib/pkgconfig/poppler.pc
|
|
|
|
vmove usr/lib/pkgconfig/poppler-splash.pc
|
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
poppler-glib-devel_package() {
|
2014-02-17 16:43:28 +00:00
|
|
|
depends="poppler-devel>=${version} poppler-glib>=${version}_${revision}"
|
2013-09-04 08:38:37 +00:00
|
|
|
short_desc+=" - GLib bindings (development files)"
|
2013-04-12 17:13:19 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/poppler/glib
|
|
|
|
vmove usr/lib/libpoppler-glib.a
|
2013-09-04 08:38:37 +00:00
|
|
|
vmove usr/lib/libpoppler-glib.so
|
2013-05-06 13:50:51 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-12 17:13:19 +00:00
|
|
|
vmove usr/lib/pkgconfig/poppler-cairo.pc
|
|
|
|
vmove usr/lib/pkgconfig/poppler-glib.pc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
poppler-glib_package() {
|
2013-09-04 08:38:37 +00:00
|
|
|
short_desc+=" - GLib bindings"
|
2013-04-12 17:13:19 +00:00
|
|
|
pkg_install() {
|
2013-09-04 08:38:37 +00:00
|
|
|
vmove "usr/lib/libpoppler-glib.so.*"
|
2013-05-06 13:50:51 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/lib/girepository-1.0
|
|
|
|
fi
|
2013-04-12 17:13:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
poppler-utils_package() {
|
2013-09-04 08:38:37 +00:00
|
|
|
short_desc+=" - utilities"
|
2013-04-12 17:13:19 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share/man
|
|
|
|
}
|
|
|
|
}
|