poppler: build with nss

Close: #38086
This commit is contained in:
Đoàn Trần Công Danh 2022-07-16 20:34:59 +07:00
parent c8aa5e65f1
commit d63688b14a
1 changed files with 8 additions and 3 deletions

View File

@ -4,17 +4,18 @@
#
pkgname=poppler
version=22.07.0
revision=1
revision=2
_testVersion=920c89f8f43bdfe8966c8e397e7f67f5302e9435
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}/test-${_testVersion}'"
-DTESTDATADIR='${XBPS_BUILDDIR}/poppler-${version}/testdatadir'"
hostmakedepends="pkg-config glib-devel"
makedepends="libpng-devel libglib-devel cairo-devel tiff-devel lcms2-devel
libcurl-devel libopenjpeg2-devel $(vopt_if boost boost-devel)"
nss-devel libcurl-devel libopenjpeg2-devel
$(vopt_if boost boost-devel)"
short_desc="PDF rendering library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later"
@ -28,6 +29,10 @@ checksum="420230c5c43782e2151259b3e523e632f4861342aad70e7e20b8773d9eaf3428
build_options="gir boost"
build_options_default="gir boost"
post_extract() {
mv ../test-${_testVersion} testdatadir
}
libpoppler_package() {
depends="poppler-data"
short_desc+=" - poppler runtime library"