1 # $NetBSD: Makefile,v 1.24 2011/11/01 06:02:26 sbd Exp $
4 .include "../../print/poppler/Makefile.common"
6 PKGNAME= poppler-utils-${POPPLER_VERS}
8 COMMENT= PDF utilities (from poppler)
9 MAINTAINER= reed@reedmedia.net
11 CONFLICTS+= poppler-0.5.1 poppler-0.5.1nb1 poppler-0.5.1nb2
12 CONFLICTS+= xpdf<3.02pl4nb1
17 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
18 # Don't build the cairo graphics backend.
19 CONFIGURE_ARGS+= --disable-cairo-output
20 # Don't build the splash graphics backend.
21 CONFIGURE_ARGS+= --disable-splash-output
22 # Don't compile poppler qt wrapper.
23 CONFIGURE_ARGS+= --disable-poppler-qt
24 # Don't compile GTK+ test program.
25 CONFIGURE_ARGS+= --disable-gtk-test
26 # Don't compile GLib wrapper which also needs gtk2
27 CONFIGURE_ARGS+= --disable-poppler-glib
28 # Enable build and install of the tools
29 CONFIGURE_ARGS+= --enable-utils # the default
31 BUILDLINK_API_DEPENDS.poppler+= poppler>=${POPPLER_VERS}
32 .include "../../print/poppler/buildlink3.mk"
34 .if !empty(PKG_BUILD_OPTIONS.poppler:Mpoppler-cms)
35 CONFIGURE_ARGS+= --enable-cms
37 CONFIGURE_ARGS+= --disable-cms
40 BUILD_DIRS= utils # implies INSTALL_DIRS too
42 .include "../../mk/bsd.prefs.mk"
44 .if !empty(MACHINE_PLATFORM:MNetBSD-[12].*)
45 .include "../../devel/pthread-stublib/buildlink3.mk"
46 PTHREAD_STUBLIB= "-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lpthstub"
48 PTHREAD_STUBLIB= # provided by libc
50 MAKE_ENV+= PTHREAD_STUBLIB=${PTHREAD_STUBLIB}
52 .include "../../mk/jpeg.buildlink3.mk"
53 .include "../../graphics/png/buildlink3.mk"
54 .include "../../mk/bsd.pkg.mk"