void-packages/srcpkgs/poppler-qt4/template
2017-11-13 11:38:42 +00:00

43 lines
1.3 KiB
Bash

# Template file for 'poppler-qt4'
#
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler"; IT IS SPLITTED TO AVOID
# A CYCLIC DEPENDENCY: qt -> cups -> poppler -> qt.
#
pkgname=poppler-qt4
version=0.61.1
revision=1
wrksrc="poppler-${version}"
build_style=cmake
configure_args="-DENABLE_XPDF_HEADERS=on -DENABLE_GLIB=off
-DENABLE_QT4=on -DENABLE_QT5=off -DENABLE_UTILS=off -DENABLE_CPP=off"
hostmakedepends="pkg-config qt-devel"
makedepends="libpng-devel tiff-devel lcms2-devel libcurl-devel
fontconfig-devel cairo-devel libopenjpeg2-devel qt-devel"
short_desc="PDF rendering library - Qt4 bindings"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://poppler.freedesktop.org"
distfiles="${homepage}/poppler-$version.tar.xz"
checksum=1266096343f5163c1a585124e9a6d44474e1345de5cdfe55dc7b47357bcfcda9
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DTHREADS_PTHREAD_ARG=2"
fi
post_install() {
rm -f ${DESTDIR}/usr/lib/libpoppler.*
for f in poppler-cairo poppler-splash poppler; do
rm -f ${DESTDIR}/usr/lib/pkgconfig/${f}.pc
done
}
poppler-qt4-devel_package() {
depends="poppler-devel>=${version} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/poppler/qt4
vmove usr/lib/libpoppler-qt4.so
vmove usr/lib/pkgconfig/poppler-qt4.pc
rm -rf ${DESTDIR}/usr/include
}
}