summaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-05-30 04:23:33 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-05-30 04:23:33 +0800
commitc23156d619ee914756075fd2af3bc419820b6284 (patch)
tree79fb1833a99ed2c887bde40d6dd23a5597ecc42c /deskutils
parent0498e4bf1826bb081ec80106470e946141de945c (diff)
downloadmarcuscom-ports-c23156d619ee914756075fd2af3bc419820b6284.tar
marcuscom-ports-c23156d619ee914756075fd2af3bc419820b6284.tar.gz
marcuscom-ports-c23156d619ee914756075fd2af3bc419820b6284.tar.bz2
marcuscom-ports-c23156d619ee914756075fd2af3bc419820b6284.tar.lz
marcuscom-ports-c23156d619ee914756075fd2af3bc419820b6284.tar.xz
marcuscom-ports-c23156d619ee914756075fd2af3bc419820b6284.tar.zst
marcuscom-ports-c23156d619ee914756075fd2af3bc419820b6284.zip
Make the Gaim dependency optional.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8934 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/nautilus-sendto/Makefile22
-rw-r--r--deskutils/nautilus-sendto/pkg-plist8
2 files changed, 19 insertions, 11 deletions
diff --git a/deskutils/nautilus-sendto/Makefile b/deskutils/nautilus-sendto/Makefile
index 800558e4a..4ea44cd2a 100644
--- a/deskutils/nautilus-sendto/Makefile
+++ b/deskutils/nautilus-sendto/Makefile
@@ -3,21 +3,19 @@
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/deskutils/nautilus-sendto/Makefile,v 1.9 2007/04/30 18:22:39 ahze Exp $
+# $MCom: ports/deskutils/nautilus-sendto/Makefile,v 1.10 2007/05/19 21:36:03 marcus Exp $
PORTNAME= nautilus-sendto
PORTVERSION= 0.10
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= deskutils
MASTER_SITES= GNOME
MAINTAINER= gnome@FreeBSD.org
COMMENT= Integration between nautilus, evolution, and gaim
-BUILD_DEPENDS= gaim:${PORTSDIR}/net-im/gaim \
- evolution:${PORTSDIR}/mail/evolution
-RUN_DEPENDS= gaim:${PORTSDIR}/net-im/gaim \
- evolution:${PORTSDIR}/mail/evolution
+BUILD_DEPENDS= evolution:${PORTSDIR}/mail/evolution
+RUN_DEPENDS= evolution:${PORTSDIR}/mail/evolution
MAN1= nautilus-sendto.1
GCONF_SCHEMAS= nst.schemas
@@ -30,4 +28,14 @@ USE_GETTEXT= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/bin/gaim)
+BUILD_DEPENDS+= gaim:${PORTSDIR}/net-im/gaim
+RUN_DEPENDS+= gaim:${PORTSDIR}/net-im/gaim
+PLIST_SUB+= GAIM=""
+.else
+PLIST_SUB+= GAIM="@comment "
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/deskutils/nautilus-sendto/pkg-plist b/deskutils/nautilus-sendto/pkg-plist
index 4417dab17..d924869b7 100644
--- a/deskutils/nautilus-sendto/pkg-plist
+++ b/deskutils/nautilus-sendto/pkg-plist
@@ -1,12 +1,12 @@
bin/nautilus-sendto
-lib/gaim/nautilus.la
-lib/gaim/nautilus.so
+%%GAIM%%lib/gaim/nautilus.la
+%%GAIM%%lib/gaim/nautilus.so
lib/nautilus-sendto/plugins/libnstbluetooth.la
lib/nautilus-sendto/plugins/libnstbluetooth.so
lib/nautilus-sendto/plugins/libnstevolution.la
lib/nautilus-sendto/plugins/libnstevolution.so
-lib/nautilus-sendto/plugins/libnstgaim.la
-lib/nautilus-sendto/plugins/libnstgaim.so
+%%GAIM%%lib/nautilus-sendto/plugins/libnstgaim.la
+%%GAIM%%lib/nautilus-sendto/plugins/libnstgaim.so
lib/nautilus-sendto/plugins/libnstsylpheed.la
lib/nautilus-sendto/plugins/libnstsylpheed.so
lib/nautilus/extensions-1.0/libnautilus-sendto.la