From c23156d619ee914756075fd2af3bc419820b6284 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 29 May 2007 20:23:33 +0000 Subject: Make the Gaim dependency optional. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8934 df743ca5-7f9a-e211-a948-0013205c9059 --- deskutils/nautilus-sendto/Makefile | 22 +++++++++++++++------- deskutils/nautilus-sendto/pkg-plist | 8 ++++---- 2 files changed, 19 insertions(+), 11 deletions(-) (limited to 'deskutils') 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 # # $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 +.include + +.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 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 -- cgit v1.2.3