4aafdff357
Release 0.87.0: core: * Fix leak in broken files * Internal code improvements qt5: * Add option to get form choice for export value * ArthurOutputDev: Avoid division by zero in updateLineDash. Issue #695 glib: * Internal code improvements utils: * pdftohtml: Fix memory leak in HtmlOutputDev::getLinkDest
58 lines
1.7 KiB
Makefile
58 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.86 2020/04/03 10:23:21 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+= ${WRKSRC}/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.
|
|
MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/glib
|
|
|
|
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_ABI_DEPENDS.glib2+= glib2>=2.41.0
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../devel/gobject-introspection/buildlink3.mk"
|
|
.include "../../graphics/cairo-gobject/buildlink3.mk"
|
|
#.include "../../textproc/gtk-doc/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|