This updates cmu-sphinxbase to the latest recommended release. Yes, this recommended release is numbered "5prealpha" which deviates from the numbering scheme used by previous releases. I cannot explain this. But even Debian stable ships this release.
I'll send out a corresponding diff for cmu-sphinx3 shortly. diff 13c2fb54dce5a740f25ca5c9d561bd336812b19d /usr/ports blob - 4d30f00571fa87ce200aff1b52399bd0764217a6 file + audio/cmu-sphinxbase/Makefile --- audio/cmu-sphinxbase/Makefile +++ audio/cmu-sphinxbase/Makefile @@ -2,32 +2,40 @@ COMMENT= common libraries for the CMU speech recognition engines -VERSION= 0.6 +# Yes, upstream recommends this "prealpha" release. +# Which, by the way, is also shipped in Debian stable... +VERSION= 5prealpha +EPOCH= 0 DISTNAME= sphinxbase-${VERSION} -PKGNAME= cmu-sphinxbase-${VERSION} -REVISION= 5 +# Translate upstream's bonkers release name into something which +# our pkg tools will find palatable... +PKGNAME= cmu-sphinxbase-${VERSION:S/prealpha/-pre0/} CATEGORIES= audio -SHARED_LIBS= sphinxbase 1.0 \ - sphinxad 1.0 +SHARED_LIBS= sphinxbase 2.0 \ + sphinxad 2.0 -HOMEPAGE= http://cmusphinx.sourceforge.net/ +HOMEPAGE= https://cmusphinx.sourceforge.net/ # CMU PERMIT_PACKAGE_CDROM= Yes -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cmusphinx/} +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cmusphinx/sphinxbase/${VERSION}/} -WANTLIB= blas c iconv lapack m pthread sndio ${MODFORTRAN_WANTLIB} -MODULES= fortran +WANTLIB= blas c lapack m pthread sndio ${MODFORTRAN_WANTLIB} \ + ${MODPY_WANTLIB} +MODULES= fortran \ + lang/python MODFORTRAN_COMPILER = gfortran -LIB_DEPENDS= converters/libiconv \ - math/lapack \ - ${MODFORTRAN_LIB_DEPENDS} +USE_GMAKE= Yes +BUILD_DEPENDS= devel/swig +LIB_DEPENDS= math/lapack \ + ${MODFORTRAN_LIB_DEPENDS} \ + ${MODPY_LIB_DEPENDS} +RUN_DEPENDS= ${MODPY_RUN_DEPENDS} CONFIGURE_STYLE= gnu -CONFIGURE_ARGS= --without-python CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \ LDFLAGS=-L${LOCALBASE}/lib \ LIBS="-lblas -lm -lgfortran -lsndio" \ blob - 6a906cf5ac6426fde1cda4d90cd5a6e1ee6be973 file + audio/cmu-sphinxbase/distinfo --- audio/cmu-sphinxbase/distinfo +++ audio/cmu-sphinxbase/distinfo @@ -1,2 +1,2 @@ -SHA256 (sphinxbase-0.6.tar.gz) = KTgywxDVzIHtjs9C1wLGdlE2yzOKA2qvhPR+Ekv3Lfw= -SIZE (sphinxbase-0.6.tar.gz) = 2872665 +SHA256 (sphinxbase-5prealpha.tar.gz) = 9yvbWeULVYvtR8whBXdyANKyRqDzKOkT3hapsi+aJG8= +SIZE (sphinxbase-5prealpha.tar.gz) = 3401241 blob - 0dc2d7d13b8fc3c0039177fc1fcc42c5de935551 file + audio/cmu-sphinxbase/patches/patch-configure --- audio/cmu-sphinxbase/patches/patch-configure +++ audio/cmu-sphinxbase/patches/patch-configure @@ -1,23 +1,20 @@ $OpenBSD: patch-configure,v 1.3 2012/08/22 20:14:05 naddy Exp $ ---- configure.orig Thu Mar 18 21:49:35 2010 -+++ configure Wed Apr 21 14:24:52 2010 -@@ -7432,11 +7432,18 @@ fi +Index: configure +--- configure.orig ++++ configure +@@ -13613,10 +13613,14 @@ fi - ;; - # FIXME: isn't this the same OSS as on Linux? -- *-*-freebsd*|*-*-netbsd*|*-*-openbsd*) -+ *-*-freebsd*|*-*-netbsd*) - ad_files="ad_oss_bsd.lo" - ad_backend="AD_BACKEND_OSS_BSD" - $as_echo "#define AD_BACKEND_OSS_BSD /**/" >>confdefs.h -+ -+ ;; -+ *-*-openbsd*) -+ ad_files="ad_sndio.lo" -+ ad_backend="AD_BACKEND_SNDIO" -+ -+$as_echo "#define AD_BACKEND_SNDIO /**/" >>confdefs.h - - ;; - *-*-sunos4*) + ;; +- *-*-netbsd*|*-*-openbsd*) ++ *-*-netbsd*) + ad_files="ad_oss.lo" + ad_libs="-lossaudio" + ;; ++ *-*-openbsd*) ++ ad_files="ad_sndio.lo" ++ ad_libs="-lsndio" ++ ;; + *-*-*cygwin*|*-*-*mingw*) + ad_files="ad_win32.lo" + ad_libs="-lwinmm" blob - 475316841bef6ecddb93e9b489ba04d5da0f840e file + audio/cmu-sphinxbase/pkg/PLIST --- audio/cmu-sphinxbase/pkg/PLIST +++ audio/cmu-sphinxbase/pkg/PLIST @@ -1,17 +1,16 @@ @comment $OpenBSD: PLIST,v 1.3 2015/03/16 18:07:34 naddy Exp $ @bin bin/sphinx_cepview -@bin bin/sphinx_cont_adseg -@bin bin/sphinx_cont_fileseg +@bin bin/sphinx_cont_seg @bin bin/sphinx_fe @bin bin/sphinx_jsgf2fsg @bin bin/sphinx_lm_convert @bin bin/sphinx_lm_eval -bin/sphinx_lm_sort @bin bin/sphinx_pitch include/sphinxbase/ include/sphinxbase/ad.h include/sphinxbase/agc.h include/sphinxbase/bio.h +include/sphinxbase/bitarr.h include/sphinxbase/bitvec.h include/sphinxbase/byteorder.h include/sphinxbase/case.h @@ -19,7 +18,6 @@ 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 @@ -31,25 +29,20 @@ include/sphinxbase/genrand.h include/sphinxbase/glist.h include/sphinxbase/hash_table.h include/sphinxbase/heap.h -include/sphinxbase/huff_code.h -include/sphinxbase/info.h include/sphinxbase/jsgf.h -include/sphinxbase/libutil.h include/sphinxbase/listelem_alloc.h include/sphinxbase/logmath.h include/sphinxbase/matrix.h include/sphinxbase/mmio.h -include/sphinxbase/mulaw.h include/sphinxbase/ngram_model.h include/sphinxbase/pio.h include/sphinxbase/prim_type.h +include/sphinxbase/priority_queue.h include/sphinxbase/profile.h include/sphinxbase/sbthread.h include/sphinxbase/sphinx_config.h -include/sphinxbase/sphinxbase.pxd include/sphinxbase/sphinxbase_export.h include/sphinxbase/strfuncs.h -include/sphinxbase/unlimit.h include/sphinxbase/yin.h lib/libsphinxad.a lib/libsphinxad.la @@ -58,3 +51,32 @@ lib/libsphinxbase.a lib/libsphinxbase.la @lib lib/libsphinxbase.so.${LIBsphinxbase_VERSION} lib/pkgconfig/sphinxbase.pc +lib/python${MODPY_VERSION}/site-packages/sphinxbase/ +lib/python${MODPY_VERSION}/site-packages/sphinxbase/__init__.py +lib/python${MODPY_VERSION}/site-packages/sphinxbase/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/sphinxbase/__init__.${MODPY_PYOEXTENSION} +lib/python${MODPY_VERSION}/site-packages/sphinxbase/_sphinxbase.a +lib/python${MODPY_VERSION}/site-packages/sphinxbase/_sphinxbase.la +lib/python${MODPY_VERSION}/site-packages/sphinxbase/_sphinxbase.so.0.0 +lib/python${MODPY_VERSION}/site-packages/sphinxbase/sphinxbase.py +lib/python${MODPY_VERSION}/site-packages/sphinxbase/sphinxbase.pyc +lib/python${MODPY_VERSION}/site-packages/sphinxbase/sphinxbase.${MODPY_PYOEXTENSION} +@man man/man1/sphinx_cepview.1 +@man man/man1/sphinx_cont_seg.1 +@man man/man1/sphinx_fe.1 +@man man/man1/sphinx_lm_convert.1 +@man man/man1/sphinx_lm_eval.1 +@man man/man1/sphinx_lm_sort.1 +@man man/man1/sphinx_pitch.1 +share/sphinxbase/ +share/sphinxbase/swig/ +share/sphinxbase/swig/cmd_ln.i +share/sphinxbase/swig/fe.i +share/sphinxbase/swig/feat.i +share/sphinxbase/swig/fsg_model.i +share/sphinxbase/swig/iterators.i +share/sphinxbase/swig/jsgf.i +share/sphinxbase/swig/logmath.i +share/sphinxbase/swig/ngram_model.i +share/sphinxbase/swig/sphinxbase.i +share/sphinxbase/swig/typemaps.i