summaryrefslogtreecommitdiffstats
path: root/audio/mbrola
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2003-11-05 14:12:24 +0000
committertrevor <trevor@FreeBSD.org>2003-11-05 14:12:24 +0000
commite1b374c56b895fdf580dd8ad46637c14e990ecdd (patch)
treec10e66c5417680aa96da381ead31576816ae1cc7 /audio/mbrola
parent7c4850149254f8ffba301867e0a490161b77d351 (diff)
downloadFreeBSD-ports-e1b374c56b895fdf580dd8ad46637c14e990ecdd.zip
FreeBSD-ports-e1b374c56b895fdf580dd8ad46637c14e990ecdd.tar.gz
MBROLA reorganization: move voices out of mbrola port into new
mbrolavox port; add new linux-mbrola port for alpha, i386, ppc and sparc64.
Diffstat (limited to 'audio/mbrola')
-rw-r--r--audio/mbrola/Makefile81
-rw-r--r--audio/mbrola/distinfo60
-rw-r--r--audio/mbrola/pkg-descr8
-rw-r--r--audio/mbrola/scripts/configure100
4 files changed, 42 insertions, 207 deletions
diff --git a/audio/mbrola/Makefile b/audio/mbrola/Makefile
index 206abb12..f8fd637 100644
--- a/audio/mbrola/Makefile
+++ b/audio/mbrola/Makefile
@@ -8,72 +8,63 @@
PORTNAME= mbrola
PORTVERSION= 3.0.1
CATEGORIES= audio accessibility
-MASTER_SITES= ftp://tcts.fpms.ac.be/pub/mbrola/freebsd/
+MASTER_SITES?= ftp://tcts.fpms.ac.be/pub/mbrola/freebsd/
DISTNAME= mbr301h
-DIST_SUBDIR= mbrola
+EXTRACT_SUFX= .zip
+DIST_SUBDIR?= mbrola-freebsd
MAINTAINER= trevor@FreeBSD.org
COMMENT= MBROLA voice synthesizer
+.include <bsd.port.pre.mk>
+
+.if !defined(USE_LINUX)
LIB_DEPENDS= c.3:${PORTSDIR}/misc/compat3x
+.endif
+RUN_DEPENDS+= ${PREFIX}/share/mbrolavox:${PORTSDIR}/audio/mbrolavox
+CONFLICTS?= linux-mbrola-*
NO_BUILD= yes
-ONLY_FOR_ARCHS= i386
+ONLY_FOR_ARCHS?=i386
RESTRICTED= "for non-commercial, non-military applications only"
USE_ZIP= yes
WRKSRC= ${WRKDIR}/mbr301h
PLIST= ${WRKDIR}/plist
-.include <bsd.port.pre.mk>
-
-.if !defined(BATCH)
-IS_INTERACTIVE= yes
-.endif
-
-pre-everything::
- ${MKDIR} ${WRKDIR}
-.if !exists(${WRKDIRPREFIX}${.CURDIR}/work/voices.conf)
-.if !defined(BATCH)
- ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
-.endif
-.endif
-PATCHILES?= us1.zip
-
-.if exists(${WRKDIRPREFIX}${.CURDIR}/work/voices.conf)
-PATCHFILES!=${CAT} ${WRKDIRPREFIX}${.CURDIR}/work/voices.conf
-PATCHDIRS!=${CAT} ${WRKDIRPREFIX}${.CURDIR}/work/fetchdirs.conf
-.endif
-.for ii in ${PATCHDIRS}
-PATCH_SITES+= http://www.festvox.org/mbrola/dba/${ii}/ \
- http://mambo.ucsc.edu/psl/mbrola/dba/${ii}/ \
- ftp://ftp.loria.fr/pub/pc/mbrpsola/${ii}/ \
- ftp://tcts.fpms.ac.be/pub/mbrola/VOICES/${ii}/
-.endfor
-
do-extract:
-.for ii in ${DISTNAME}.zip ${PATCHFILES}
- @unzip -qo ${DISTDIR}/${DIST_SUBDIR}/${ii} -d ${WRKSRC}
-.endfor
+ @${MKDIR} ${WRKSRC}
+ @unzip -qo ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}.zip -d ${WRKSRC}
do-patch:
@${RM} -f ${WRKSRC}/mbrola-FreeBSD-i386-aout
pre-install:
@${ECHO_CMD} bin/mbrola > ${PLIST}
- @cd ${WRKSRC}; \
- for ii in `${FIND} * \! -type d | sort`; do \
- ${ECHO_CMD} share/mbrola/$${ii} >> ${PLIST}; \
- done ; \
- for ii in `${FIND} -d * -type d`; do \
- ${ECHO_CMD} @dirrm share/mbrola/$${ii} >> ${PLIST}; \
- done
- @${ECHO_CMD} @dirrm share/mbrola >> ${PLIST}
+.if !defined(NOPORTDOCS)
+ @${ECHO_CMD} share/doc/mbrola/readme.txt >> ${PLIST}
+ @${ECHO_CMD} @dirrm share/doc/mbrola >> ${PLIST}
+.endif
do-install:
- @${MKDIR} ${DATADIR}
- @cd ${WRKSRC} && ${FIND} * | cpio -dlmp ${DATADIR}
- @${CHMOD} +x ${DATADIR}/mbrola*
- @${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
- @${LN} -s ${DATADIR}/mbrola-FreeBSD-i386-elf ${PREFIX}/bin/mbrola
+.if defined(USE_LINUX)
+.if (${MACHINE_ARCH} == "alpha")
+ @${INSTALL_PROGRAM} ${WRKSRC}/mbrola-linux-alpha ${PREFIX}/bin/mbrola
+.elseif (${MACHINE_ARCH} == "i386")
+ @${INSTALL_PROGRAM} ${WRKSRC}/mbrola-linux-i386 ${PREFIX}/bin/mbrola
+.elseif (${MACHINE_ARCH} == "ppc")
+ @${INSTALL_PROGRAM} ${WRKSRC}/mbrola206a-linux-ppc ${PREFIX}/bin/mbrola
+.elseif (${MACHINE_ARCH} == "sparc64")
+ @${INSTALL_PROGRAM} ${WRKSRC}/mbrola-SuSElinux-ultra1.dat \
+ ${PREFIX}/bin/mbrola
+.endif
+.else
+ @${INSTALL_PROGRAM} ${WRKSRC}/mbrola-FreeBSD-i386-elf \
+ ${PREFIX}/bin/mbrola
+.endif # defined(USE_LINUX)
+ @${CHMOD} +x ${PREFIX}/bin/mbrola
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
+.endif
.include <bsd.port.post.mk>
diff --git a/audio/mbrola/distinfo b/audio/mbrola/distinfo
index 26c1d5d..6e490e9 100644
--- a/audio/mbrola/distinfo
+++ b/audio/mbrola/distinfo
@@ -1,60 +1,2 @@
$FreeBSD$
-MD5 (mbrola/mbr301h.zip) = aec8613bed29e795a676f3576348584c
-MD5 (mbrola/ar1-981103.zip) = 2e7012597e1cec0072f177c369fc3e38
-MD5 (mbrola/ar2-001015.zip) = e6fe45cdeb1539f3ca882edc8e7915d3
-MD5 (mbrola/br1-971105.zip) = c027c1b1bc08b247bc9267b3cb44cc2f
-MD5 (mbrola/br2-000119.zip) = 7235536b1dd7470fed9b226464229ef5
-MD5 (mbrola/br3-000119.zip) = 1ef7df34d66e5b87a97057199d0ec80a
-MD5 (mbrola/bz1-980116.zip) = c5aa8870c07fc07a0c2282c6b5c36505
-MD5 (mbrola/ca1.zip) = 79b43fb8f9f6ef3ff0c8d63a2d5223b9
-MD5 (mbrola/cr1-981028.zip) = c2a9be187e0c1d6dec17af909f099fdb
-MD5 (mbrola/cz1-991020.zip) = e9ffbbc4411e247d505e760773d11b31
-MD5 (mbrola/cz2-001009.zip) = e9d28a9ec9ff4e6e43fa8bb3bc1577c3
-MD5 (mbrola/de1-980227.zip) = ff9f77790ee1d0e11dac724fc3511d5d
-MD5 (mbrola/de2-990106.zip) = b493d8b258d424ee9159c284b5f00c21
-MD5 (mbrola/de3-000307.zip) = 05cd5d9da3c3fd97bba02a2f3954d133
-MD5 (mbrola/de4.zip) = 3b67ba970415d509c8b3eeb9bae87023
-MD5 (mbrola/de5.zip) = 5f7910b8c41ada49b737875322668049
-MD5 (mbrola/de6.zip) = 989d86647c6099a3b3faceb1999efd18
-MD5 (mbrola/ee1.zip) = 38377e171c4a3d3d30e9b214798d3d8c
-MD5 (mbrola/en1-980910.zip) = 725b1fb0af1f6d62414d786de6eaa143
-MD5 (mbrola/es1-980610.zip) = d3bb71fb1012fe972b1cabe2d1582c04
-MD5 (mbrola/es2-989825.zip) = a42622fb55bc1401e5ad7409ece9c317
-MD5 (mbrola/es4.zip) = ef667c08ad5ae050f37e321072969ee6
-MD5 (mbrola/fr1-990204.zip) = 6031c6a97d2a7344e7ae42de294ae00b
-MD5 (mbrola/fr2-980806.zip) = 1488ea8ef76e97f1cf8af67963accf42
-MD5 (mbrola/fr3-990324.zip) = bd70729fa1ad93f06dda7a768a6466d1
-MD5 (mbrola/fr4-990521.zip) = 934c3dda73c9d0e782a646194c415425
-MD5 (mbrola/fr5-991020.zip) = 2ebf4105702ab2aa037491338ed05ebb
-MD5 (mbrola/fr6-010330.zip) = ef58ccab7da88cbe582062a9468a4fb8
-MD5 (mbrola/fr7-010330.zip) = 2a0c06030dda4e1edcb0e972ede092b7
-MD5 (mbrola/gr1-990610.zip) = 2a066550b3caa8038230bf1a335f073d
-MD5 (mbrola/gr2-010521.zip) = 30f550cc01c1c1567ce4b12b4244649a
-MD5 (mbrola/hb1-000308.zip) = c702dd7210fdd8225bf79456839c2d6f
-MD5 (mbrola/hn1-990923.zip) = 29aa2ad017882c9791db704801409a24
-MD5 (mbrola/id1-001010.zip) = 33cd63ec6d231ac91b8156485a381207
-MD5 (mbrola/in1-010206.zip) = a86eaae6a2fca6c8282339c5780d7373
-MD5 (mbrola/in2-010202.zip) = fdba924b95353c0bdfa3aa4abec30a6b
-MD5 (mbrola/it1-010213.zip) = 8a356360b8f6f6c65597c50d237836db
-MD5 (mbrola/it2-010406.zip) = 4203134bfbc7002278e54cf4456f1b0a
-MD5 (mbrola/it3-010304.zip) = fed63cdf4da274966646bdac1bd6e630
-MD5 (mbrola/it4-010926.zip) = d70ddbda1085990290e98bf745db1536
-MD5 (mbrola/jp1-000314.zip) = bec254d4a5427ec5ea492d801a69be28
-MD5 (mbrola/jp2-270202.zip) = acc00ddde43ece3286c413a08c9b390c
-MD5 (mbrola/jp3.zip) = 8e01d49d5f51d02e16638f1477f76ecc
-MD5 (mbrola/mx1-990208.zip) = 911b6e6fc6392095b074ed17f48bc7a9
-MD5 (mbrola/nl1-980609.zip) = 711ccc96832ada58a0482ef4441a1507
-MD5 (mbrola/nl2-990507.zip) = 2e55bcec092a4d760badd5a6eb421d43
-MD5 (mbrola/nl3-001013.zip) = c5a70517532f8004ff177b0d36528762
-MD5 (mbrola/nz1-000911.zip) = 9c9ac4a5295fd8a9eb16f0723545a97b
-MD5 (mbrola/pl1.zip) = 2e67625c2d10da642466f6290bdecb8d
-MD5 (mbrola/pt1-000509.zip) = 99f6f1299403ba85438a883470aa0b02
-MD5 (mbrola/ro1-980317.zip) = 6c592bbeef3e2828248b2682cb351239
-MD5 (mbrola/sw1-980623.zip) = 520793ee2c81a7ab9d222f2982e620a0
-MD5 (mbrola/sw2-140102.zip) = 889d1be2915850aab74f0de1cbccbf0d
-MD5 (mbrola/tl1.zip) = 67eb7b80bb702a3b2adc4205d3d86afb
-MD5 (mbrola/tr1-010209.zip) = 79fabdd56d0e361941d98a2b40fc4631
-MD5 (mbrola/tr2-010212.zip) = 263eadb96341b1c7b672b502cf78eabf
-MD5 (mbrola/us1-980512.zip) = 1b21560b45c5566cf4672e8eb7393490
-MD5 (mbrola/us2-980812.zip) = 185045d55456694f4f104173e43bbb89
-MD5 (mbrola/us3-990208.zip) = 544840204a6e120cef67176769629ecb
+MD5 (mbrola-freebsd/mbr301h.zip) = aec8613bed29e795a676f3576348584c
diff --git a/audio/mbrola/pkg-descr b/audio/mbrola/pkg-descr
index 8568923..7b35d3e 100644
--- a/audio/mbrola/pkg-descr
+++ b/audio/mbrola/pkg-descr
@@ -1,5 +1,7 @@
-This is an i386-only binary port of the MBROLA speech synthesizer,
-which uses "a time-domain algorithm with outstanding diphone smoothing
-capabilities."
+This is a binary port of the MBROLA speech synthesizer, which uses
+"a time-domain algorithm with outstanding diphone smoothing
+capabilities." The audio/mbrola port is for i386 only and requires
+FreeBSD 3.x compatibility; the linux-mbrola port is for alpha, i386,
+ppc or sparc64 and requires Linux compatibility.
WWW: http://tcts.fpms.ac.be/synthesis
diff --git a/audio/mbrola/scripts/configure b/audio/mbrola/scripts/configure
deleted file mode 100644
index 964a1d8..0000000
--- a/audio/mbrola/scripts/configure
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-
-echo ${WRKDIR}/voices.conf
-if [ -f ${WRKDIR}/voices.conf ]; then
- exit
-fi
-
-tempfile=`/usr/bin/mktemp -t checklist`
-
-if [ -z "${BATCH}" ]; then
-
-/usr/bin/dialog --title "MBROLA voice selection" --clear \
- --checklist "\n\
-Choose voices to download and install. \n\
-Press the space bar to toggle selections." -1 -1 18 \
-us1-980512.zip "American English female (6.8 MB) by Babel Technology" OFF \
-us2-980812.zip "American English male (6.3 MB) by Babel Technology" OFF \
-us3-990208.zip "American English male (6.1 MB) by Mike Macon" OFF \
-ar1-981103.zip "Arabic male (5.1 MB) by Faculte Polytech. de Mons" OFF \
-ar2-001015.zip "Arabic male (5.6 MB) by Abdel Muez Abukhalaf" OFF \
-br1-971105.zip "Brazilian Portuguese male (5.0 MB) by Denis R. Costa" OFF \
-br2-000119.zip "Brazilian Portuguese male (8.3 MB) by Denis R. Costa" OFF \
-br3-000119.zip "Brazilian Portuguese male (8.6 MB) by Denis R. Costa" OFF \
-bz1-980116.zip "Breton female (25.0 MB) by Jean Pierre Messager" OFF \
-en1-980910.zip "British English male (5.7 MB) by Alan V. Black" OFF \
-ca1.zip "Canadian French male (12.8 MB) by Vincent Arnaud" OFF \
-cr1-981028.zip "Croation male (2.9 MB) by Juraj Bakran" OFF \
-cz1-991020.zip "Czech female (2.2 MB) by Mikulas Pinos" OFF \
-cz2-001009.zip "Czech male (8 MB) by Mikulas Pinos" OFF \
-nl1-980609.zip "Dutch male (0.4 MB) by Arthur Dirksen" OFF \
-nl2-990507.zip "Dutch male (13 MB) by Arthur Dirksen" OFF \
-nl3-001013.zip "Dutch female (8.6 MB) by Raymond Veldhuis" OFF \
-nz1-000911.zip "Maori male (2.3 MB) by Mark R. Laws" OFF \
-ee1.zip "Estonian male (9.2 MB) by Meelis Mihkla" OFF \
-pt1-000509.zip "Portuguese female (7.8 MB) by Babel Technology" OFF \
-fr1-990204.zip "French male (4.4 MB) by Faculte Polytech. de Mons" OFF \
-fr2-980806.zip "French female (4.8 MB) by Celine Egea" OFF \
-fr3-990324.zip "French male (4.8 MB) by Babel Technology" OFF \
-fr4-990521.zip "French female (5.4 MB) by Babel Technology" OFF \
-fr5-991020.zip "French Belgian (4.8 MB) by Faculte Polytech. de Mons" OFF \
-fr6-010330.zip "French male (4.4 MB) by Faculte Polytech. de Mons" OFF \
-fr7-010330.zip "French Belgian (3.7 MB) by Faculte Polytech. de Mons" OFF \
-de1-980227.zip "German female (9.9 MB) by Fred Englert" OFF \
-de2-990106.zip "German male (9.3 MB) by ATIP" OFF \
-de3-000307.zip "German female (10.4 MB) by ATIP" OFF \
-de4.zip "German male (18.6 MB) by University of Stuttgart" OFF \
-de5.zip "German female (13.3 MB) by ATIP" OFF \
-de6.zip "German male (48.5 MB) by Saarland University" OFF \
-gr1-990610.zip "Greek male (1.6 MB) by George Sergiadis" OFF \
-gr2-010521.zip "Greek male (5.6 MB) by ]Gerasimos Xydas" OFF \
-hb1-000308.zip "Hebrew male (3.4 MB) by Yoram Meron" OFF \
-id1-001010.zip "Indonesian male (4 MB) by Arry Arman" OFF \
-in1-010206.zip "Hindi male (3.6 MB) by Amin Charaniya" OFF \
-in2-010202.zip "Hindi female (3.7 MB) by Amin Charaniya" OFF \
-it1-010213.zip "Italian male (5.2 MB) by Claudia Citta" OFF \
-it2-010406.zip "Italian female (5.2 MB) by Claudia Citta" OFF \
-it3-010304.zip "Italian male (5.1 MB) by Piero Cosi" OFF \
-it4-010926.zip "Italian female (4.9 MB) by ITC-irst" OFF \
-hn1-990923.zip "Korean male (9.9 MB) by Kyongsok Gim" OFF \
-jp1-000314.zip "Japanese male (1.8 MB) by Yoram Meron" OFF \
-jp2-270202.zip "Japanese female (5.6 MB) by Tomohisa Tachiki" OFF \
-jp3.zip "Japanese female (1.7 MB) by Yoram Meron" OFF \
-pl1.zip "Polish female (4.0 MB) by PJWSTK" OFF \
-es1-980610.zip "Spanish male (2.1 MB) by Alistair Conkie" OFF \
-es2-989825.zip "Spanish male (5.1 MB) by TCC Communications Corp." OFF \
-es4.zip "Spanish male (2.8 MB) by Universidad de Valladolid" OFF \
-mx1-990208.zip "Spanish Mexican male (1.8 MB) by OGI" OFF \
-ro1-980317.zip "Romanian male (2.9 MB) by Marian Boldea" OFF \
-sw1-980623.zip "Swedish male (9.3 MB) by Marcus Filipsson" OFF \
-sw2-140102.zip "Swedish female (5.6 MB) by Adina Svensson" OFF \
-tl1.zip "Telugu female (6.9 MB) by Kalpana Reddy KVK" OFF \
-tr1-010209.zip "Turkish male (3.7 MB) by Faculte Polytech. de Mons" OFF \
-tr2-010212.zip "Turkish female (4.3 MB) by Faculte Polytech. de Mons" OFF \
-2> /tmp/checklist.tmp.$$
-
-retval=$?
-
-choice=`cat /tmp/checklist.tmp.$$`
-rm -f /tmp/checklist.tmp.$$
-
-case $retval in
- 0) if [ -z "$choice" ]; then
- echo "Nothing selected"
- exit 1;
- fi
- ;;
- 1) echo "Cancel pressed."
- exit 1
- ;;
-esac
-
-echo $choice | tr ' ' '\012' | tr -d \" > ${WRKDIR}/voices.conf
-fi
-cut -c1-3 < ${WRKDIR}/voices.conf > ${WRKDIR}/fetchdirs.conf
-
-echo "* Your choices are saved. You must run the \"make\" command again to"
-echo "* complete the build. Ignore the \"Error code 1\" below."
-exit 1
OpenPOWER on IntegriCloud