pkgsrc/print/poppler-cpp/Makefile
adam 8c256518b9 poppler: updated to 0.76.1
poppler-0.76.1:

core:
 * Make the mul tables be calculated at compile time with constexpr.
 * splash: Fix compile with SPLASH_CMYK enabled
 * Some typo fixing in error messages

qt5:
 * Fix regression in annotation handling

build system:
 * Fix some typos in build system output and comments


poppler-0.76.0:

core:
 * Fix regression on case-insensitive search.
 * Remove GooList, use std::vector instead
 * Fix radiobutton reporting wrong state.
 * Handle UTF16-LE strings
 * Don't error out if there's no DA in FreeText annotation
 * cairo: Compute correct coverage values for box filter.
 * cairo: Constrain number of cycles in rescale filter.
 * Read more fields from ViewerPreferences
 * Introduce and use Ref::INVALID
 * Fix crashes in broken files
 * Fix mismatched free/delete
 * Add missing include guards

utils:
 * pdftohtml: Properly initialize HtmlOutputDev::page to avoid SIGSEGV upon error exit.


poppler-0.75.0:

core:
 * Fix rendering of some annotations
 * Fix crashes in broken files
 * Small internal code improvements

cpp:
 * Improve documentation
 * tests: Add showing version information to poppler-dump

utils:
 * pdfattach: new util
 * pdftohtml: add -dataurls parameter
 * pdftoppm: add -sep and -forcenum parameters
 * pdftohtml: make singleHtml and stout not mutually exclusive
 * pdfsig: fix use after free
2019-05-09 09:28:22 +00:00

53 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2019/05/09 09:28:22 adam Exp $
.include "../../print/poppler/Makefile.common"
PKGNAME= poppler-cpp-${POPPLER_VERS}
COMMENT= PDF rendering library (cpp wrapper)
CONFLICTS+= poppler<0.4.5nb1
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-cpp.pc.cmake
# Don't build the cairo graphics backend, required by glib.
CMAKE_ARGS+= -DENABLE_SPLASH=OFF
# Don't compile GTK+ test program.
CMAKE_ARGS+= -DBUILD_GTK_TESTS=OFF
# Don't compile GLib wrapper which also needs gtk2
CMAKE_ARGS+= -DENABLE_GLIB=OFF
# Don't build and install the tools
CMAKE_ARGS+= -DENABLE_UTILS=OFF
# Compile poppler cpp wrapper.
CMAKE_ARGS+= -DENABLE_CPP=ON
# 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
LDFLAGS.SunOS+= -liconv
BUILDLINK_API_DEPENDS.poppler+= poppler-${POPPLER_VERS}{,nb*}
.include "../../print/poppler/buildlink3.mk"
BUILD_DIRS= cpp
INSTALL_DIRS= cpp
INSTALLATION_DIRS+= lib/pkgconfig
.include "../../converters/libiconv/buildlink3.mk"
CHECK_BUILTIN.iconv:= yes
.include "../../converters/libiconv/builtin.mk"
CHECK_BUILTIN.iconv:= no
.if !empty(USE_BUILTIN.iconv:M[nN][oO])
CMAKE_ARGS+= -DICONV_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.iconv}/include
CMAKE_ARGS+= -DICONV_LIBRARIES:PATH=${BUILDLINK_PREFIX.iconv}/lib
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/poppler-cpp.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"