2012-12-07 23:26:41 +01:00
|
|
|
# Created by: Eric F Crist <ecrist@secure-computing.net>
|
2010-06-12 00:30:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2012-05-19 14:34:00 +02:00
|
|
|
PORTNAME= freeswitch
|
2010-06-12 00:30:12 +02:00
|
|
|
PORTVERSION= 1.0.8
|
2012-05-19 14:34:00 +02:00
|
|
|
PORTREVISION= 2
|
2010-06-12 00:30:12 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://files.freeswitch.org/
|
2012-05-19 14:34:00 +02:00
|
|
|
PKGNAMESUFFIX= -music
|
|
|
|
DIST_SUBDIR= freeswitch
|
2010-06-12 00:30:12 +02:00
|
|
|
|
2012-12-07 23:26:41 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2010-06-12 00:30:12 +02:00
|
|
|
COMMENT= FreeSwitch Music - All Bitrates
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_BUILD= yes
|
2012-06-24 18:59:24 +02:00
|
|
|
USERS= ${PORTNAME}
|
2013-09-20 16:36:35 +02:00
|
|
|
NO_STAGE= yes
|
2012-06-24 18:59:24 +02:00
|
|
|
GROUPS= ${USERS}
|
|
|
|
SHAREOWN= ${USERS}
|
2012-05-19 14:34:00 +02:00
|
|
|
SHAREGRP= ${SHAREOWN}
|
2012-06-24 18:59:24 +02:00
|
|
|
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
|
2010-08-17 18:17:28 +02:00
|
|
|
|
2012-08-17 03:09:40 +02:00
|
|
|
OPTIONS_DEFINE= 8K 16K 32K 48K
|
|
|
|
|
|
|
|
8K_DESC= 8000Hz Music
|
|
|
|
16K_DESC= 16000Hz Music
|
|
|
|
32K_DESC= 32000Hz Music
|
|
|
|
48K_DESC= 48000Hz Music
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= 8K 16K
|
|
|
|
NO_OPTIONS_SORT= yes
|
2010-06-12 00:30:12 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2012-05-19 14:34:00 +02:00
|
|
|
|
2012-08-17 03:09:40 +02:00
|
|
|
.if ${PORT_OPTIONS:M8K}
|
2012-05-19 14:34:00 +02:00
|
|
|
DISTFILES+= freeswitch-sounds-music-8000-${DISTVERSION}${EXTRACT_SUFX}
|
2010-06-12 00:30:12 +02:00
|
|
|
.endif
|
2012-05-19 14:34:00 +02:00
|
|
|
|
2012-08-17 03:09:40 +02:00
|
|
|
.if ${PORT_OPTIONS:M16K}
|
2012-05-19 14:34:00 +02:00
|
|
|
DISTFILES+= freeswitch-sounds-music-16000-${DISTVERSION}${EXTRACT_SUFX}
|
2010-06-12 00:30:12 +02:00
|
|
|
.endif
|
2012-05-19 14:34:00 +02:00
|
|
|
|
2012-08-17 03:09:40 +02:00
|
|
|
.if ${PORT_OPTIONS:M32K}
|
2012-05-19 14:34:00 +02:00
|
|
|
DISTFILES+= freeswitch-sounds-music-32000-${DISTVERSION}${EXTRACT_SUFX}
|
2010-06-12 00:30:12 +02:00
|
|
|
.endif
|
2012-05-19 14:34:00 +02:00
|
|
|
|
2012-08-17 03:09:40 +02:00
|
|
|
.if ${PORT_OPTIONS:M48K}
|
2012-05-19 14:34:00 +02:00
|
|
|
DISTFILES+= freeswitch-sounds-music-48000-${DISTVERSION}${EXTRACT_SUFX}
|
2010-06-12 00:30:12 +02:00
|
|
|
.endif
|
|
|
|
|
2012-08-17 03:09:40 +02:00
|
|
|
.for opt in ${ALL_OPTIONS}
|
2012-09-24 23:21:37 +02:00
|
|
|
.if ${PORT_OPTIONS:M${opt}}
|
2012-08-17 03:09:40 +02:00
|
|
|
PLIST_SUB+= ${opt}=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ${opt}="@comment "
|
|
|
|
.endif
|
2010-08-17 18:17:28 +02:00
|
|
|
.endfor
|
2010-06-12 00:30:12 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${ECHO_MSG} "Installing files..."
|
2012-05-19 14:34:00 +02:00
|
|
|
${MKDIR} ${DATADIR}/sounds
|
|
|
|
${TOUCH} ${DATADIR}/sounds/.freeswitch-music
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR}/sounds/)
|
2010-06-12 00:30:12 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|