From 6acd3a6e8149794cf1b90de80ddc395b4f26dd35 Mon Sep 17 00:00:00 2001 From: chinsan Date: Tue, 28 Oct 2008 15:28:27 +0000 Subject: - Add Knob for CUPS support PR: ports/128366 Submitted by: Carlos Santos --- graphics/epdfview/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'graphics') diff --git a/graphics/epdfview/Makefile b/graphics/epdfview/Makefile index 746ecc6aab3..ea23dfe99ea 100644 --- a/graphics/epdfview/Makefile +++ b/graphics/epdfview/Makefile @@ -7,7 +7,7 @@ PORTNAME= epdfview PORTVERSION= 0.1.6 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= graphics print gnome MASTER_SITES= http://trac.emma-soft.com/epdfview/chrome/site/releases/ \ LOCAL/chinsan @@ -27,6 +27,18 @@ USE_GNOME= gtk20 intlhack CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +OPTIONS= CUPS "Use cups printing system" off \ + NLS "Native language support" on + +.include + +.if defined(WITH_CUPS) +CONFIGURE_ARGS+=--with-cups +LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base +.else +CONFIGURE_ARGS+=--without-cups +.endif + .if !defined(WITHOUT_NLS) USE_GETTEXT= yes PLIST_SUB+= NLS="" @@ -43,4 +55,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${PREFIX}/share/applications/ @-update-desktop-database -.include +.include -- cgit