2013-06-03 12:05:17 +02:00
|
|
|
# $NetBSD: Makefile,v 1.28 2013/06/03 10:05:53 wiz Exp $
|
2006-04-01 21:11:39 +02:00
|
|
|
|
|
|
|
.include "../../print/poppler/Makefile.common"
|
|
|
|
|
|
|
|
PKGNAME= poppler-utils-${POPPLER_VERS}
|
2013-06-03 12:05:17 +02:00
|
|
|
PKGREVISION= 1
|
2006-04-01 21:11:39 +02:00
|
|
|
|
|
|
|
COMMENT= PDF utilities (from poppler)
|
2008-11-20 15:28:22 +01:00
|
|
|
MAINTAINER= reed@reedmedia.net
|
2006-04-01 21:11:39 +02:00
|
|
|
|
|
|
|
CONFLICTS+= poppler-0.5.1 poppler-0.5.1nb1 poppler-0.5.1nb2
|
2009-11-14 08:11:04 +01:00
|
|
|
CONFLICTS+= xpdf<3.02pl4nb1
|
2006-04-01 21:11:39 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
# Don't build the cairo graphics backend.
|
|
|
|
CONFIGURE_ARGS+= --disable-cairo-output
|
|
|
|
# Don't build the splash graphics backend.
|
|
|
|
CONFIGURE_ARGS+= --disable-splash-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
|
|
|
|
# Enable build and install of the tools
|
2007-02-22 20:26:05 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-utils # the default
|
2011-07-11 20:43:03 +02:00
|
|
|
|
|
|
|
BUILDLINK_API_DEPENDS.poppler+= poppler>=${POPPLER_VERS}
|
|
|
|
.include "../../print/poppler/buildlink3.mk"
|
|
|
|
|
2011-07-11 12:05:22 +02:00
|
|
|
.if !empty(PKG_BUILD_OPTIONS.poppler:Mpoppler-cms)
|
|
|
|
CONFIGURE_ARGS+= --enable-cms
|
|
|
|
.else
|
2009-02-12 21:55:07 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-cms
|
2011-07-11 12:05:22 +02:00
|
|
|
.endif
|
2006-04-01 21:11:39 +02:00
|
|
|
|
|
|
|
BUILD_DIRS= utils # implies INSTALL_DIRS too
|
|
|
|
|
2006-04-03 23:20:06 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-[12].*)
|
|
|
|
.include "../../devel/pthread-stublib/buildlink3.mk"
|
|
|
|
PTHREAD_STUBLIB= "-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lpthstub"
|
|
|
|
.else
|
|
|
|
PTHREAD_STUBLIB= # provided by libc
|
|
|
|
.endif
|
|
|
|
MAKE_ENV+= PTHREAD_STUBLIB=${PTHREAD_STUBLIB}
|
|
|
|
|
2011-05-11 09:05:46 +02:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2009-09-09 21:57:05 +02:00
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
2006-04-01 21:11:39 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|