void-packages/srcpkgs/poppler/template

103 lines
2.6 KiB
Text
Raw Normal View History

# Template build file for 'poppler'.
pkgname=poppler
2014-08-27 05:38:24 +00:00
version=0.26.4
revision=1
build_style=gnu-configure
configure_args="--enable-zlib --enable-libcurl --enable-libjpeg
--enable-libtiff --disable-libopenjpeg --enable-cairo-output
--enable-xpdf-headers --disable-poppler-qt4 --disable-gtk-test"
2014-08-27 05:38:24 +00:00
hostmakedepends="libtool pkg-config glib-devel"
makedepends="libpng-devel>=1.6 glib-devel cairo-devel tiff-devel lcms2-devel libcurl-devel"
depends="poppler-data"
short_desc="PDF rendering library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
2012-06-05 22:28:12 +00:00
homepage="http://poppler.freedesktop.org"
distfiles="${homepage}/$pkgname-$version.tar.xz"
2014-08-27 05:38:24 +00:00
checksum=7ede502a5ad6651d2ca56f3846ddee1ae66d0b1ab9bd302fb8b39a366d195c65
# 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
pre_configure() {
libtoolize -f
}
poppler-cpp-devel_package() {
2014-02-17 16:43:28 +00:00
depends="libstdc++-devel zlib-devel poppler-devel>=${version}_${revision}"
short_desc+=" - C++ bindings (development files)"
pkg_install() {
vmove usr/include/poppler/cpp
vmove usr/lib/libpoppler-cpp.a
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() {
2014-02-17 16:43:28 +00:00
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.a
vmove usr/lib/libpoppler.so
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}"
short_desc+=" - GLib bindings (development files)"
pkg_install() {
vmove usr/include/poppler/glib
vmove usr/lib/libpoppler-glib.a
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
}
}