89 lines
2.4 KiB
Bash
89 lines
2.4 KiB
Bash
# Template file for 'poppler'
|
|
#
|
|
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler-qt{4,5}".
|
|
#
|
|
pkgname=poppler
|
|
version=0.61.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DENABLE_XPDF_HEADERS=on $(vopt_if gir -DENABLE_GLIB=on)
|
|
-DENABLE_QT4=off -DENABLE_QT5=off"
|
|
hostmakedepends="pkg-config glib-devel"
|
|
makedepends="libpng-devel libglib-devel cairo-devel tiff-devel lcms2-devel
|
|
libcurl-devel libopenjpeg2-devel $(vopt_if gir gobject-introspection)"
|
|
depends="poppler-data"
|
|
short_desc="PDF rendering library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://poppler.freedesktop.org"
|
|
distfiles="${homepage}/$pkgname-$version.tar.xz"
|
|
checksum=1266096343f5163c1a585124e9a6d44474e1345de5cdfe55dc7b47357bcfcda9
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" -DTHREADS_PTHREAD_ARG=2"
|
|
fi
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
poppler-cpp-devel_package() {
|
|
depends="libstdc++-devel zlib-devel poppler-devel-${version}_${revision} poppler-cpp-${version}_${revision}"
|
|
short_desc+=" - C++ bindings (development files)"
|
|
pkg_install() {
|
|
vmove usr/include/poppler/cpp
|
|
vmove usr/lib/libpoppler-cpp.so
|
|
vmove usr/lib/pkgconfig/poppler-cpp.pc
|
|
}
|
|
}
|
|
poppler-cpp_package() {
|
|
short_desc+=" - C++ bindings"
|
|
pkg_install() {
|
|
vmove "usr/lib/libpoppler-cpp.so.*"
|
|
}
|
|
}
|
|
poppler-devel_package() {
|
|
depends="libglib-devel poppler-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
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.so
|
|
vmove usr/lib/pkgconfig/poppler.pc
|
|
vmove usr/lib/pkgconfig/poppler-splash.pc
|
|
}
|
|
}
|
|
poppler-glib-devel_package() {
|
|
depends="poppler-devel-${version}_${revision} poppler-glib-${version}_${revision}"
|
|
short_desc+=" - GLib bindings (development files)"
|
|
pkg_install() {
|
|
vmove usr/include/poppler/glib
|
|
vmove usr/lib/libpoppler-glib.so
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
vmove usr/lib/pkgconfig/poppler-cairo.pc
|
|
vmove usr/lib/pkgconfig/poppler-glib.pc
|
|
}
|
|
}
|
|
poppler-glib_package() {
|
|
short_desc+=" - GLib bindings"
|
|
pkg_install() {
|
|
vmove "usr/lib/libpoppler-glib.so.*"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/lib/girepository-1.0
|
|
fi
|
|
}
|
|
}
|
|
poppler-utils_package() {
|
|
short_desc+=" - utilities"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/man
|
|
}
|
|
}
|