summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-05-05 20:14:30 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-05-05 20:14:30 +0000
commitcec9bbca75b7ad31829a23b2e2551ae79482c6e3 (patch)
tree3979ca562ab8a043cd00cd5e5027db4b94fe792f /mail
parentAdd netgen 4.3.1, an automatic 3D tetrahedral mesh generator. (diff)
- Autodetect GNOME and build applet version
PR: ports/66302 Submitted by: Tim Bishop <tim@bishnet.net> (maintainer)
Diffstat (limited to 'mail')
-rw-r--r--mail/gnubiff/Makefile15
-rw-r--r--mail/gnubiff/pkg-plist4
2 files changed, 13 insertions, 6 deletions
diff --git a/mail/gnubiff/Makefile b/mail/gnubiff/Makefile
index 37c6610c8cd9..8f1738ffe4dd 100644
--- a/mail/gnubiff/Makefile
+++ b/mail/gnubiff/Makefile
@@ -30,14 +30,21 @@ INFO= gnubiff
CONFIGURE_ARGS+= --with-password
.endif
-.if defined(WITH_GNUBIFF_GNOME)
+# This application can dock in the GNOME panel, or it can not.
+# Only install support if gnomepanel is already installed.
+WANT_GNOME= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${HAVE_GNOME:Mgnomepanel}!=""
CONFIGURE_ARGS+= --with-gnome
USE_GNOME+= gnomepanel gconf2 gnomeprefix gnomehack
-PLIST_SUB+= WITH_GNUBIFF_GNOME=""
+PKGNAMESUFFIX= -gnome
PLIST_SUB+= SHAREDIR="share/gnome"
+PLIST_SUB+= WITH_GNOME=""
.else
-PLIST_SUB+= WITH_GNUBIFF_GNOME="@comment "
PLIST_SUB+= SHAREDIR="share"
+PLIST_SUB+= WITH_GNOME="@comment "
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/mail/gnubiff/pkg-plist b/mail/gnubiff/pkg-plist
index 4e629827cd0e..de62e197183b 100644
--- a/mail/gnubiff/pkg-plist
+++ b/mail/gnubiff/pkg-plist
@@ -54,7 +54,7 @@ share/locale/sv/LC_MESSAGES/gnubiff.mo
%%SHAREDIR%%/pixmaps/gnubiff_icon.png
%%SHAREDIR%%/sounds/gnubiff/mail.wav
%%SHAREDIR%%/sounds/gnubiff/coin.wav
-%%WITH_GNUBIFF_GNOME%%libdata/bonobo/servers/GNOME_gnubiffApplet.server
-%%WITH_GNUBIFF_GNOME%%%%SHAREDIR%%/gnome-2.0/ui/GNOME_gnubiffApplet.xml
+%%WITH_GNOME%%libdata/bonobo/servers/GNOME_gnubiffApplet.server
+%%WITH_GNOME%%%%SHAREDIR%%/gnome-2.0/ui/GNOME_gnubiffApplet.xml
@dirrm %%SHAREDIR%%/gnubiff
@dirrm %%SHAREDIR%%/sounds/gnubiff