aboutsummaryrefslogtreecommitdiff
path: root/x11/workrave
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2006-06-13 13:25:07 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2006-06-13 13:25:07 +0000
commitfd271750bdf49f827951ba9da9e1cf56c7f6780f (patch)
tree62aab58ce69fea3a44ef5720cd0cce678cf70bde /x11/workrave
parent99c87c92d4f3152559ef6f633b0cdd63aa9b44e1 (diff)
downloadports-fd271750bdf49f827951ba9da9e1cf56c7f6780f.tar.gz
ports-fd271750bdf49f827951ba9da9e1cf56c7f6780f.zip
Notes
Diffstat (limited to 'x11/workrave')
-rw-r--r--x11/workrave/Makefile29
-rw-r--r--x11/workrave/pkg-plist8
2 files changed, 26 insertions, 11 deletions
diff --git a/x11/workrave/Makefile b/x11/workrave/Makefile
index bb991e3c3aa4..0dce65907c9f 100644
--- a/x11/workrave/Makefile
+++ b/x11/workrave/Makefile
@@ -14,20 +14,35 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= A Gnome RSI prevention tool
-LIB_DEPENDS= gnomeuimm-2.6.1:${PORTSDIR}/x11-toolkits/libgnomeuimm26 \
- gnet-2.0.0:${PORTSDIR}/net/gnet2
+.if !defined(WITHOUT_GNOME)
+LIB_DEPENDS= gnomeuimm-2.6.1:${PORTSDIR}/x11-toolkits/libgnomeuimm26
+.else
+LIB_DEPENDS= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24
+.endif
+.if !defined(WITHOUT_NETWORK)
+LIB_DEPENDS+= gnet-2.0.0:${PORTSDIR}/net/gnet2
+.endif
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GETTEXT= yes
-USE_GNOME= gnomeprefix gnomehack intlhack gnomepanel gconf2 intltool
+USE_GNOME= gnomeprefix gnomehack intlhack gconf2 intltool
+.if !defined(WITHOUT_GNOME)
+USE_GNOME+= gnomepanel
+.endif
USE_GCC= 3.4
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
-CONFIGURE_ARGS= --datadir=${PREFIX}/share/gnome/workrave \
- --enable-gconf \
- --enable-gnome \
- --enable-exercises
+CONFIGURE_ARGS= --enable-gconf
+.if defined(WITHOUT_GNOME)
+CONFIGURE_ARGS+=--disable-gnome
+PLIST_SUB= GNOME="@comment "
+.else
+PLIST_SUB= GNOME=""
+.endif
+.if defined(WITHOUT_NETWORK)
+CONFIGURE_ARGS+=--disable-distribution
+.endif
.include <bsd.port.mk>
diff --git a/x11/workrave/pkg-plist b/x11/workrave/pkg-plist
index b686d3ac10ef..42ef9ca5e748 100644
--- a/x11/workrave/pkg-plist
+++ b/x11/workrave/pkg-plist
@@ -1,9 +1,9 @@
bin/workrave
etc/sound/events/workrave.soundlist
-libdata/bonobo/servers/Workrave-Applet.server
-libdata/bonobo/servers/Workrave-Control.server
-libexec/workrave-applet
-share/gnome/gnome-2.0/ui/GNOME_WorkraveApplet.xml
+%%GNOME%%libdata/bonobo/servers/Workrave-Applet.server
+%%GNOME%%libdata/bonobo/servers/Workrave-Control.server
+%%GNOME%%libexec/workrave-applet
+%%GNOME%%share/gnome/gnome-2.0/ui/GNOME_WorkraveApplet.xml
share/gnome/pixmaps/workrave/workrave-icon-huge.png
share/gnome/sounds/workrave/break-ignored.wav
share/gnome/sounds/workrave/break-prelude.wav