From 9d720cfe4230f5aad8bc07bb6eac07a1ff9d17b9 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 31 Oct 2005 00:12:01 +0000 Subject: Convert to use OPTIONS for SAMBA and MDNS support (both default to enabled). git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5001 df743ca5-7f9a-e211-a948-0013205c9059 --- devel/gnome-vfs/Makefile | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) (limited to 'devel/gnome-vfs') diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile index f6c843f8d..6cc75ea24 100644 --- a/devel/gnome-vfs/Makefile +++ b/devel/gnome-vfs/Makefile @@ -3,12 +3,12 @@ # Whom: Ade Lovett # # $FreeBSD$ -# $MCom: ports/devel/gnomevfs2/Makefile,v 1.113 2005/10/05 13:56:16 marcus Exp $ +# $MCom: ports/devel/gnomevfs2/Makefile,v 1.114 2005/10/22 06:16:43 marcus Exp $ # PORTNAME= gnomevfs2 PORTVERSION= 2.12.1.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-vfs/2.12 @@ -42,22 +42,10 @@ GCONF_SCHEMAS= desktop_default_applications.schemas \ system_http_proxy.schemas system_smb.schemas \ system_storage.schemas -.include - -.if defined(PACKAGE_BUILDING) || defined(PARALLEL_PACKAGE_BUILD) -.undef WITHOUT_SAMBA -.undef WITHOUT_MDNS -WITH_MDNS= yes -WITH_SAMBA= yes -.endif - -.if exists(${LOCALBASE}/lib/libsmbclient.so) -WITH_SAMBA= yes -.endif +OPTIONS= SAMBA "Enable SMB volume support" on \ + MDNS "Enable Bonjour/Rendezvous support" on -.if exists(${LOCALBASE}/lib/libhowl.so) -WITH_MDNS= yes -.endif +.include .if exists(${LOCALBASE}/lib/libfam.so) || !defined(WITHOUT_FAM) USE_FAM= yes @@ -67,15 +55,18 @@ USE_FAM= yes LIB_DEPENDS+= krb5:${PORTSDIR}/security/heimdal .endif -.if defined(WITH_SAMBA) +.if !defined(WITHOUT_SAMBA) LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient PLIST_SUB+= SAMBA="" .else PLIST_SUB+= SAMBA="@comment " +CONFIGURE_ARGS+=--disable-samba .endif -.if defined(WITH_MDNS) +.if !defined(WITHOUT_MDNS) LIB_DEPENDS+= howl:${PORTSDIR}/net/howl +.else +CONFIGURE_ARGS+=--disable-howl .endif post-patch: -- cgit v1.2.3