Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
eSpeak is a compact open source software speech synthesizer for English and
other languages.
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.
+35
View File
@@ -0,0 +1,35 @@
# $NetBSD: Makefile,v 1.9 2012/09/11 23:59:31 asau Exp $
#
DISTNAME= espeak-1.31-source
PKGNAME= ${DISTNAME:S/-source//}
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=espeak/}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://espeak.sourceforge.net/
COMMENT= Speech synthesizer
#LICENSE= GPLv3
USE_LANGUAGES= c++
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}/${DISTNAME}/src
INSTALLATION_DIRS= bin include lib share
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/espeak ${DESTDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/libespeak.so.1.1.31 ${DESTDIR}${PREFIX}/lib
${LN} -sf libespeak.so.1.1.31 \
${DESTDIR}${PREFIX}/lib/libespeak.so.1
${LN} -sf libespeak.so.1.1.31 \
${DESTDIR}${PREFIX}/lib/libespeak.so
${INSTALL_LIB} ${WRKSRC}/libespeak.a ${DESTDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/speak_lib.h ${DESTDIR}${PREFIX}/include
${CP} -r ${WRKDIR}/espeak-1.31-source/espeak-data \
${DESTDIR}${PREFIX}/share
.include "../../audio/portaudio/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+155
View File
@@ -0,0 +1,155 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:10:28 joerg Exp $
bin/espeak
include/speak_lib.h
lib/libespeak.a
lib/libespeak.so
lib/libespeak.so.1
lib/libespeak.so.1.${PKGVERSION}
share/espeak-data/af_dict
share/espeak-data/config
share/espeak-data/cs_dict
share/espeak-data/cy_dict
share/espeak-data/de_dict
share/espeak-data/el_dict
share/espeak-data/en_dict
share/espeak-data/eo_dict
share/espeak-data/es_dict
share/espeak-data/fi_dict
share/espeak-data/fr_dict
share/espeak-data/grc_dict
share/espeak-data/hbs_dict
share/espeak-data/hi_dict
share/espeak-data/hu_dict
share/espeak-data/is_dict
share/espeak-data/it_dict
share/espeak-data/jbo_dict
share/espeak-data/la_dict
share/espeak-data/mbrola_ph/af1_phtrans
share/espeak-data/mbrola_ph/ca1_phtrans
share/espeak-data/mbrola_ph/cr1_phtrans
share/espeak-data/mbrola_ph/cs_phtrans
share/espeak-data/mbrola_ph/de4_phtrans
share/espeak-data/mbrola_ph/de6_phtrans
share/espeak-data/mbrola_ph/en1_phtrans
share/espeak-data/mbrola_ph/fr1_phtrans
share/espeak-data/mbrola_ph/gr2_phtrans
share/espeak-data/mbrola_ph/grc-de6_phtrans
share/espeak-data/mbrola_ph/hu1_phtrans
share/espeak-data/mbrola_ph/it3_phtrans
share/espeak-data/mbrola_ph/la1_phtrans
share/espeak-data/mbrola_ph/nl_phtrans
share/espeak-data/mbrola_ph/pl1_phtrans
share/espeak-data/mbrola_ph/ro1_phtrans
share/espeak-data/mbrola_ph/sv2_phtrans
share/espeak-data/mbrola_ph/sv_phtrans
share/espeak-data/mbrola_ph/us3_phtrans
share/espeak-data/mbrola_ph/us_phtrans
share/espeak-data/mk_dict
share/espeak-data/nl_dict
share/espeak-data/no_dict
share/espeak-data/phondata
share/espeak-data/phonindex
share/espeak-data/phontab
share/espeak-data/pl_dict
share/espeak-data/pt_dict
share/espeak-data/ro_dict
share/espeak-data/ru_dict
share/espeak-data/sk_dict
share/espeak-data/sv_dict
share/espeak-data/sw_dict
share/espeak-data/vi_dict
share/espeak-data/voices/!v/croak
share/espeak-data/voices/!v/f1
share/espeak-data/voices/!v/f2
share/espeak-data/voices/!v/f3
share/espeak-data/voices/!v/f4
share/espeak-data/voices/!v/m1
share/espeak-data/voices/!v/m2
share/espeak-data/voices/!v/m3
share/espeak-data/voices/!v/m4
share/espeak-data/voices/!v/m5
share/espeak-data/voices/!v/m6
share/espeak-data/voices/!v/test
share/espeak-data/voices/!v/whisper
share/espeak-data/voices/!v/wisper
share/espeak-data/voices/af
share/espeak-data/voices/bs
share/espeak-data/voices/cs
share/espeak-data/voices/cy
share/espeak-data/voices/de
share/espeak-data/voices/default
share/espeak-data/voices/el
share/espeak-data/voices/en/en
share/espeak-data/voices/en/en-n
share/espeak-data/voices/en/en-r
share/espeak-data/voices/en/en-rp
share/espeak-data/voices/en/en-sc
share/espeak-data/voices/en/en-wi
share/espeak-data/voices/en/en-wm
share/espeak-data/voices/eo
share/espeak-data/voices/es
share/espeak-data/voices/fi
share/espeak-data/voices/fr
share/espeak-data/voices/grc
share/espeak-data/voices/hi
share/espeak-data/voices/hr
share/espeak-data/voices/hu
share/espeak-data/voices/is
share/espeak-data/voices/it
share/espeak-data/voices/jbo
share/espeak-data/voices/la
share/espeak-data/voices/mb/mb-af1
share/espeak-data/voices/mb/mb-af1-en
share/espeak-data/voices/mb/mb-cr1
share/espeak-data/voices/mb/mb-cz2
share/espeak-data/voices/mb/mb-de4
share/espeak-data/voices/mb/mb-de4-en
share/espeak-data/voices/mb/mb-de5
share/espeak-data/voices/mb/mb-de5-en
share/espeak-data/voices/mb/mb-de6
share/espeak-data/voices/mb/mb-de6-grc
share/espeak-data/voices/mb/mb-de7
share/espeak-data/voices/mb/mb-en1
share/espeak-data/voices/mb/mb-fr1
share/espeak-data/voices/mb/mb-fr1-en
share/espeak-data/voices/mb/mb-fr4
share/espeak-data/voices/mb/mb-fr4-en
share/espeak-data/voices/mb/mb-gr2
share/espeak-data/voices/mb/mb-gr2-en
share/espeak-data/voices/mb/mb-hu1
share/espeak-data/voices/mb/mb-hu1-en
share/espeak-data/voices/mb/mb-it3
share/espeak-data/voices/mb/mb-it4
share/espeak-data/voices/mb/mb-la1
share/espeak-data/voices/mb/mb-nl2
share/espeak-data/voices/mb/mb-nl2-en
share/espeak-data/voices/mb/mb-pl1
share/espeak-data/voices/mb/mb-pl1-en
share/espeak-data/voices/mb/mb-ro1
share/espeak-data/voices/mb/mb-ro1-en
share/espeak-data/voices/mb/mb-sw1
share/espeak-data/voices/mb/mb-sw1-en
share/espeak-data/voices/mb/mb-sw2
share/espeak-data/voices/mb/mb-sw2-en
share/espeak-data/voices/mb/mb-us1
share/espeak-data/voices/mb/mb-us2
share/espeak-data/voices/mb/mb-us3
share/espeak-data/voices/mk
share/espeak-data/voices/nl
share/espeak-data/voices/no
share/espeak-data/voices/pl
share/espeak-data/voices/pt
share/espeak-data/voices/pt-pt
share/espeak-data/voices/ro
share/espeak-data/voices/ru
share/espeak-data/voices/sk
share/espeak-data/voices/sr
share/espeak-data/voices/sv
share/espeak-data/voices/sw
share/espeak-data/voices/vi
share/espeak-data/voices/zh
share/espeak-data/voices/zhy
share/espeak-data/zh_dict
share/espeak-data/zhy_dict
@pkgdir share/espeak-data/soundicons
@pkgdir share/espeak-data/mbrola
+14
View File
@@ -0,0 +1,14 @@
# $NetBSD: buildlink3.mk,v 1.2 2009/03/20 19:23:53 joerg Exp $
BUILDLINK_TREE+= espeak
.if !defined(ESPEAK_BUILDLINK3_MK)
ESPEAK_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.espeak+= espeak>=1.26
BUILDLINK_PKGSRCDIR.espeak?= ../../audio/espeak
.include "../../audio/portaudio/buildlink3.mk"
.endif # ESPEAK_BUILDLINK3_MK
BUILDLINK_TREE+= -espeak
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.3 2008/02/28 20:16:55 drochner Exp $
SHA1 (espeak-1.31-source.zip) = e33291b29153d0fc179da11ac4a61cc85fba679a
RMD160 (espeak-1.31-source.zip) = a26596f25d8897848238d81fe5e5d179d47f01a6
Size (espeak-1.31-source.zip) = 1204202 bytes
SHA1 (patch-aa) = a01dccb651c0160a7af5af14f3292578c8396ae0
SHA1 (patch-ab) = 37e434f3c3e2fb722f927da4ca83a2b814c28879
SHA1 (patch-ac) = e94b0597b0c104daaa24b6421b5bcf69147b1046
+35
View File
@@ -0,0 +1,35 @@
$NetBSD: patch-aa,v 1.2 2007/08/04 12:52:57 joerg Exp $
--- event.cpp.orig 2007-07-16 17:54:23.000000000 +0000
+++ event.cpp
@@ -40,6 +40,12 @@
//>
//<decls and function prototypes
+#ifndef timespeccmp
+#define timespeccmp(tvp, uvp, cmp) \
+ (((tvp)->tv_sec == (uvp)->tv_sec) ? \
+ ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
+ ((tvp)->tv_sec cmp (uvp)->tv_sec))
+#endif
// my_mutex: protects my_thread_is_talking,
static pthread_mutex_t my_mutex;
@@ -398,10 +404,14 @@ ENTER("sleep_until_timeout_or_stop_reque
to.tv_sec, to.tv_nsec,
ts.tv_sec, ts.tv_nsec);
- while ((err = sem_timedwait(&my_sem_stop_is_required, &ts)) == -1
- && errno == EINTR)
+ while ((err = sem_trywait(&my_sem_stop_is_required)) == -1
+ && (errno == EINTR || errno == EAGAIN))
{
- continue; // Restart when interrupted by handler
+ struct timespec help;
+ clock_gettime2(&help);
+ if (timespeccmp(&help, &ts, >=))
+ break;
+ sched_yield();
}
assert (gettimeofday(&tv, NULL) != -1);
+35
View File
@@ -0,0 +1,35 @@
$NetBSD: patch-ab,v 1.2 2007/08/04 12:52:57 joerg Exp $
--- fifo.cpp.orig 2007-07-16 17:54:23.000000000 +0000
+++ fifo.cpp
@@ -39,6 +39,12 @@
#include "wave.h"
#include "debug.h"
+#ifndef timespeccmp
+#define timespeccmp(tvp, uvp, cmp) \
+ (((tvp)->tv_sec == (uvp)->tv_sec) ? \
+ ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
+ ((tvp)->tv_sec cmp (uvp)->tv_sec))
+#endif
//>
//<decls and function prototypes
@@ -306,10 +312,14 @@ int sleep_until_start_request_or_inactiv
to.tv_sec, to.tv_nsec,
ts.tv_sec, ts.tv_nsec);
- while ((err = sem_timedwait(&my_sem_start_is_required, &ts)) == -1
- && errno == EINTR)
+ while ((err = sem_trywait(&my_sem_start_is_required)) == -1
+ && (errno == EINTR || errno == EAGAIN))
{
- continue;
+ struct timespec help;
+ clock_gettime2(&help);
+ if (timespeccmp(&help, &ts, >=))
+ break;
+ sched_yield();
}
assert (gettimeofday(&tv, NULL) != -1);
+45
View File
@@ -0,0 +1,45 @@
$NetBSD: patch-ac,v 1.3 2008/02/28 20:16:55 drochner Exp $
--- Makefile.orig 2008-01-19 22:50:27.000000000 +0100
+++ Makefile
@@ -1,7 +1,7 @@
BINDIR=/usr/bin
INCDIR=/usr/include/espeak
LIBDIR=/usr/lib
-DATADIR=/usr/share/espeak-data
+DATADIR=${PREFIX}/share/espeak-data
RELEASE = 1.31
BIN_NAME = speak
@@ -26,18 +26,19 @@ libespeak_SOURCES = speak_lib.cpp compil
tr_languages.cpp voices.cpp wavegen.cpp phonemelist.cpp \
espeak_command.cpp event.cpp fifo.cpp wave.cpp debug.cpp
+LPATH= -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib
SRCS1=$(speak_SOURCES)
OBJS1=$(patsubst %.cpp,%.o,$(SRCS1))
-LIBS1=-lstdc++ -lportaudio -lpthread
+LIBS1=-lstdc++ $(LPATH) -lportaudio ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
SRCS2=$(libespeak_SOURCES)
OBJS2=$(patsubst %.cpp,x_%.o,$(SRCS2))
-LIBS2=-lstdc++ -lportaudio -lpthread
+LIBS2=-lstdc++ $(LPATH) -lportaudio ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
SRCS3 = espeak.cpp
OBJS3=$(patsubst %.cpp,%.o,$(SRCS3))
-LIBS3=-lstdc++ ./libespeak.so
+LIBS3=-lstdc++ $(LPATH) ./libespeak.so
CXXFLAGS=-O2
@@ -58,7 +59,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME)
x_%.o: %.cpp
$(CXX) $(CXXFLAGS) -Wall -fpic -fvisibility=hidden -pedantic \
- -I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o
+ -I. -DLIBRARY -DPATH_ESPEAK_DATA=\"$(DATADIR)\" -c -fno-exceptions $< -o x_$*.o
$(LIB_NAME): $(OBJS2)
$(CXX) -shared -Wl,-soname,$(LIB_NAME).$(LIB_VERSION) -o $@ $(OBJS2) $(LIBS2)