Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2012 23:00:25 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309134 - head/net/freeswitch-core
Message-ID:  <201212172300.qBHN0PEe093359@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Mon Dec 17 23:00:25 2012
New Revision: 309134
URL: http://svnweb.freebsd.org/changeset/ports/309134

Log:
  Convert to optionsNG

Modified:
  head/net/freeswitch-core/Makefile

Modified: head/net/freeswitch-core/Makefile
==============================================================================
--- head/net/freeswitch-core/Makefile	Mon Dec 17 22:46:06 2012	(r309133)
+++ head/net/freeswitch-core/Makefile	Mon Dec 17 23:00:25 2012	(r309134)
@@ -84,66 +84,87 @@ BASE_PORTNAME=	${FREESWITCH_USER}
 
 VARBASE?=	/var
 
-OPTIONS=	MODSHOUT        "Enable mod_shout (streaming audio/mp3)" on \
-		MODFLITE	"Enable mod_flite (Text to Speech)" on \
-		MODUNIMRCP	"Enable mod_unimrcp tts" off \
-		MODTTSCMDLINE	"Enable mod_tts_commandline" on \
-		MODPOCKETSPHINX	"Enable mod_pockectsphinx (voice control)" on \
-		MODCIDLOOKUP	"Enable mod_cidlookup()" on \
-		MODDPDIRECTORY	"Enable mod_dialplan_directory()" off \
-		MODDIRECTORY	"Enable mod_directory(dial name directory)" on \
- 		MODDINGALING	"Enable mod_dingaling(google talk)" on \
-		MODEASYROUTE	"Enable mod_easyroute(routing tool)" on \
-		MODERLANGEVENT  "Enable mod_erlang_event (Call Center Dist)" off \
-		MODLCR		"Enable mod_lcr (least cost routing)" on \
-		MODSOUNDTOUCH	"Enable mod_soundtouch(Audio Effects)" on \
-		MODRSS		"Enable mod_rss (rss feed reader)" on \
-		MODSNOM		"Enable mod_snom (snom control)" on \
-		MODAVMD		"Enable mod_avmd (Adavced v-mail detection)" on \
-		MODVMD		"Enable mod_vmd (voice mail detection)" off \
-		MODSPY		"Enable mod_spy(listen/breaking on calls)" on \
-		MODAMRWB	"Enable mod_amrwb (amrwb codec)" on \
-		MODCELT		"Enable mod_celt (celt 48k  codec)" on \
-		MODSILK		"Enable mod_silk (Silk Codec)" on \
-		MODCODEC2	"Enable mod_codec2 (Codec2 codec)" on \
-		MODOPUS		"Enable mod_opus codec (Opus codec)" on \
-		MODFREETDM	"Enable mod_freetdm (TDM Cards )" off \
-		MODSKINNY	"Enable mod_skinny (Skinny Support)" on \
-		MODMEMCACHE	"Enable mod_memcache ()" on \
-		MODMULTICAST	"Enable mod_event_multicast()" on \
-		MODNIBBLEBILL   "Enable mod_nibblebill (billing)" on \
-		MODPORTAUDIO    "Enable mod_portaudio(souncard portaudio)" on \
-		MODPASTREAM	"Enable mod_portaudio_stream (new)" on \
-		MODSHELLSTREAM	"Enable mod_shell_stream (new)" on \
-		MODPERL		"Enable mod_perl (perl support)" off \
-		MODPYTHON	"Enable mod_python (python support)" off \
-		MODCURL		"Enable mod_curl" on \
-		MODXMLCURL	"Enable mod_xml_curl" on \
-		MODDISTRIBUTOR	"Enable mod_distributor(c\# .net api)" off \
-		MODSNAPSHOT	"Enable mod_snapshot (testing)" off \
-		MODSAYDE	"Enable mod_say_de (German support)" off \
-		MODSAYES	"Enable mod_say_se (Spanish support)" off \
-		MODSAYEN	"Enable mod_say_en (English support)" on \
-		MODSAYHE	"Enable mod_say_he (Hebrew support)" off \
-		MODSAYHU	"Enable mod_say_hu (Hungarian support)" off \
-		MODSAYFR	"Enable mod_say_fr (French support)" off \
-		MODSAYIT	"Enable mod_say_it (Italian support)" off \
-		MODSAYNL	"Enable mod_say_nl (Dutch support)" off \
-		MODSAYRU	"Enable mod_say_ru (Russian support)" off \
-		MODSAYTH	"Enable mod_say_th (Thi support)" off \
-		MODSAYZH	"Enable mod_say_zh (Chinese support)" off \
-		EXTENSIONS	"Include Default User Extensions" off \
-		MODCALLCENTER	"Enable mod_callcenter (callcenter que)" on \
-		MODFSK		"Enablle mod_fsck (caller_id related)" on \
-		MODCDRPGCSV	"Enable mod_cdr_pg_csv( broken on 9.x )" off \
-		MODSNMP		"Enable mod_snmp (network monitoring)" on \
-		MODLADSPA	"Enable mod_ladspa(voice changer)(new)" on \
-		MODRTMP		"Enable mod_rtmp(realtime media protocol)" on \
-		MODDPASTERISK	"Enable mod_dialplan_asterisk(* dialplan)" off \
-		MODBLACKLIST	"Enable mod_blacklist(Black list numbers)" on \
-		MODHTTPCACHE	"Enable mod_http_cache(new)" on \
-		MODEVENTZMQ     "Enable mod_event_zmq(build issues)(new)" on \
-		SAMPLECONFIGS	"Enable Sample Configurations" on
+OPTIONS_DEFINE=	MODSHOUT MODFLITE MODUNIMRCP MODTTSCMDLINE MODPOCKETSPHINX \
+		MODCIDLOOKUP MODDPDIRECTORY MODDIRECTORY MODDINGALING \
+		MODEASYROUTE MODERLANGEVENT MODLCR MODSOUNDTOUCH MODRSS \
+		MODSNOM MODAVMD MODVMD MODSPY MODAMRWB MODCELT MODSILK \
+		MODCODEC2 MODOPUS MODFREETDM MODSKINNY MODMEMCACHE \
+		MODMULTICAST MODNIBBLEBILL MODPORTAUDIO MODSHELLSTREAM \
+		MODPERL MODPYTHON MODCURL MODXMLCURL MODDISTRIBUTOR \
+		MODSNAPSHOT MODSAYDE MODSAYES MODSAYEN MODSAYHE MODSAYHU \
+		MODSAYFR MODSAYIT MODSAYNL MODSAYRU MODSAYTH MODSAYZH \
+		EXTENSIONS MODCALLCENTER MODFSK MODCDRPGCSV MODSNMP MODLADSPA \
+		MODRTMP MODDPASTERISK MODBLACKLIST MODHTTPCACHE MODEVENTZMQ \
+		SAMPLECONFIGS
+OPTIONS_DEFAULT=	MODSHOUT MODFLITE MODTTSCMDLINE MODPOCKETSPHINX \
+			MODCIDLOOKUP MODDIRECTORY MODDINGALING MODEASYROUTE \
+			MODLCR MODSOUNDTOUCH MODRSS MODSNOM MODAVMD MODSPY \
+			MODAMRWB MODCELT MODSILK MODCODEC2 MODOPUS MODSKINNY \
+			MODMEMCACHE MODMULTICAST MODNIBBLEBILL MODPORTAUDIO \
+			MODPASTREAM MODSHELLSTREAM MODCURL MODXMLCURL \
+			MODSAYEN MODCALLCENTER MODFSK MODSNMP MODLADSPA \
+			MODRTMP MODBLACKLIST MODHTTPCACHE MOVEVENTZMQ \
+			SAMPLECONFIGS
+
+MODSHOUT_DESC=		mod_shout (streaming audio/mp3)
+MODFLITE_DESC=		mod_flite (Text to Speech)
+MODUNIMRCP_DESC=	mod_unimrcp tts
+MODTTSCMDLINE_DESC=	mod_tts_commandline
+MODPOCKETSPHINX_DESC=	mod_pockectsphinx (voice control)
+MODCIDLOOKUP_DESC=	mod_cidlookup
+MODDPDIRECTORY_DESC=	mod_dialplan_directory
+MODDIRECTORY_DESC=	mod_directory (dial name directory)
+MODDINGALING_DESC=	mod_dingaling (Google talk)
+MODEASYROUTE_DESC=	mod_easyroute (routing tool)
+MODERLANGEVENT_DESC=	mod_erlang_event (Call Center Dist)
+MODLCR_DESC=		mod_lcr (least cost routiwng)
+MODSOUNDTOUCH_DESC=	mod_soundtouch (Audio Effects)
+MODRSS_DESC=		mod_rss (rss feed reader)
+MODSNOM_DESC=		mod_snom (snom control)
+MODAVMD_DESC=		mod_avmd (Adavced v-mail detection)
+MODVMD_DESC=		mod_vmd (voice mail detection)
+MODSPY_DESC=		mod_spy (listen/breaking on calls)
+MODAMRWB_DESC=		mod_amrwb (amrwb codec)
+MODCELT_DESC=		mod_celt (celt 48k codec)
+MODSILK_DESC=		mod_silk (Silk Codec)
+MODCODEC2_DESC=		mod_codec2 (Codec2 codec)
+MODOPUS_DESC=		mod_opus codec (Opus codec)
+MODFREETDM_DESC=	mod_freetdm (TDM Cards)
+MODSKINNY_DESC=		mod_skinny (Skinny Support)
+MODMEMCACHE_DESC=	mod_memcache
+MODMULTICAST_DESC=	mod_event_multicast
+MODNIBBLEBILL_DESC=	mod_nibblebill (billing)
+MODPORTAUDIO_DESC=	mod_portaudio (souncard portaudio)
+MODPASTREAM_DESC=	mod_portaudio_stream (new)
+MODSHELLSTREAM_DESC=	mod_shell_stream (new)
+MODPYTHON_DESC=		mod_python (python support)
+MODCURL_DESC=		mod_curl
+MODXMLCURL_DESC=	mod_xml_curl
+MODDISTRIBUTOR_DESC=	mod_distributor (C\# .NET API)
+MODSNAPSHOT_DESC=	mod_snapshot (testing)
+MODSAYDE_DESC=		mod_say_de (German support)
+MODSAYES_DESC=		mod_say_se (Spanish support)
+MODSAYEN_DESC=		mod_say_en (English support)
+MODSAYHE_DESC=		mod_say_he (Hebrew support)
+MODSAYHU_DESC=		mod_say_hu (Hungarian support)
+MODSAYFR_DESC=		mod_say_fr (French support)
+MODSAYIT_DESC=		mod_say_it (Italian support)
+MODSAYNL_DESC=		mod_say_nl (Dutch support)
+MODSAYRU_DESC=		mod_say_ru (Russian support)
+MODSAYTH_DESC=		mod_say_th (Thi support)
+MODSAYZH_DESC=		mod_say_zh (Chinese support)
+EXTENSIONS_DESC=	Include Default User Extensions
+MODCALLCENTER_DESC=	mod_callcenter (callcenter queue)
+MODFSK_DESC=		mod_fsck (caller_id related)
+MODCDRPGCSV_DESC=	mod_cdr_pg_csv (broken on 9.X)
+MODSNMP_DESC=		mod_snmp (network monitoring)
+MODLADSPA_DESC=		mod_ladspa (voice changer) (new)
+MODRTMP_DESC=		mod_rtmp (realtime media protocol)
+MODDPASTERISK_DESC=	mod_dialplan_asterisk (* dialplan)
+MODBLACKLIST_DESC=	mod_blacklist (Black list numbers)
+MODHTTPCACHE_DESC=	mod_http_cache (new)
+MODEVENTZMQ_DESC=	mod_event_zmq (build issues) (new)
+SAMPLECONFIGS_DESC=	Sample Configurations
 
 .include <bsd.port.options.mk>
 
@@ -157,14 +178,14 @@ CFLAGS+=	-fPIC
 	MODNIBBLEBILL MODDINGALING MODDIRECTORY MODMEMCACHE MODPASTREAM MODSHELLSTREAM 	MODSILK MODUNIMRCP \
 	MODTTSCMDLINE MODDISTRIBUTOR MODSNAPSHOT MODSKINNY EXTENSIONS MODCALLCENTER MODCODEC2 MODFSK MODOPUS \
 	MODDPASTERISK MODRTMP SAMPLECONFIGS MODBLACKLIST MODHTTPCACHE MODEVENTZMQ
-.if !defined(WITH_${i})
+.if ! ${PORT_OPTIONS:M${i}}
 PLIST_SUB+=	WITH_${i}="@comment "
 .else
 PLIST_SUB+=	WITH_${i}=""
 .endif
 .endfor
 
-.if !defined(WITH_MODFREETDM)
+.if ! ${PORT_OPTIONS:MMODFREETDM}
 PLIST_SUB+=	 WITH_MODFREETDM="@comment "
 .else
 .if ${OSVERSION} < 703000 || (${OSVERSION} >= 800000 && ${OSVERSION} < 800108)
@@ -179,14 +200,14 @@ RUN_DEPENDS+=	${LOCALBASE}/include/dahdi
 		${LOCALBASE}/lib/dahdi/dahdi.ko:${PORTSDIR}/misc/dahdi-kmod
 .endif
 
-.if !defined(WITH_MODSHOUT)
+.if ! ${PORT_OPTIONS:MMODSHOUT}
 PLIST_SUB+=	WITH_MODSHOUT="@comment "
 .else
 PLIST_SUB+=	WITH_MODSHOUT=""
 LIB_DEPENDS+=	vorbis:${PORTSDIR}/audio/libvorbis
 .endif
 
-.if !defined(WITH_MODPERL)
+.if ! ${PORT_OPTIONS:MMODPERL}
 PLIST_SUB+=	WITH_MODPERL="@comment "
 .else
 PLIST_SUB+=	WITH_MODPERL=""
@@ -194,21 +215,21 @@ LIB_DEPENDS+=	gdbm:${PORTSDIR}/databases
 		db:${PORTSDIR}/databases/db42
 .endif
 
-.if !defined(WITH_MODERLANGEVENT)
+.if ! ${PORT_OPTIONS:MMODERLANGEVENT}
 PLIST_SUB+=	WITH_MODERLANGEVENT="@comment "
 .else
 PLIST_SUB+=	WITH_MODERLANGEVENT=""
 BUILD_DEPENDS+=	${LOCALBASE}/lib/erlang/usr/include/erl_driver.h:${PORTSDIR}/lang/erlang
 .endif
 
-.if !defined(WITH_MODPYTHON)
+.if ! ${PORT_OPTIONS:MMODPYTHON}
 PLIST_SUB+=	WITH_MODPYTHON="@comment "
 .else
 PLIST_SUB+=	WITH_MODPYTHON=""
 USE_PYTHON=	yes
 .endif
 
-.if !defined(WITH_MODCDRPGCSV)
+.if ! ${PORT_OPTIONS:MMODCDRPGCSV}
 PLIST_SUB+=	WITH_MODCDRPGCSV="@comment "
 .else
 PLIST_SUB+=	WITH_MODCDRPGCSV=""
@@ -216,7 +237,7 @@ USE_PGSQL=	yes
 #WITH_PGSQL_VER=	90
 .endif
 
-.if !defined(WITH_MODSNMP)
+.if ! ${PORT_OPTIONS:MMODSNMP}
 PLIST_SUB+=	WITH_MODSNMP="@comment "
 .else
 PLIST_SUB+=	WITH_MODSNMP=""
@@ -224,7 +245,7 @@ BUILD_DEPENDS+=	${LOCALBASE}/include/net
 RUN_DEPENDS+=	${LOCALBASE}/include/net-snmp/definitions.h:${PORTSDIR}/net-mgmt/net-snmp
 .endif
 
-.if !defined(WITH_MODLADSPA)
+.if ! ${PORT_OPTIONS:MMODLADSPA}
 PLIST_SUB+=	WITH_MODLADSPA="@comment "
 .else
 PLIST_SUB+=	WITH_MODLADSPA=""
@@ -257,7 +278,7 @@ post-extract:
 pre-configure:
 	@${REINPLACE_CMD} -e 's|base=http://files.freeswitch.org/downloads/libs/|base=file://${DISTDIR}/${DIST_SUBDIR}/|g' ${WRKSRC}/build/getlib.sh.in
 	@${REINPLACE_CMD} -e 's|2.1.9|2.1.10|g' ${WRKSRC}/src/mod/event_handlers/mod_event_zmq/Makefile
-.if !defined(WITH_SAMPLECONFIGS)
+.if ! ${PORT_OPTIONS:MSAMPLECONFIGS}
 	@${REINPLACE_CMD} -e 's|$$(MAKE) samples-conf|##$$(MAKE) samples-conf|g' ${WRKSRC}/Makefile.am
 .endif
 	cd ${WRKSRC} && ./bootstrap.sh
@@ -268,82 +289,82 @@ post-configure:
 	@${REINPLACE_CMD} -e 's|#\(asr_tts/${i}\)|\1|g' ${WRKSRC}/modules.conf
 .endif
 .endfor
-.if defined(WITH_MODTTSCMDLINE)
+.if ${PORT_OPTIONS:MMODTTSCMDLINE}
 	@${REINPLACE_CMD} -e 's|#asr_tts/mod_tts_commandline|asr_tts/mod_tts_commandline|g' ${WRKSRC}/modules.conf
 .endif
 .for i in mod_cidlookup mod_easyroute mod_lcr mod_soundtouch mod_rss mod_snom \
 	mod_vmd mod_avmd mod_spy mod_curl mod_nibblebill mod_memcache mod_directory mod_distributor \
 	mod_snapshot mod_callcenter mod_fsk mod_ladspa mod_blacklist mod_http_cache
-.if defined(WITH_${i:C/_//g:U})
+.if ${PORT_OPTIONS:M${i:C/_//g:U}}
 	@${REINPLACE_CMD} -e 's|#\(applications/${i}\)|\1|g' ${WRKSRC}/modules.conf
 .endif
 .endfor
 .for i in mod_amrwb mod_celt mod_silk mod_codec2 mod_opus
-.if defined(WITH_${i:C/_//g:U})
+.if ${PORT_OPTIONS:M${i:C/_//g:U}}
 	@${REINPLACE_CMD} -e 's|#\(codecs/${i}\)|\1|g' ${WRKSRC}/modules.conf
 .endif
 .endfor
-.for i in  mod_shell_stream mod_shout
-.if defined(WITH_${i:C/_//g:U})
+.for i in mod_shell_stream mod_shout
+.if ${PORT_OPTIONS:M${i:C/_//g:U}}
 	@${REINPLACE_CMD} -e 's|#\(formats/${i}\)|\1|g' ${WRKSRC}/modules.conf
 .endif
 .endfor
-.if defined(WITH_MODPASTREAM)
+.if ${PORT_OPTIONS:MMODPASTREAM}
 	@${REINPLACE_CMD} -e 's|#formats/mod_portaudio_stream|formats/mod_portaudio_stream|g' ${WRKSRC}/modules.conf
 .endif
 .for i in mod_say_de mod_say_es mod_say_en mod_say_fr mod_say_he mod_say_hu mod_say_it mod_say_nl mod_say_ru mod_say_th mod_say_zh
-.if defined(WITH_${i:C/_//g:U})
+.if ${PORT_OPTIONS:M${i:C/_//g:U}}
 	@${REINPLACE_CMD} -e 's|#\(say/${i}\)|\1|g' ${WRKSRC}/modules.conf
 .endif
 .endfor
 .for i in mod_perl mod_python
-.if defined(WITH_${i:C/_//g:U})
+.if ${PORT_OPTIONS:M${i:C/_//g:U}}
 	@${REINPLACE_CMD} -e 's|#\(languages/${i}\)|\1|g' ${WRKSRC}/modules.conf
 .endif
 .endfor
 .for i in mod_skinny mod_portaudio mod_dingaling mod_rtmp
-.if defined(WITH_${i:C/_//g:U})
+.if ${PORT_OPTIONS:M${i:C/_//g:U}}
 	@${REINPLACE_CMD} -e 's|#\(endpoints/${i}\)|\1|g' ${WRKSRC}/modules.conf
 .endif
 .endfor
-.if defined(WITH_MODDPDIRECTORY)
+.if ${PORT_OPTIONS:MMODDPDIRECTORY}
 	@${REINPLACE_CMD} -e 's|#dialplans/mod_dialplan_directory|dialplans/mod_dialplan_directory|g' ${WRKSRC}/modules.conf
 .endif
-.if defined(WITH_MODFREETDM)
+.if ${PORT_OPTIONS:MMODFREETDM}
 	@${REINPLACE_CMD} -e 's|#../../libs/freetdm/mod_freetdm|../../libs/freetdm/mod_freetdm|g' ${WRKSRC}/modules.conf
 .endif
-.if defined(WITH_MODMULTICAST)
+.if ${PORT_OPTIONS:MMODMULTICAST}
 	@${REINPLACE_CMD} -e 's|#event_handlers/mod_event_multicast|event_handlers/mod_event_multicast|g' ${WRKSRC}/modules.conf
 .endif
-.if defined(WITH_MODERLANGEVENT)
+.if ${PORT_OPTIONS:MMODERLANGEVENT}
 	@${REINPLACE_CMD} -e 's|#event_handlers/mod_erlang_event|event_handlers/mod_erlang_event|g' ${WRKSRC}/modules.conf
 .endif
-.if defined(WITH_MODCDRPGCSV)
+.if ${PORT_OPTIONS:MMODCDRPGCSV}
 	@${REINPLACE_CMD} -e 's|#event_handlers/mod_cdr_pg_csv|event_handlers/mod_cdr_pg_csv|g' ${WRKSRC}/modules.conf
 .endif
-.if defined(WITH_MODSNMP)
+.if ${PORT_OPTIONS:MMODSNMP}
 	@${REINPLACE_CMD} -e 's|#event_handlers/mod_snmp|event_handlers/mod_snmp|g' ${WRKSRC}/modules.conf
 .endif
-.if defined(WITH_MODXMLCURL)
+.if ${PORT_OPTIONS:MMODXMLCURL}
 	@${REINPLACE_CMD} -e 's|#xml_int/mod_xml_curl|xml_int/mod_xml_curl|g' ${WRKSRC}/modules.conf
 .endif
-.if !defined(WITH_MODDPASTERISK)
+.if ! ${PORT_OPTIONS:MMODDPASTERISK}
 	@${REINPLACE_CMD} -e 's|dialplans/mod_dialplan_asterisk|#dialplans/mod_dialplan_asterisk|g' ${WRKSRC}/modules.conf
 .endif
-.if defined(WITH_MODEVENTZMQ)
+.if ${PORT_OPTIONS:MMODEVENTZMQ}
 	@${REINPLACE_CMD} -e 's|#event_handlers/mod_event_zmq|event_handlers/mod_event_zmq|g' ${WRKSRC}/modules.conf
 .endif
 
 pre-install:
 	@${CHMOD} 664 ${WRKSRC}/libs/freetdm/conf/*
-.if !defined(WITH_EXTENSIONS)
+.if ! ${PORT_OPTIONS:MEXTENSIONS}
 	@${FIND} ${WRKSRC}/conf/directory/default -type f -name '*.xml' -delete
 .endif
 
 post-install:
 	@${SETENV} PKG_PREFIX=${PREFIX} \
 	    ${SH} ${PKGINSTALL} ${BASE_PORTNAME} POST-INSTALL
-.if !defined(WITH_SAMPLECONFIGS)
+.if ! ${PORT_OPTIONS:MSAMPLECONFIGS}
 	@${MKDIR} ${PREFIX}/etc/${BASE_PORTNAME}/conf
 	@${MKDIR} ${PREFIX}/etc/${BASE_PORTNAME}/conf/skinny_profiles
 	@${MKDIR} ${PREFIX}/etc/${BASE_PORTNAME}/conf/sip_profiles/internal
@@ -381,13 +402,13 @@ post-install:
 	@${MKDIR} ${PREFIX}/etc/${BASE_PORTNAME}/conf/dialplan
 	@${MKDIR} ${PREFIX}/etc/${BASE_PORTNAME}/conf/autoload_configs
 .endif
-.if !defined(WITH_EXTENSIONS)
+.if ! ${PORT_OPTIONS:MEXTENSIONS}
 	@${MKDIR} ${PREFIX}/etc/${BASE_PORTNAME}/conf/directory/default
 .endif
 	@${FIND} ${PREFIX}/etc/${BASE_PORTNAME}/. -type d | ${XARGS} ${CHMOD} 774
 	@${MKDIR} ${PREFIX}/share/${BASE_PORTNAME}/sounds
 	@${CHMOD} -R 774 ${PREFIX}/share/${BASE_PORTNAME}
-.if defined(WITH_SAMPLECONFIGS)
+.if ${PORT_OPTIONS:MSAMPLECONFIGS}
 	@for i in $$(${FIND} ${PREFIX}/etc/${BASE_PORTNAME}/conf/ -type f -name '*.sample'); do if [ ! -f $${i%.sample} ]; then ${CP} -p $$i $${i%.sample}; fi; done
 .endif
 	@for i in $$(${FIND} ${PREFIX}/www/${BASE_PORTNAME}/htdocs/ -type f -name '*.sample'); do if [ ! -f $${i%.sample} ]; then ${CP} -p $$i $${i%.sample}; fi; done



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