summaryrefslogtreecommitdiff
path: root/print/evince
diff options
context:
space:
mode:
authorreed <reed>2008-12-20 20:52:27 +0000
committerreed <reed>2008-12-20 20:52:27 +0000
commitbe132f3c500e8ed4d8175bf78c26e8d05cfdfeca (patch)
treed57fee3f6b1c98f77a6b0d97b49f4be54a5655cf /print/evince
parent5241daaf743e449358219423d9309f9dd9e7af93 (diff)
downloadpkgsrc-be132f3c500e8ed4d8175bf78c26e8d05cfdfeca.tar.gz
Make the gnome build an option for evince. Defaults to enabled.
So -gnome will build the GTK version. Make should also do the --disable-dbus, but will think about that later.
Diffstat (limited to 'print/evince')
-rw-r--r--print/evince/Makefile4
-rw-r--r--print/evince/options.mk16
2 files changed, 15 insertions, 5 deletions
diff --git a/print/evince/Makefile b/print/evince/Makefile
index b733756698f..25b5d4d8353 100644
--- a/print/evince/Makefile
+++ b/print/evince/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2008/12/05 12:20:05 smb Exp $
+# $NetBSD: Makefile,v 1.49 2008/12/20 20:52:27 reed Exp $
#
PKGREVISION= 2
@@ -6,7 +6,7 @@ PKG_DESTDIR_SUPPORT= user-destdir
.include "../../print/evince/Makefile.common"
-COMMENT= Document viewer for the GNOME Desktop
+COMMENT= Document viewer
GCONF_SCHEMAS= evince.schemas
GCONF_SCHEMAS+= evince-thumbnailer.schemas
diff --git a/print/evince/options.mk b/print/evince/options.mk
index 623913aaa10..e6692ea97fb 100644
--- a/print/evince/options.mk
+++ b/print/evince/options.mk
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.1 2008/10/25 00:11:13 wiz Exp $
+# $NetBSD: options.mk,v 1.2 2008/12/20 20:52:27 reed Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.evince
-PKG_SUPPORTED_OPTIONS= dvi djvu
-PKG_SUGGESTED_OPTIONS= # none
+PKG_SUPPORTED_OPTIONS= dvi djvu gnome
+PKG_SUGGESTED_OPTIONS= gnome
.include "../../mk/bsd.options.mk"
@@ -21,3 +21,13 @@ PLIST.djvu= yes
GCONF_SCHEMAS+= evince-thumbnailer-djvu.schemas
.include "../../graphics/djvulibre-lib/buildlink3.mk"
.endif
+
+.if !empty(PKG_OPTIONS:Mgnome)
+COMMENT+= for the GNOME Desktop
+BUILDLINK_API_DEPENDS.libgnomeui+= libgnomeui>=2.14.0
+.include "../../devel/libgnomeui/buildlink3.mk"
+.else
+COMMENT+= (GTK version)
+CONFIGURE_ARGS+= --without-libgnome --disable-nautilus
+.endif
+