diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-03-22 20:36:38 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-03-22 20:36:38 +0000 |
commit | d58a3f6d331792ef970c227cbf50942300cb3301 (patch) | |
tree | 65e6e30b93c2c78f5596f69977e5de16aa4dc2e4 /audio/sphinxbase | |
parent | - Take maintainership, I use it a lot (diff) |
Sphinx Base is part of a large-vocabulary, speaker-independent, continuous
speech recognition engine.
This port is required for PocketSphinx and Sphinx3
Once the system is built, try running the Perl script sphinx-demo.
The sphinx-test script should run sphinx-batch over an example
utterance of "go forward ten meters."
WWW: http://www.speech.cs.cmu.edu/sphinx/
PR: ports/121611
Submitted by: Richard Neese <r.neese@gmail.com>
Diffstat (limited to 'audio/sphinxbase')
-rw-r--r-- | audio/sphinxbase/Makefile | 32 | ||||
-rw-r--r-- | audio/sphinxbase/distinfo | 3 | ||||
-rw-r--r-- | audio/sphinxbase/files/patch-configure.in | 23 | ||||
-rw-r--r-- | audio/sphinxbase/files/patch-src-libsphinxad_ad_oss_bsd.c | 14 | ||||
-rw-r--r-- | audio/sphinxbase/files/patch-test-unit-test_case_ucase3.test | 9 | ||||
-rw-r--r-- | audio/sphinxbase/pkg-descr | 10 | ||||
-rw-r--r-- | audio/sphinxbase/pkg-plist | 54 |
7 files changed, 145 insertions, 0 deletions
diff --git a/audio/sphinxbase/Makefile b/audio/sphinxbase/Makefile new file mode 100644 index 000000000000..52e571c02346 --- /dev/null +++ b/audio/sphinxbase/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: sphinxbase +# Date created: 8 Jan 2008 +# Whom: r.neese +# +# $FreeBSD$ +# + +PORTNAME= sphinxbase +PORTVERSION= 0.3 +CATEGORIES= audio accessibility +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= cmusphinx + +MAINTAINER= r.neese@gmail.com +COMMENT= CMU SPhinx Speech recognition system base + +USE_LDCONFIG= yes +PKGMESSAGE= ${WRKDIR}/pkg-message +USE_GMAKE= yes +USE_AUTOTOOLS= libtool:15 automake:19 + +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +MAKE_ENV= MKDIR="${MKDIR}" \ + OSVERSION=${OSVERSION} \ + CXX="${CXX}" + +post-patch: + @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/Makefile.am + +.include <bsd.port.mk> diff --git a/audio/sphinxbase/distinfo b/audio/sphinxbase/distinfo new file mode 100644 index 000000000000..e07a09024572 --- /dev/null +++ b/audio/sphinxbase/distinfo @@ -0,0 +1,3 @@ +MD5 (sphinxbase-0.3.tar.gz) = 4a00720a5fa42947e1f477e8a7325454 +SHA256 (sphinxbase-0.3.tar.gz) = 0497a39d926fb0faa5fab28391821743225cd332e7b582419c60b0db7e6fbaa2 +SIZE (sphinxbase-0.3.tar.gz) = 1841919 diff --git a/audio/sphinxbase/files/patch-configure.in b/audio/sphinxbase/files/patch-configure.in new file mode 100644 index 000000000000..bba277a6037e --- /dev/null +++ b/audio/sphinxbase/files/patch-configure.in @@ -0,0 +1,23 @@ +--- configure.in (revision 7550) ++++ configure.in (working copy) +@@ -105,18 +105,12 @@ + + if test "x$ad_files" = "x"; then + case $host in +- *-*-linux*|*-*-uclinux*) ++ *-*-linux*|*-*-uclinux*| \ ++ *-*-freebsd*|*-*-netbsd*|*-*-openbsd*) + ad_files="ad_oss.lo" + ad_backend="AD_BACKEND_OSS" + AC_DEFINE(AD_BACKEND_OSS, [], [Use OSS interface for sound I/O]) + ;; +- # FIXME: isn't this the same OSS as on Linux? +- *-*-freebsd*|*-*-netbsd*|*-*-openbsd*) +- ad_files="ad_oss_bsd.lo mulaw_base.lo" +- ad_libs="-lossaudio" +- ad_backend="AD_BACKEND_OSS_BSD" +- AC_DEFINE(AD_BACKEND_OSS_BSD, [], [Use OSS interface for sound I/O]) +- ;; + *-*-osf*) + ad_files="ad_osf.lo mulaw_base.lo" + ad_backend="AD_BACKEND_OSF" diff --git a/audio/sphinxbase/files/patch-src-libsphinxad_ad_oss_bsd.c b/audio/sphinxbase/files/patch-src-libsphinxad_ad_oss_bsd.c new file mode 100644 index 000000000000..eccde07507ab --- /dev/null +++ b/audio/sphinxbase/files/patch-src-libsphinxad_ad_oss_bsd.c @@ -0,0 +1,14 @@ +--- src/libsphinxad/ad_oss_bsd.c (revision 7548) ++++ src/libsphinxad/ad_oss_bsd.c (working copy) +@@ -65,11 +65,7 @@ + #include <stdlib.h> + #include <string.h> + #include <sys/ioctl.h> +-#if defined(SYS_SOUNDCARD_H) + #include <sys/soundcard.h> +-#else +-#include <soundcard.h> +-#endif + #include <errno.h> + #include <config.h> + diff --git a/audio/sphinxbase/files/patch-test-unit-test_case_ucase3.test b/audio/sphinxbase/files/patch-test-unit-test_case_ucase3.test new file mode 100644 index 000000000000..f9a26e3ecbf9 --- /dev/null +++ b/audio/sphinxbase/files/patch-test-unit-test_case_ucase3.test @@ -0,0 +1,9 @@ +--- test/unit/test_case/_ucase3.test (revision 7548) ++++ test/unit/test_case/_ucase3.test (working copy) +@@ -1,2 +1,2 @@ +-#!/bin/bash +-./chgCase ucase +\ No newline at end of file ++#!/bin/sh ++./chgCase ucase + diff --git a/audio/sphinxbase/pkg-descr b/audio/sphinxbase/pkg-descr new file mode 100644 index 000000000000..bfaefb44f527 --- /dev/null +++ b/audio/sphinxbase/pkg-descr @@ -0,0 +1,10 @@ +Sphinx Base is part of a large-vocabulary, speaker-independent, continuous +speech recognition engine. + +This port is required for PocketSphinx and Sphinx3 + +Once the system is built, try running the Perl script sphinx-demo. +The sphinx-test script should run sphinx-batch over an example +utterance of "go forward ten meters." + +WWW: http://www.speech.cs.cmu.edu/sphinx/ diff --git a/audio/sphinxbase/pkg-plist b/audio/sphinxbase/pkg-plist new file mode 100644 index 000000000000..393c0a78eb90 --- /dev/null +++ b/audio/sphinxbase/pkg-plist @@ -0,0 +1,54 @@ +bin/sphinx_cepview +bin/sphinx_fe +include/sphinxbase/ad.h +include/sphinxbase/agc.h +include/sphinxbase/bio.h +include/sphinxbase/bitvec.h +include/sphinxbase/byteorder.h +include/sphinxbase/case.h +include/sphinxbase/ckd_alloc.h +include/sphinxbase/clapack_lite.h +include/sphinxbase/cmd_ln.h +include/sphinxbase/cmn.h +include/sphinxbase/cont_ad.h +include/sphinxbase/err.h +include/sphinxbase/f2c.h +include/sphinxbase/fe.h +include/sphinxbase/feat.h +include/sphinxbase/filename.h +include/sphinxbase/fixpoint.h +include/sphinxbase/genrand.h +include/sphinxbase/glist.h +include/sphinxbase/hash_table.h +include/sphinxbase/heap.h +include/sphinxbase/info.h +include/sphinxbase/libutil.h +include/sphinxbase/linklist.h +include/sphinxbase/matrix.h +include/sphinxbase/mulaw.h +include/sphinxbase/pio.h +include/sphinxbase/prim_type.h +include/sphinxbase/profile.h +include/sphinxbase/s3_arraylist.h +include/sphinxbase/sphinx_config.h +include/sphinxbase/sphinx_types.h +include/sphinxbase/strfuncs.h +include/sphinxbase/unlimit.h +lib/libsphinxad.a +lib/libsphinxad.la +lib/libsphinxad.so +lib/libsphinxad.so.0 +lib/libsphinxfe.a +lib/libsphinxfe.la +lib/libsphinxfe.so +lib/libsphinxfe.so.0 +lib/libsphinxfeat.a +lib/libsphinxfeat.la +lib/libsphinxfeat.so +lib/libsphinxfeat.so.0 +lib/libsphinxutil.a +lib/libsphinxutil.la +lib/libsphinxutil.so +lib/libsphinxutil.so.0 +libdata/pkgconfig/sphinxbase.pc +@dirrm include/sphinxbase |