- Autodetect GNOME and build applet version

PR:		ports/66302
Submitted by:	Tim Bishop <tim@bishnet.net> (maintainer)
This commit is contained in:
Pav Lucistnik 2004-05-05 20:14:30 +00:00
parent 66cae882db
commit cec9bbca75
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108484
2 changed files with 13 additions and 6 deletions

View File

@ -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>

View File

@ -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