Release 22.02.0: core: * Signature: Add a way to detect unsigned FormFieldSignature * Signature: Suport background image when using left and right text * Signature: Fix path where to search for Firefox NSS in Windows * Signature: Fix NSS code to work correctly in Windows/Android * Count only signature fields in PDFDoc::getNumSignatureFields * Minor code improvements qt: * Allow signing unsigned signature fields * Allow passing a background image for the signature when signing * Allow passing the document password when signing * Fix leftFontSize being ignored when signing glib: * try with utf8 password if latin1 fails * New method for getting all signature fields of a document * Fix compile with MSVC utils: * pdfsig: Fix compile with MSVC build system: * Fix NSS cmake check for MSVC
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.96 2022/02/15 19:26:48 wiz Exp $
|
|
|
|
.include "../../print/poppler/Makefile.common"
|
|
|
|
PKGNAME= poppler-glib-${POPPLER_VERS}
|
|
|
|
COMMENT= PDF rendering library (GLib wrapper)
|
|
|
|
CONFLICTS+= poppler<0.4.5nb1
|
|
|
|
PKGCONFIG_OVERRIDE+= poppler-glib.pc.cmake
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
# MacOS Xcode does not provide /usr/include, so be explicit
|
|
CMAKE_ARGS+= -DGLIB2_INCLUDE_DIRS=${PREFIX}/include
|
|
.endif
|
|
|
|
# Don't compile GTK+ test program.
|
|
CMAKE_ARGS+= -DBUILD_GTK_TESTS=OFF
|
|
# Compile GLib wrapper which also needs gtk2
|
|
CMAKE_ARGS+= -DENABLE_GLIB=ON
|
|
# Do not generate glib API documentation.
|
|
CMAKE_ARGS+= -DENABLE_GTK_DOC=OFF
|
|
# Don't build and install the tools
|
|
CMAKE_ARGS+= -DENABLE_UTILS=OFF
|
|
# Don't compile poppler cpp wrapper.
|
|
CMAKE_ARGS+= -DENABLE_CPP=OFF
|
|
# Don't compile poppler qt5 wrapper.
|
|
CMAKE_ARGS+= -DENABLE_QT5=OFF
|
|
# Don't build libcurl based HTTP support. ## might want to include
|
|
CMAKE_ARGS+= -DENABLE_LIBCURL=OFF
|
|
|
|
CFLAGS.FreeBSD+= -DLLONG_MAX=__LLONG_MAX
|
|
|
|
# The result binary of g-ir-scanner cannot find libpoppler-glib.so.
|
|
# The second part is for Darwin: libpoppler-glib.dylib has @rpath before being installed.
|
|
MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/glib:${BUILDLINK_PREFIX.poppler}/lib
|
|
|
|
BUILDLINK_API_DEPENDS.poppler+= poppler-${POPPLER_VERS}{,nb*}
|
|
.include "../../print/poppler/buildlink3.mk"
|
|
|
|
INSTALL_DIRS= glib
|
|
|
|
INSTALLATION_DIRS+= lib/pkgconfig
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/poppler-glib.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
|
|
|
|
#.include "../../lang/python/tool.mk"
|
|
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.41.0
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../devel/gobject-introspection/buildlink3.mk"
|
|
.include "../../graphics/cairo-gobject/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../lang/python/tool.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|