Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2012 10:32:51 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308841 - head/net/freeswitch
Message-ID:  <201212131032.qBDAWpOG010751@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Dec 13 10:32:51 2012
New Revision: 308841
URL: http://svnweb.freebsd.org/changeset/ports/308841

Log:
  Convert to new option framework

Modified:
  head/net/freeswitch/Makefile

Modified: head/net/freeswitch/Makefile
==============================================================================
--- head/net/freeswitch/Makefile	Thu Dec 13 10:28:44 2012	(r308840)
+++ head/net/freeswitch/Makefile	Thu Dec 13 10:32:51 2012	(r308841)
@@ -19,26 +19,28 @@ RUN_DEPENDS=	${LOCALBASE}/bin/freeswitch
 NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
 
-OPTIONS=	SOUNDS	"Sound files for use with FreeSwitch PBX" on \
-		MUSIC	"Music on hold for use with FreeSwitch PBX" on \
-		PIZZA	"Install Pizza Shop voice demo" off \
-		SCRIPTS	"Install Freeswitch various scripts" off \
+OPTIONS_DEFINE=	SOUNDS MUSIC PIZZA SCRIPTS
+OPTIONS_DEFAULT=	SOUNDS MUSIC
+SOUNDS_DESC=	Sound files for use with FreeSwitch PBX
+MUSIC_DESC=	Music on hold for use with FreeSwitch PBX
+PIZZA_DESC=	Pizza Shop voice demo
+SCRIPTS_DESC=	Freeswitch various scripts
 
 .include <bsd.port.options.mk>
 
-.if defined(WITH_SOUNDS)
+.if ${PORT_OPTIONS:MSOUNDS}
 RUN_DEPENDS+=	${LOCALBASE}/share/freeswitch/sounds/.freeswitch-sounds:${PORTSDIR}/audio/freeswitch-sounds
 .endif
 
-.if defined(WITH_MUSIC)
+.if ${PORT_OPTIONS:MMUSIC}
 RUN_DEPENDS+=	${LOCALBASE}/share/freeswitch/sounds/.freeswitch-music:${PORTSDIR}/audio/freeswitch-music
 .endif
 
-.if defined(WITH_PIZZA)
+.if ${PORT_OPTIONS:MPIZZA}
 RUN_DEPENDS+=	${LOCALBASE}/share/freeswitch/sounds/.pizza:${PORTSDIR}/misc/freeswitch-pizzademo
 .endif
 
-.if defined(WITH_SCRIPTS)
+.if ${PORT_OPTIONS:MSCRIPTS}
 RUN_DEPENDS+=	${LOCALBASE}/etc/freeswitch/scripts/.freeswitch-scripts:${PORTSDIR}/misc/freeswitch-scripts
 .endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212131032.qBDAWpOG010751>