pkgsrc/print/poppler016/Makefile
marino 9e8e6f9300 print/poppler016: Fix poppler-qt.pc (Fixes KOffice, kdegraphics3)
Remove a dependency to poppler-0.16 in the poppler-qt.pc file so
that pkg-config --cflags "poppler-qt >= 0.3.1" returns valid information.

Default poppler version is now 0.20.x.  Since this package explicitly uses
0.16.x, @PC_REQUIRES_PRIVATE@ introduces a dependency to poppler-0.16.x in
the .pc file; pkg-config will then print messages such as "Package
'poppler-qt' requires 'poppler = 0.16.7' but version of poppler is 0.20.2"
instead of the required information.  Removing the Requires.private line
entirely fixes the issue.

After applying this patch and rebuilding poppler-qt, graphics/kdegraphics3
and misc/koffice now build on DragonFly.  Previously they failed with
poppler-related errors.

Patch provided by F.Tigeot.
2012-08-13 16:15:20 +00:00

59 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2012/08/13 16:15:20 marino Exp $
#
PKGREVISION= 2
.include "../../print/poppler016/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 poppler qt wrapper.
CONFIGURE_ARGS+= --disable-poppler-qt
# 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
PKG_OPTIONS_VAR= PKG_OPTIONS.poppler
PKG_SUPPORTED_OPTIONS= poppler-cms
PKG_SUGGESTED_OPTIONS= poppler-cms
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpoppler-cms)
CONFIGURE_ARGS+= --enable-cms
.include "../../graphics/lcms/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-cms
.endif
.include "../../mk/bsd.prefs.mk"
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 "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"