diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2006-04-29 04:39:29 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2006-04-29 04:39:29 +0800 |
commit | c5657aaff64b1d919a538a1cd138cb025339b364 (patch) | |
tree | cc6ad9c1d66ee0f0b64e01333101a538ed4fca3a /audio | |
parent | 9c3f7d8029a30515872c5e4700215c0f05e0c7bc (diff) | |
download | freebsd-ports-gnome-c5657aaff64b1d919a538a1cd138cb025339b364.tar.gz freebsd-ports-gnome-c5657aaff64b1d919a538a1cd138cb025339b364.tar.zst freebsd-ports-gnome-c5657aaff64b1d919a538a1cd138cb025339b364.zip |
Add espeak 1.07, a software speech synthesizer.
PR: 94928
Submitted by: Nicola Vitale <nivit@email.it>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/espeak/Makefile | 58 | ||||
-rw-r--r-- | audio/espeak/distinfo | 3 | ||||
-rw-r--r-- | audio/espeak/files/patch-src-Makefile | 20 | ||||
-rw-r--r-- | audio/espeak/files/patch-src-speak.cpp | 12 | ||||
-rw-r--r-- | audio/espeak/pkg-descr | 9 | ||||
-rw-r--r-- | audio/espeak/pkg-plist | 51 |
7 files changed, 154 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index d9fc1133dca6..0b76450aa060 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -105,6 +105,7 @@ SUBDIR += epos-devel SUBDIR += ermixer SUBDIR += esound + SUBDIR += espeak SUBDIR += etktab SUBDIR += extace SUBDIR += ezstream diff --git a/audio/espeak/Makefile b/audio/espeak/Makefile new file mode 100644 index 000000000000..5ff47fdaa18e --- /dev/null +++ b/audio/espeak/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: espeak +# Date created: 2006-03-25 +# Whom: Nicola Vitale <nivit@email.it> +# +# $FreeBSD$ +# + +PORTNAME= espeak +PORTVERSION= 1.07 +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= speak-${PORTVERSION}-source + +MAINTAINER= nivit@email.it +COMMENT= A software speech synthesizer + +LIB_DEPENDS= portaudio:${PORTSDIR}/audio/portaudio + +CONFLICTS= speak-1* + +MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" CXX="${CXX}" + +USE_GETOPT_LONG=yes +USE_GMAKE= yes +USE_ZIP= yes + +WRKSRC= ${WRKDIR}/${DISTNAME} +BUILD_WRKSRC= ${WRKSRC}/src + +FIND_DIRS= data espeak-data +FIND_DOCS= docs + +REPLACE_FILES= ${BUILD_WRKSRC}/Makefile ${BUILD_WRKSRC}/speak.cpp + +post-patch: + @for FILE in ${REPLACE_FILES}; do \ + ${REINPLACE_CMD} \ + -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ + -e "s|%%DATADIR%%|${DATADIR}|g" $${FILE} ;\ + done; + +do-install: + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/speak ${PREFIX}/bin/speak + cd ${WRKSRC} && ${FIND} ${FIND_DIRS} -type d -exec ${MKDIR} \ + ${DATADIR}/{} \; + cd ${WRKSRC} && ${FIND} ${FIND_DIRS} -type f -exec ${INSTALL_DATA} {} \ + ${DATADIR}/{} \; + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC}/${FIND_DOCS} && ${FIND} . -type f \ + -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; +.endif + +.include <bsd.port.mk> diff --git a/audio/espeak/distinfo b/audio/espeak/distinfo new file mode 100644 index 000000000000..000fb192aaa7 --- /dev/null +++ b/audio/espeak/distinfo @@ -0,0 +1,3 @@ +MD5 (speak-1.07-source.zip) = a1f1b22033215d95737dec66419149a9 +SHA256 (speak-1.07-source.zip) = d6ed37360c98f59140550a1ba3bfe3d97eda6caabbdba621322a5379e7b64372 +SIZE (speak-1.07-source.zip) = 325880 diff --git a/audio/espeak/files/patch-src-Makefile b/audio/espeak/files/patch-src-Makefile new file mode 100644 index 000000000000..7992b9f433b0 --- /dev/null +++ b/audio/espeak/files/patch-src-Makefile @@ -0,0 +1,20 @@ +$FreeBSD$ +--- src/Makefile Sat Feb 18 11:58:02 2006 ++++ src/Makefile.port Sat Mar 25 13:29:06 2006 +@@ -1,13 +1,13 @@ + SRCS=$(wildcard *.cpp) + OBJS=$(patsubst %.cpp,%.o,$(SRCS)) +-LIBS=-lstdc++ -lportaudio ++LIBS=-lstdc++ -L%%LOCALBASE%%/lib $(LDFLAGS) -lportaudio + all: speak + + .cpp.o: +- $(CXX) $(CXXFLAGS) -I. -c $< ++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PTHREAD_CFLAGS) -I. -c $< + + speak: $(OBJS) +- $(CXX) -o $@ $(OBJS) $(LIBS) ++ $(CXX) $(PTHREAD_LIBS) -o $@ $(OBJS) $(LIBS) + + clean: + rm -f *.o diff --git a/audio/espeak/files/patch-src-speak.cpp b/audio/espeak/files/patch-src-speak.cpp new file mode 100644 index 000000000000..32e15d00ca5d --- /dev/null +++ b/audio/espeak/files/patch-src-speak.cpp @@ -0,0 +1,12 @@ +$FreeBSD$ +--- src/speak.cpp Fri Mar 24 16:22:56 2006 ++++ src/speak.cpp.port Sat Mar 25 11:50:37 2006 +@@ -135,7 +135,7 @@ + sprintf(path_home,"%s/espeak-data",getenv("HOME")); + if(access(path_home,R_OK) != 0) + { +- strcpy(path_home,"/usr/share/espeak-data"); ++ strcpy(path_home,"%%DATADIR%%/espeak-data"); + } + + WavegenInit(22050,0); diff --git a/audio/espeak/pkg-descr b/audio/espeak/pkg-descr new file mode 100644 index 000000000000..5f134c362d32 --- /dev/null +++ b/audio/espeak/pkg-descr @@ -0,0 +1,9 @@ +eSpeak produces good quality English speech. It uses a different +synthesis method from other open source TTS engines, and sounds quite +different. It's perhaps not as natural or "smooth", but I find the +articulation clearer and easier to listen to for long periods. +It can run as a command line program to speak text from a file or +from stdin. + +Author: Jonathan Duddington <jsd@clara.co.uk> +WWW: http://espeak.sourceforge.net/ diff --git a/audio/espeak/pkg-plist b/audio/espeak/pkg-plist new file mode 100644 index 000000000000..97828eefe605 --- /dev/null +++ b/audio/espeak/pkg-plist @@ -0,0 +1,51 @@ +@comment $FreeBSD$ +bin/speak +%%PORTDOCS%%%%DOCSDIR%%/commands.html +%%PORTDOCS%%%%DOCSDIR%%/dictionary.html +%%PORTDOCS%%%%DOCSDIR%%/phonemes.html +%%PORTDOCS%%%%DOCSDIR%%/voices.html +%%DATADIR%%/data/english_extra +%%DATADIR%%/data/english_list +%%DATADIR%%/data/english_rules +%%DATADIR%%/data/esperanto_list +%%DATADIR%%/data/esperanto_rules +%%DATADIR%%/data/german_list +%%DATADIR%%/data/german_rules +%%DATADIR%%/espeak-data/english_1 +%%DATADIR%%/espeak-data/english_2 +%%DATADIR%%/espeak-data/esperanto_1 +%%DATADIR%%/espeak-data/esperanto_2 +%%DATADIR%%/espeak-data/german_1 +%%DATADIR%%/espeak-data/german_2 +%%DATADIR%%/espeak-data/phondata +%%DATADIR%%/espeak-data/phonindex +%%DATADIR%%/espeak-data/phontab +%%DATADIR%%/espeak-data/voices/default +%%DATADIR%%/espeak-data/voices/en +%%DATADIR%%/espeak-data/voices/en-b +%%DATADIR%%/espeak-data/voices/en-c +%%DATADIR%%/espeak-data/voices/en-c2 +%%DATADIR%%/espeak-data/voices/en-c3 +%%DATADIR%%/espeak-data/voices/en-d +%%DATADIR%%/espeak-data/voices/en-f +%%DATADIR%%/espeak-data/voices/en-fb +%%DATADIR%%/espeak-data/voices/en-fc +%%DATADIR%%/espeak-data/voices/en-fd +%%DATADIR%%/espeak-data/voices/en1 +%%DATADIR%%/espeak-data/voices/en1a +%%DATADIR%%/espeak-data/voices/en2 +%%DATADIR%%/espeak-data/voices/en3 +%%DATADIR%%/espeak-data/voices/en4 +%%DATADIR%%/espeak-data/voices/en5 +%%DATADIR%%/espeak-data/voices/en6 +%%DATADIR%%/espeak-data/voices/en7 +%%DATADIR%%/espeak-data/voices/en8 +%%DATADIR%%/espeak-data/voices/esperanto +%%DATADIR%%/espeak-data/voices/german +%%DATADIR%%/espeak-data/voices/test +%%DATADIR%%/espeak-data/voices/testtone +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%DATADIR%%/data +@dirrm %%DATADIR%%/espeak-data/voices +@dirrm %%DATADIR%%/espeak-data +@dirrm %%DATADIR%% |