From 77cace5ae4baa4302e942c2070c691d729998f70 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 25 Sep 2005 23:58:48 +0000 Subject: Add support for OPTIONS, and allow the screensaver preference to be either xscreensaver-gnome (default) or gnome-screensaver. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4868 df743ca5-7f9a-e211-a948-0013205c9059 --- x11/gnome2/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'x11/gnome2') diff --git a/x11/gnome2/Makefile b/x11/gnome2/Makefile index e5648230f..23a092c1c 100644 --- a/x11/gnome2/Makefile +++ b/x11/gnome2/Makefile @@ -3,7 +3,7 @@ # Whom: Joe Marcus Clarke # # $FreeBSD$ -# $MCom: ports/x11/gnome2/Makefile,v 1.119 2005/08/26 03:21:23 marcus Exp $ +# $MCom: ports/x11/gnome2/Makefile,v 1.120 2005/09/07 18:40:26 marcus Exp $ # PORTNAME= gnome2 @@ -31,7 +31,6 @@ RUN_DEPENDS?= ${X11BASE}/libexec/gweather-applet-2:${PORTSDIR}/x11/gnomeapplets2 nautilus:${PORTSDIR}/x11-fm/nautilus2 \ yelp:${PORTSDIR}/x11/yelp \ ${X11BASE}/sbin/gdm:${PORTSDIR}/x11/gdm \ - ${X11BASE}/share/gnome/applications/gnome-screensaver-properties.desktop:${PORTSDIR}/x11/xscreensaver-gnome \ ${X11BASE}/share/gnome/help/user-guide/C/user-guide.xml:${PORTSDIR}/misc/gnomeuserdocs2 \ ${X11BASE}/share/gnome/sounds/question.wav:${PORTSDIR}/audio/gnomeaudio2 \ ${X11BASE}/libdata/pkgconfig/libgail-gnome.pc:${PORTSDIR}/x11-toolkits/libgail-gnome \ @@ -73,6 +72,10 @@ pre-configure: @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL .endif +.if !defined(GNOME_SLAVE) || ${.CURDIR:T}=="gnome2-lite" +OPTIONS= GNOME_SCREENSAVER "Use gnome-screensaver as screensaver app" off +.endif + do-install: # empty .include @@ -83,4 +86,12 @@ RUN_DEPENDS+= epiphany:${PORTSDIR}/www/epiphany .endif .endif +.if ${.CURDIR}==${MASTERDIR} || ${.CURDIR:T}=="gnome2-lite" +.if !defined(WITH_GNOME_SCREENSAVER) +RUN_DEPENDS+= ${X11BASE}/share/gnome/applications/gnome-screensaver-properties.desktop:${PORTSDIR}/x11/xscreensaver-gnome +.else +RUN_DEPENDS+= gnome-screensaver:${PORTSDIR}/x11/gnome-screensaver +.endif +.endif + .include -- cgit v1.2.3