summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2008-12-20 20:52:27 +0000
committerreed <reed@pkgsrc.org>2008-12-20 20:52:27 +0000
commit778beb14378cd65f6c519e4a7914e722963ca046 (patch)
treed57fee3f6b1c98f77a6b0d97b49f4be54a5655cf /print
parent394a818ad3409ebb05cb4e558d06ed95949371c8 (diff)
downloadpkgsrc-778beb14378cd65f6c519e4a7914e722963ca046.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')
-rw-r--r--print/evince-nautilus/Makefile4
-rw-r--r--print/evince/Makefile4
-rw-r--r--print/evince/options.mk16
3 files changed, 18 insertions, 6 deletions
diff --git a/print/evince-nautilus/Makefile b/print/evince-nautilus/Makefile
index 79246244c31..495803e62f6 100644
--- a/print/evince-nautilus/Makefile
+++ b/print/evince-nautilus/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2008/10/25 00:11:13 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2008/12/20 20:52:27 reed Exp $
#
PKG_DESTDIR_SUPPORT= user-destdir
@@ -13,7 +13,9 @@ COMMENT= File properties plugin for evince files
INSTALL_DIRS= properties
BUILDLINK_DEPMETHOD.libXt?= build
+BUILDLINK_API_DEPENDS.libgnomeui+= libgnomeui>=2.14.0
+.include "../../devel/libgnomeui/buildlink3.mk"
.include "../../sysutils/nautilus/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
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
+