111 lines
3.2 KiB
Bash
111 lines
3.2 KiB
Bash
# Template file for 'poppler'
|
|
#
|
|
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/poppler-qt5".
|
|
#
|
|
# Revbump libreoffice on SO version bumps.
|
|
pkgname=poppler
|
|
version=23.08.0
|
|
revision=1
|
|
_testVersion=920c89f8f43bdfe8966c8e397e7f67f5302e9435
|
|
create_wrksrc=yes
|
|
build_style=cmake
|
|
build_helper="gir"
|
|
configure_args="-DENABLE_UNSTABLE_API_ABI_HEADERS=ON -DENABLE_CPP=ON
|
|
-DENABLE_GLIB=ON -DENABLE_GOBJECT_INTROSPECTION=$(vopt_if gir ON OFF)
|
|
-DENABLE_QT5=OFF -DENABLE_UTILS=ON -DENABLE_BOOST=$(vopt_if boost ON OFF)
|
|
-DTESTDATADIR='${XBPS_BUILDDIR}/poppler-${version}/testdatadir'"
|
|
hostmakedepends="pkg-config glib-devel"
|
|
makedepends="libpng-devel libglib-devel cairo-devel tiff-devel lcms2-devel
|
|
nss-devel libcurl-devel libopenjpeg2-devel gpgmepp-devel
|
|
zlib-devel $(vopt_if boost boost-devel)"
|
|
short_desc="PDF rendering library"
|
|
maintainer="Mohammed Anas <triallax@tutanota.com>"
|
|
license="GPL-2.0-or-later, GPL-3.0-or-later"
|
|
homepage="https://poppler.freedesktop.org"
|
|
changelog="https://gitlab.freedesktop.org/poppler/poppler/-/raw/master/NEWS"
|
|
distfiles="https://poppler.freedesktop.org/poppler-${version}.tar.xz
|
|
https://gitlab.freedesktop.org/poppler/test/-/archive/${_testVersion}/test-${_testVersion}.tar.gz"
|
|
checksum="4a4bf7fc903b9f1a2ab7d04b7c5d8220db9bc6261cc73fdb9a826dc272f49aa8
|
|
ca35f168a18038a2d817ea30d6c7b4ab8294a40a5f5950f3c2a15183ba08c900"
|
|
|
|
build_options="gir boost"
|
|
build_options_default="gir boost"
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -DBUILD_MANUAL_TESTS=ON -DBUILD_CPP_TESTS=ON"
|
|
else
|
|
configure_args+=" -DBUILD_MANUAL_TESTS=OFF -DBUILD_CPP_TESTS=OFF"
|
|
fi
|
|
|
|
post_extract() {
|
|
mv poppler-*/* .
|
|
mv test-${_testVersion} testdatadir
|
|
}
|
|
|
|
libpoppler_package() {
|
|
depends="poppler-data"
|
|
short_desc+=" - poppler runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libpoppler.so.*"
|
|
}
|
|
}
|
|
|
|
poppler-cpp-devel_package() {
|
|
depends="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 libpoppler>=${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
|
|
}
|
|
}
|
|
|
|
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-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 (transitional package)"
|
|
build_style=meta
|
|
depends="poppler>=${version}_${revision}"
|
|
}
|