Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# $NetBSD: Makefile,v 1.66 2013/05/31 12:39:36 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.69 2014/02/20 12:26:14 obache Exp $
|
||||
|
||||
DISTNAME= festival-2.1-release
|
||||
PKGNAME= festival-2.1
|
||||
PKGREVISION= 3
|
||||
PKGREVISION= 4
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= http://festvox.org/packed/festival/2.1/
|
||||
DISTFILES= ${DISTNAME}.tar.gz \
|
||||
@@ -78,15 +78,24 @@ post-patch:
|
||||
${CP} ${FILESDIR}/unknown_${OPSYS}.mak ${FESTIVAL}/config/systems
|
||||
.endif
|
||||
|
||||
# from festival/config/system.sh
|
||||
.if exists(/etc/redhat-release)
|
||||
FESTOS= RedHatLinux
|
||||
.elif exists(/etc/debian_version)
|
||||
FESTOS= DebianGNULinux
|
||||
.else
|
||||
FESTOS= ${OPSYS}
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${DESTDIR}${FHOME}
|
||||
${CHMOD} -R u+w,a+r,og-w ${FESTIVAL}/lib
|
||||
${FIND} ${FESTIVAL}/lib -type d -print | ${XARGS} ${CHMOD} 755
|
||||
-@${MV} ${FESTIVAL}/lib/etc/unknown_${OPSYS} \
|
||||
-@${MV} ${FESTIVAL}/lib/etc/unknown_${FESTOS} \
|
||||
${FESTIVAL}/lib/etc/pkgsrc
|
||||
cd ${FESTIVAL} && pax -rw lib examples ${DESTDIR}${FHOME}
|
||||
${RM} ${DESTDIR}${FHOME}/examples/Makefile.orig
|
||||
${RM} -f ${DESTDIR}${FHOME}/lib/etc/unknown_${OPSYS}/audsp \
|
||||
${RM} -f ${DESTDIR}${FHOME}/lib/etc/unknown_${FESTOS}/audsp \
|
||||
${DESTDIR}${FHOME}/lib/etc/pkgsrc/audsp
|
||||
${INSTALL_PROGRAM} ${FESTIVAL}/lib/etc/pkgsrc/audsp \
|
||||
${DESTDIR}${PREFIX}/libexec
|
||||
@@ -111,5 +120,5 @@ do-install:
|
||||
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/festival_client.1
|
||||
|
||||
.include "../../audio/nas/buildlink3.mk"
|
||||
.include "../../mk/curses.buildlink3.mk"
|
||||
.include "../../mk/termcap.buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$NetBSD: distinfo,v 1.21 2013/06/13 21:40:43 joerg Exp $
|
||||
$NetBSD: distinfo,v 1.24 2013/10/11 11:16:12 roy Exp $
|
||||
|
||||
SHA1 (festival-2.1-release.tar.gz) = f0c5a4282667898c584516e3605742835f59cb77
|
||||
RMD160 (festival-2.1-release.tar.gz) = b3c646ecc532e4e05f846db06bbab12a13ec1d6b
|
||||
@@ -19,7 +19,11 @@ SHA1 (patch-speech__tools_base__class_inst__tmpl_vector__dvector__t.cc) = 8a2a4c
|
||||
SHA1 (patch-speech__tools_base__class_inst__tmpl_vector__fmatrix__t.cc) = 1d64a2e5aa1dc8c5b7d275e2bf66b2e96b599c35
|
||||
SHA1 (patch-speech__tools_config_compilers_gcc__defaults.mak) = 7441f2e424046dd50c1531160a5b5f94b8506e9d
|
||||
SHA1 (patch-speech__tools_config_rules_compile__options.mak) = d3aa93029edba84f8130f1bc33c8d74219bafd9a
|
||||
SHA1 (patch-speech__tools_configure) = b26108be7d30be0847e1caccbe82eb805e5ab8b1
|
||||
SHA1 (patch-speech__tools_configure.in) = 58b3b3b6dfb2b085c638b3637ece67bb6e5b014e
|
||||
SHA1 (patch-speech__tools_include_EST__Ngrammar.h) = bd63f89cbdc11baf76c6d6c42aa814ac5b9daca9
|
||||
SHA1 (patch-speech__tools_include_EST__SCFG.h) = d58bc030dec4d526a89719e32c3624c642f33f3e
|
||||
SHA1 (patch-speech__tools_include_EST__String.h) = 21961c1864eddc025a763081315b7f40f2450735
|
||||
SHA1 (patch-speech__tools_include_EST__TIterator.h) = db7617f5c4a802672ce3b098ecd512b6cdb96aeb
|
||||
SHA1 (patch-speech__tools_include_EST__TNamedEnum.h) = f240a338d17d7a36a5dba1b0f3b48190b235bf03
|
||||
SHA1 (patch-speech__tools_include_EST__error.h) = 26c99948bee89f11b39efbb9d6eb195e1fb1602d
|
||||
|
||||
85
audio/festival/patches/patch-speech__tools_configure
Normal file
85
audio/festival/patches/patch-speech__tools_configure
Normal file
@@ -0,0 +1,85 @@
|
||||
$NetBSD: patch-speech__tools_configure,v 1.1 2013/10/11 11:16:12 roy Exp $
|
||||
|
||||
Test for termcap before ncurses
|
||||
|
||||
--- speech_tools/configure.orig 2013-10-11 10:22:29.000000000 +0000
|
||||
+++ speech_tools/configure
|
||||
@@ -3838,6 +3838,70 @@ presetting ac_cv_c_bigendian=no (or yes)
|
||||
esac
|
||||
|
||||
|
||||
+{ echo "$as_me:$LINENO: checking for tputs in -ltermcap" >&5
|
||||
+echo $ECHO_N "checking for tputs in -ltermcap... $ECHO_C" >&6; }
|
||||
+if test "${ac_cv_lib_termcap_tputs+set}" = set; then
|
||||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
+else
|
||||
+ ac_check_lib_save_LIBS=$LIBS
|
||||
+LIBS="-ltermcap $LIBS"
|
||||
+cat >conftest.$ac_ext <<_ACEOF
|
||||
+/* confdefs.h. */
|
||||
+_ACEOF
|
||||
+cat confdefs.h >>conftest.$ac_ext
|
||||
+cat >>conftest.$ac_ext <<_ACEOF
|
||||
+/* end confdefs.h. */
|
||||
+
|
||||
+/* Override any GCC internal prototype to avoid an error.
|
||||
+ Use char because int might match the return type of a GCC
|
||||
+ builtin and then its argument prototype would still apply. */
|
||||
+#ifdef __cplusplus
|
||||
+extern "C"
|
||||
+#endif
|
||||
+char tputs ();
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+return tputs ();
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+rm -f conftest.$ac_objext conftest$ac_exeext
|
||||
+if { (ac_try="$ac_link"
|
||||
+case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||
+ (eval "$ac_link") 2>conftest.er1
|
||||
+ ac_status=$?
|
||||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||||
+ rm -f conftest.er1
|
||||
+ cat conftest.err >&5
|
||||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
+ (exit $ac_status); } && {
|
||||
+ test -z "$ac_c_werror_flag" ||
|
||||
+ test ! -s conftest.err
|
||||
+ } && test -s conftest$ac_exeext &&
|
||||
+ $as_test_x conftest$ac_exeext; then
|
||||
+ ac_cv_lib_termcap_tputs=yes
|
||||
+else
|
||||
+ echo "$as_me: failed program was:" >&5
|
||||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||||
+
|
||||
+ ac_cv_lib_termcap_tputs=no
|
||||
+fi
|
||||
+
|
||||
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
||||
+ conftest$ac_exeext conftest.$ac_ext
|
||||
+LIBS=$ac_check_lib_save_LIBS
|
||||
+fi
|
||||
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tputs" >&5
|
||||
+echo "${ECHO_T}$ac_cv_lib_termcap_tputs" >&6; }
|
||||
+if test $ac_cv_lib_termcap_tputs = yes; then
|
||||
+ TERMCAPLIB=-ltermcap
|
||||
+else
|
||||
{ echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
|
||||
echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6; }
|
||||
if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
|
||||
@@ -3905,6 +3969,7 @@ else
|
||||
TERMCAPLIB=-lcurses
|
||||
fi
|
||||
|
||||
+fi
|
||||
|
||||
|
||||
COMPILERTYPE=gcc
|
||||
16
audio/festival/patches/patch-speech__tools_configure.in
Normal file
16
audio/festival/patches/patch-speech__tools_configure.in
Normal file
@@ -0,0 +1,16 @@
|
||||
$NetBSD: patch-speech__tools_configure.in,v 1.1 2013/10/11 11:16:12 roy Exp $
|
||||
|
||||
Test for termcap before ncurses
|
||||
|
||||
--- speech_tools/configure.in.orig 2013-10-11 10:22:22.000000000 +0000
|
||||
+++ speech_tools/configure.in
|
||||
@@ -42,7 +42,8 @@ AC_CHECK_TOOL(AR, ar)
|
||||
|
||||
AC_C_BIGENDIAN
|
||||
|
||||
-AC_CHECK_LIB(ncurses, tputs, [TERMCAPLIB=-lncurses], [TERMCAPLIB=-lcurses])
|
||||
+AC_CHECK_LIB(termcap, tputs, [TERMCAPLIB=-ltermcap],
|
||||
+[AC_CHECK_LIB(ncurses, tputs, [TERMCAPLIB=-lncurses], [TERMCAPLIB=-lcurses])])
|
||||
dnl if test "$TERMCAPLIB" != "-ltermcap"; then
|
||||
dnl AC_CHECK_LIB(termcap, tputs, [TERMCAPLIB=-ltermcap], [TERMCAPLIB=-lncurses])
|
||||
dnl
|
||||
@@ -0,0 +1,57 @@
|
||||
$NetBSD: patch-speech__tools_include_EST__Ngrammar.h,v 1.2 2013/07/18 20:19:51 joerg Exp $
|
||||
|
||||
--- speech_tools/include/EST_Ngrammar.h.orig 2013-07-17 14:46:59.000000000 +0000
|
||||
+++ speech_tools/include/EST_Ngrammar.h
|
||||
@@ -538,18 +538,18 @@ public:
|
||||
double floor);
|
||||
friend EST_write_status save_ngram_htk_ascii(const EST_String filename,
|
||||
EST_Ngrammar &n,
|
||||
- double floor=0.0);
|
||||
+ double floor);
|
||||
|
||||
//friend EST_write_status save_ngram_htk_binary(const EST_String filename,
|
||||
// EST_Ngrammar &n);
|
||||
friend EST_write_status save_ngram_cstr_ascii(const EST_String filename,
|
||||
EST_Ngrammar &n,
|
||||
- const bool trace=false,
|
||||
- double floor=0.0);
|
||||
+ const bool trace,
|
||||
+ double floor);
|
||||
friend EST_write_status save_ngram_cstr_bin(const EST_String filename,
|
||||
EST_Ngrammar &n,
|
||||
- const bool trace=false,
|
||||
- double floor=0.0);
|
||||
+ const bool trace,
|
||||
+ double floor);
|
||||
friend EST_write_status save_ngram_arpa(const EST_String filename,
|
||||
EST_Ngrammar &n);
|
||||
friend EST_write_status save_ngram_arpa_sub(ostream *ost,
|
||||
@@ -561,11 +561,11 @@ public:
|
||||
// Auxiliary functions
|
||||
|
||||
// smoothing
|
||||
-friend void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order=0);
|
||||
-friend void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order=0);
|
||||
-friend bool Good_Turing_smooth(EST_Ngrammar &n, int maxcount, int mincount=0);
|
||||
+friend void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order);
|
||||
+friend void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order);
|
||||
+friend bool Good_Turing_smooth(EST_Ngrammar &n, int maxcount, int mincount);
|
||||
friend void Good_Turing_discount(EST_Ngrammar &ngrammar, const int maxcount,
|
||||
- const double default_discount=0.5);
|
||||
+ const double default_discount);
|
||||
|
||||
friend void fs_build_backoff_ngrams(EST_Ngrammar *backoff_ngrams,
|
||||
EST_Ngrammar &ngram);
|
||||
@@ -584,6 +584,12 @@ friend class EST_BackoffNgrammar;
|
||||
|
||||
};
|
||||
|
||||
+void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order=0);
|
||||
+void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order=0);
|
||||
+bool Good_Turing_smooth(EST_Ngrammar &n, int maxcount, int mincount=0);
|
||||
+void Good_Turing_discount(EST_Ngrammar &ngrammar, const int maxcount,
|
||||
+ const double default_discount=0.5);
|
||||
+
|
||||
void Ngram_freqsmooth(EST_Ngrammar &ngram,
|
||||
int smooth_thresh1,
|
||||
int smooth_thresh2);
|
||||
@@ -0,0 +1,30 @@
|
||||
$NetBSD: patch-speech__tools_include_EST__String.h,v 1.1 2013/07/18 11:57:42 joerg Exp $
|
||||
|
||||
--- speech_tools/include/EST_String.h.orig 2013-07-17 14:40:20.000000000 +0000
|
||||
+++ speech_tools/include/EST_String.h
|
||||
@@ -574,10 +574,10 @@ public:
|
||||
*/
|
||||
//@{
|
||||
friend int fcompare(const EST_String &a, const EST_String &b,
|
||||
- const unsigned char *table=NULL);
|
||||
+ const unsigned char *table);
|
||||
|
||||
friend int fcompare(const EST_String &a, const char *b,
|
||||
- const unsigned char *table=NULL);
|
||||
+ const unsigned char *table);
|
||||
///
|
||||
friend inline int fcompare(const EST_String &a, const EST_String &b,
|
||||
const EST_String &table)
|
||||
@@ -643,6 +643,12 @@ int operator == (const char *a, const ES
|
||||
int operator == (const EST_String &a, const EST_String &b);
|
||||
ostream &operator << (ostream &s, const EST_String &str);
|
||||
|
||||
+int fcompare(const EST_String &a, const EST_String &b,
|
||||
+ const unsigned char *table=NULL);
|
||||
+
|
||||
+int fcompare(const EST_String &a, const char *b,
|
||||
+ const unsigned char *table=NULL);
|
||||
+
|
||||
#include "EST_Regex.h"
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user