ports/166205: audio/freeswitch-sounds update
Richard Neese
r.neese at gmail.com
Sat Mar 17 16:50:13 UTC 2012
>Number: 166205
>Category: ports
>Synopsis: audio/freeswitch-sounds update
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Mar 17 16:50:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Richard Neese
>Release: FreeBSD 9.0-RELEASE
>Organization:
>Environment:
FreeBSD ports.freebsd.org 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
updated sounds from 1.0.16 to 1.0.18 and added french sounds to the build.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/freeswitch-sounds/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 15 Mar 2012 18:19:06 -0000 1.6
+++ Makefile 15 Mar 2012 22:12:21 -0000
@@ -5,10 +5,11 @@
# $FreeBSD: ports/audio/freeswitch-sounds/Makefile,v 1.6 2012/03/15 18:19:06 jgh Exp $
#
-PORTNAME= freeswitch-sounds
-PORTVERSION= 1.0.16
+PORTNAME= freeswitch
+DISTVERSION= 1.0.18
CATEGORIES= audio
MASTER_SITES= http://files.freeswitch.org/
+PKGNAMESUFFIX= -sounds
DIST_SUBDIR= freeswitch-sounds
MAINTAINER= r.neese at gmail.com
@@ -17,16 +18,15 @@
PLIST= ${WRKDIR}/plist
NO_WRKSUBDIR= yes
-BASE_PORTNAME= freeswitch
-
-OPTIONS= DOWNLOAD "Don't resample, download all." on \
- 8K "Compile sounds for 8K" on \
- 16K "Compile sounds for 16K" on \
- 32K "Compile sounds for 32K" on \
- 48K "Compile sounds for 48K" on \
- ENGLISH "Compile English Language Sounds" on \
- RUSSIAN "Compile Russian Language Sounds" off
-
+OPTIONS= DOWNLOAD "Don't resample, download all." off \
+ 8K "Compile sounds for 8K" on \
+ 16K "Compile sounds for 16K" on \
+ 32K "Compile sounds for 32K" on \
+ 48K "Compile sounds for 48K" on \
+ ENGLISH "Compile US English Language Sounds" on \
+ FRENCH "Compile French Canadian Language Sounds" off \
+ RUSSIAN "Compile Russian Language Sounds" off
+
.include <bsd.port.options.mk>
.if ! defined(WITH_DOWNLOAD)
@@ -49,24 +49,35 @@
.if defined(WITH_ENGLISH)
.if defined(WITH_DOWNLOAD)
.for rate in ${BITRATES}
-DISTFILES+= ${PORTNAME}-en-us-callie-${rate}-${PORTVERSION}${EXTRACT_SUFX}
+DISTFILES+= ${PORTNAME}${PKGNAMESUFFIX}-en-us-callie-${rate}-${DISTVERSION}${EXTRACT_SUFX}
.endfor
.else
-DISTFILES+= ${PORTNAME}-en-us-callie-48000-${PORTVERSION}${EXTRACT_SUFX}
+DISTFILES+= ${PORTNAME}${PKGNAMESUFFIX}-en-us-callie-48000-${DISTVERSION}${EXTRACT_SUFX}
+.endif
+.endif
+.if defined(WITH_FRENCH)
+.if defined(WITH_DOWNLOAD)
+.for rate in ${BITRATES}
+DISTFILES+= ${PORTNAME}${PKGNAMESUFFIX}-fr-ca-june-${rate}-1.0.14${EXTRACT_SUFX}
+.endfor
+.else
+DISTFILES+= ${PORTNAME}${PKGNAMESUFFIX}-fr-ca-june-48000-1.0.14${EXTRACT_SUFX}
.endif
.endif
.if defined(WITH_RUSSIAN)
.if defined(WITH_DOWNLOAD)
.for rate in ${BITRATES}
-DISTFILES+= ${PORTNAME}-ru-RU-elena-${rate}-1.0.12${EXTRACT_SUFX}
+DISTFILES+= ${PORTNAME}${PKGNAMESUFFIX}-ru-RU-elena-${rate}-1.0.12${EXTRACT_SUFX}
.endfor
.else
-DISTFILES+= ${PORTNAME}-ru-RU-elena-48000-1.0.12${EXTRACT_SUFX}
+DISTFILES+= ${PORTNAME}${PKGNAMESUFFIX}-ru-RU-elena-48000-1.0.12${EXTRACT_SUFX}
.endif
.endif
-.if ! defined(WITH_ENGLISH) && ! defined(WITH_RUSSIAN)
-BROKEN= you must build with either English, Russian, or both
+
+.if ! defined(WITH_ENGLISH) && ! defined(WITH_FRENCH) && ! defined(WITH_RUSSIAN)
+BROKEN= you must build with atleast English or French or Russian,
.endif
+
.if ! defined(WITH_8K) && ! defined(WITH_16K) && ! defined(WITH_32K) && \
! defined(WITH_48K)
BROKEN= you must build with at least one of 8K, 16K, 32K, or 48K sounds
@@ -106,6 +117,32 @@
done; \
${TOUCH} ${WRKDIR}/ENGLISH.done; \
fi
+
+ if [ "${WITH_FRENCH}" != "" -a ! -e "${WRKDIR}/FRENCH.done" ]; then \
+ ${ECHO_MSG} "====> French selected."; \
+ for rate in ${BITRATES}; do \
+ ${ECHO_MSG} "WORKING on $${rate}!"; \
+ for dir in `ls ${WRKSRC}/fr/ca/june/`; do \
+ ${MKDIR} ${WRKDIR}/tmp/fr/ca/june/$${dir}/$${rate}/; \
+ for filename in `ls ${WRKSRC}/fr/ca/june/$${dir}/48000`; do \
+ echo "share/${BASE_PORTNAME}/sounds/fr/ca/june/$${dir}/$${rate}/$${filename}" >> ${PLIST}; \
+ if [ ! -e "${WRKDIR}/tmp/fr/ca/june/$${dir}/$${rate}/$${filename}" ]; then \
+ if [ "${WITH_DOWNLOAD}" = "true" ]; then \
+ ${ECHO} -n "."; \
+ ${MV} ${WRKSRC}/fr/ca/june/$${dir}/$${rate}/$${filename} ${WRKDIR}/tmp/fr/ca/june/$${dir}/$${rate}/$${filename} ; \
+ else \
+ ${ECHO} -n "."; \
+ ${LOCALBASE}/bin/sox -v ${SCALE} "${WRKSRC}/fr/ca/june/$${dir}/48000/$${filename}" -r $${rate} -c 1 "${WRKDIR}/tmp/fr/ca/$${dir}/$${rate}/$${filename}"; \
+ fi \
+ fi \
+ done; \
+ ${ECHO} ""; \
+ echo "@rmdir share/${BASE_PORTNAME}/sounds/fr/ca/june/$${dir}/$${rate}/" >> ${PLIST}; \
+ done; \
+ done; \
+ ${TOUCH} ${WRKDIR}/FRENCH.done; \
+ fi
+
if [ "${WITH_RUSSIAN}" != "" -a ! -e "${WRKDIR}/RUSSIAN.done" ]; then \
${ECHO_MSG} "====> Russian selected."; \
for rate in ${BITRATES}; do \
@@ -134,17 +171,17 @@
pre-install:
@${RM} -rf ${PLIST}
@cd ${WRKDIR}/tmp && ${FIND} * ! -type d | ${SORT} >> ${PLIST}; \
- ${ECHO} .freeswitch-sounds >> ${PLIST}; \
- ${SED} -i "" -e "s:^:share/${BASE_PORTNAME}/sounds/:" ${PLIST}; \
- ${FIND} * -type d ! -empty | ${SORT} -r | ${SED} -e "s:^:@dirrm share/${BASE_PORTNAME}/sounds/:" | ${GREP} / >> ${PLIST}; \
- ${ECHO} "@dirrmtry share/${BASE_PORTNAME}/sounds" >> ${PLIST}; \
- ${ECHO} "@dirrmtry share/${BASE_PORTNAME}" >> ${PLIST};
- ${CHMOD} -R 0755 ${WRKDIR}/tmp/
+ ${ECHO} .${PORTNAME}${PKGNAMESUFFIX} >> ${PLIST}; \
+ ${SED} -i "" -e "s:^:share/${PORTNAME}/sounds/:" ${PLIST}; \
+ ${FIND} * -type d ! -empty | ${SORT} -r | ${SED} -e "s:^:@dirrm share/${PORTNAME}/sounds/:" | ${GREP} / >> ${PLIST}; \
+ ${ECHO} "@dirrmtry share/${PORTNAME}/sounds" >> ${PLIST}; \
+ ${ECHO} "@dirrmtry share/${PORTNAME}" >> ${PLIST};
+ ${CHMOD} -R 0775 ${WRKDIR}/tmp/
do-install:
@${ECHO_MSG} "Installing files..."
- ${MKDIR} ${PREFIX}/share/${BASE_PORTNAME}/sounds
- ${TOUCH} ${PREFIX}/share/${BASE_PORTNAME}/sounds/.freeswitch-sounds
- (cd ${WRKDIR}/tmp/ &&${COPYTREE_SHARE} \* ${PREFIX}/share/${BASE_PORTNAME}/sounds/)
+ ${MKDIR} ${PREFIX}/share/${PORTNAME}/sounds
+ ${TOUCH} ${PREFIX}/share/${PORTNAME}/sounds/.freeswitch-sounds
+ (cd ${WRKDIR}/tmp/ &&${COPYTREE_SHARE} \* ${PREFIX}/share/${PORTNAME}/sounds/)
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/audio/freeswitch-sounds/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo 4 Oct 2011 19:01:54 -0000 1.3
+++ distinfo 15 Mar 2012 22:12:21 -0000
@@ -1,11 +1,19 @@
-SHA256 (freeswitch-sounds/freeswitch-sounds-en-us-callie-8000-1.0.16.tar.gz) = c88c360f4cf234597ba7ecbb9693be8ed42b31882ffc7ba02d10d180b2369899
-SIZE (freeswitch-sounds/freeswitch-sounds-en-us-callie-8000-1.0.16.tar.gz) = 12910395
-SHA256 (freeswitch-sounds/freeswitch-sounds-en-us-callie-16000-1.0.16.tar.gz) = bf0e3f38ff2e1fd3ba0414f6983ed7ef9871bc86c75775235f6077471a5e8ea1
-SIZE (freeswitch-sounds/freeswitch-sounds-en-us-callie-16000-1.0.16.tar.gz) = 25739233
-SHA256 (freeswitch-sounds/freeswitch-sounds-en-us-callie-32000-1.0.16.tar.gz) = 63eb497b86fa5e6da353970cdf76da17df43f246d3ea9979fa76083eacc9a449
-SIZE (freeswitch-sounds/freeswitch-sounds-en-us-callie-32000-1.0.16.tar.gz) = 50567956
-SHA256 (freeswitch-sounds/freeswitch-sounds-en-us-callie-48000-1.0.16.tar.gz) = 51d84024d6091c13521fea4397e5d8d21c087770aa4984308d7157a10b034505
-SIZE (freeswitch-sounds/freeswitch-sounds-en-us-callie-48000-1.0.16.tar.gz) = 87130408
+SHA256 (freeswitch-sounds/freeswitch-sounds-en-us-callie-8000-1.0.18.tar.gz) = 131b87a4c190d40ce3c5a67c2d2096158f11e85a1659eeb2bbf38e08bf7be812
+SIZE (freeswitch-sounds/freeswitch-sounds-en-us-callie-8000-1.0.18.tar.gz) = 14180974
+SHA256 (freeswitch-sounds/freeswitch-sounds-en-us-callie-16000-1.0.18.tar.gz) = c1c6d4405055db31eeb47d3a90ffaf9fb5ca5eecc962749f1409780223fd761a
+SIZE (freeswitch-sounds/freeswitch-sounds-en-us-callie-16000-1.0.18.tar.gz) = 28161362
+SHA256 (freeswitch-sounds/freeswitch-sounds-en-us-callie-32000-1.0.18.tar.gz) = cbd55b6355829bb559741700d2a310718a95800f8cf8b229e1d15eb99b94d3a4
+SIZE (freeswitch-sounds/freeswitch-sounds-en-us-callie-32000-1.0.18.tar.gz) = 55081458
+SHA256 (freeswitch-sounds/freeswitch-sounds-en-us-callie-48000-1.0.18.tar.gz) = a060fc118090b679408f8e712af9e556816e0d7f4c59422f7504066c693d71e9
+SIZE (freeswitch-sounds/freeswitch-sounds-en-us-callie-48000-1.0.18.tar.gz) = 80491982
+SHA256 (freeswitch-sounds/freeswitch-sounds-fr-ca-june-8000-1.0.14.tar.gz) = 2a10fdae75cdd6cbb12c5e99a854b01433221ebe99c49d6db024164fdc72d252
+SIZE (freeswitch-sounds/freeswitch-sounds-fr-ca-june-8000-1.0.14.tar.gz) = 9203881
+SHA256 (freeswitch-sounds/freeswitch-sounds-fr-ca-june-16000-1.0.14.tar.gz) = 0dc4351534547994daf7b3bfdbb8df9b4bf75e8e4f576819468e6c708578b0a2
+SIZE (freeswitch-sounds/freeswitch-sounds-fr-ca-june-16000-1.0.14.tar.gz) = 18198669
+SHA256 (freeswitch-sounds/freeswitch-sounds-fr-ca-june-32000-1.0.14.tar.gz) = efb3842a638dcfa9376f602b80ef00416bfa4fc5922f05aea772009690a6792f
+SIZE (freeswitch-sounds/freeswitch-sounds-fr-ca-june-32000-1.0.14.tar.gz) = 35601264
+SHA256 (freeswitch-sounds/freeswitch-sounds-fr-ca-june-48000-1.0.14.tar.gz) = a53f53604b38e5313637cb057f3f61e48bea335b312ad822165dde9bc8cfc6ff
+SIZE (freeswitch-sounds/freeswitch-sounds-fr-ca-june-48000-1.0.14.tar.gz) = 52402291
SHA256 (freeswitch-sounds/freeswitch-sounds-ru-RU-elena-8000-1.0.12.tar.gz) = 44db35574216af8ccbb48a7f1a08065df253adb4cebed8bc7ece7d0a4da920e7
SIZE (freeswitch-sounds/freeswitch-sounds-ru-RU-elena-8000-1.0.12.tar.gz) = 9115259
SHA256 (freeswitch-sounds/freeswitch-sounds-ru-RU-elena-16000-1.0.12.tar.gz) = aef0d3dc7fed657bc9c9d5ebbb458bc28e55c62af0087623ad060f1b4de3c74c
Index: pkg-descr
===================================================================
RCS file: /home/ncvs/ports/audio/freeswitch-sounds/pkg-descr,v
retrieving revision 1.1
diff -u -r1.1 pkg-descr
--- pkg-descr 11 Jun 2010 22:33:44 -0000 1.1
+++ pkg-descr 15 Mar 2012 22:12:21 -0000
@@ -1 +1 @@
-FreeSwitch 48k English US Sounds
+FreeSwitch Sounds for English Russian and French Canadian
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list