pkgsrc/print/poppler/Makefile
drochner e0cd02b6d6 update to 0.24.3
changes: bugfixes, among them a format string problem (CVE-2013-4474)

pkgsrc change: kill the poppler-cms/lcms option, it got broken recently
and it is not useful enough to justify the complexity
2013-10-29 19:05:23 +00:00

48 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.66 2013/10/29 19:05:23 drochner Exp $
.include "../../print/poppler/Makefile.common"
COMMENT= PDF rendering library
MAINTAINER= reed@reedmedia.net
USE_TOOLS+= gmake
#PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-cairo.pc.in
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-splash.pc.in
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler.pc.in
GNU_CONFIGURE= yes
INSTALLATION_DIRS+= include/poppler share/doc/poppler
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
# TODO: Later add an option to choose Splash versus Cairo backend.
# Build the Splash graphics backend.
CONFIGURE_ARGS+= --enable-splash-output
# Don't build the cairo graphics backend.
CONFIGURE_ARGS+= --disable-cairo-output
# Don't compile GTK+ test program.
CONFIGURE_ARGS+= --disable-gtk-test
# Don't compile GLib wrapper which also needs gtk2
CONFIGURE_ARGS+= --disable-poppler-glib
# Don't build and install the tools
CONFIGURE_ARGS+= --disable-utils
CONFIGURE_ARGS+= --disable-poppler-cpp
.include "../../mk/bsd.prefs.mk"
# Passing "-ansi" turns "long long" support off on FreeBSD/amd64:
.if ${OPSYS} == "FreeBSD" && ${MACHINE_ARCH} == "x86_64"
CFLAGS+= -D__LONG_LONG_SUPPORTED=
.endif
post-install:
${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/poppler/
${INSTALL_MAN} ${WRKSRC}/README-XPDF ${DESTDIR}${PREFIX}/share/doc/poppler/
${RMDIR} ${DESTDIR}${PREFIX}/include/poppler || ${TRUE}
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/lcms2/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"