[78555] trunk/dports/audio/julius
ryandesign at macports.org
ryandesign at macports.org
Wed May 11 16:57:07 PDT 2011
Revision: 78555
http://trac.macports.org/changeset/78555
Author: ryandesign at macports.org
Date: 2011-05-11 16:57:07 -0700 (Wed, 11 May 2011)
Log Message:
-----------
julius: update to 4.2; see #29433
Modified Paths:
--------------
trunk/dports/audio/julius/Portfile
trunk/dports/audio/julius/files/julius_demo
Added Paths:
-----------
trunk/dports/audio/julius/files/patch-configure.diff
Removed Paths:
-------------
trunk/dports/audio/julius/files/patch-configure.in.diff
Modified: trunk/dports/audio/julius/Portfile
===================================================================
--- trunk/dports/audio/julius/Portfile 2011-05-11 22:55:56 UTC (rev 78554)
+++ trunk/dports/audio/julius/Portfile 2011-05-11 23:57:07 UTC (rev 78555)
@@ -4,71 +4,101 @@
PortSystem 1.0
name julius
-version 4.1.5.1
+version 4.2
categories audio japanese
platforms darwin
maintainers nomaintainer
-supported_archs noarch
license BSD
description Large Vocabulary Continuous Speech Recognition (LVCSR) Engine
-long_description "Julius" is an open-source high-performance large vocabulary \
+
+long_description Julius is an open-source high-performance large vocabulary \
continuous speech recognition (LVCSR) decoder software for \
speech-related researchers and developers. \
Based on word N-gram and triphone context-dependent HMM, \
it can perform almost real-time decoding on most current \
PCs with small amount of memory.
+
homepage http://julius.sourceforge.jp/
-master_sites sourceforge_jp:julius/50318/:julius \
- sourceforge_jp:julius/51158/:dictation_kit
+master_sites sourceforge_jp:julius/51820/
-distfiles ${distname}${extract.suffix}:julius
-
checksums ${distname}${extract.suffix} \
- sha1 bf746719ea05095ead4be70cf27b52ae77ed5b37 \
- rmd160 904738b1f5cd26bf42fe29f10961d42217be0e86
+ sha1 94b262d1682ec26a250aa294d10389663041040f \
+ rmd160 ac5aa9f514deabf357404ded261be67f8dcfd34e
-patchfiles patch-configure.in.diff
+patchfiles patch-configure.diff
-use_autoconf yes
+# Note: '--enable-words-int' should be declared ahead of '--with-mictype'.
+variant words_int description {Use integer for word ID to extend vocabulary limit} {
+ configure.args-append --enable-words-int
+ notes-append "
+ An executable built with '--enable-words-int' fails to convert\
+ 2-byte bingrams, and it cannot start with the dictation kit.
+ If you'd like to use the dictation kit, you may replace its\
+ 2-byte bingram with a 4-byte one."
+}
-pre-configure {
- foreach dir { mkgshmm gramtools jcontrol julius libjulius libsent } {
- ui_debug "Running autoconf in ${dir}"
- system "cd ${worksrcpath}/$dir && ${prefix}/bin/autoconf"
- }
+platform darwin 10 {
+ depends_lib-append port:portaudio
+ configure.args-append --with-mictype=portaudio
}
+destroot.target-append install.man
+destroot.destdir prefix=${destroot}${prefix}
+
+post-destroot {
+ xinstall -d ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath} \
+ 00readme-ja.txt \
+ 00readme.txt \
+ ChangeLog \
+ LICENSE.txt \
+ Release-ja.txt \
+ Release.txt \
+ Sample.jconf \
+ ${destroot}${prefix}/share/doc/${name}
+}
+
default_variants +kit
set kit_name dictation-kit
set kit_version v4.1
set dictation_kit ${kit_name}-${kit_version}
+set kit_distfile ${dictation_kit}${extract.suffix}
variant kit description {Add dictation kit and a demo script} {
- distfiles-append ${dictation_kit}${extract.suffix}:dictation_kit
+ distfiles-append ${kit_distfile}:kit
+ master_sites-append sourceforge_jp:julius/51930/:kit
+ checksums-append ${kit_distfile} \
+ sha1 7fd6fd6de13cd18c9ab811266da9d548d57c422a \
+ rmd160 9f8603f95cbb363cb8a92189198837f81c4968dd
- checksums-append ${dictation_kit}${extract.suffix} \
- sha1 7fd6fd6de13cd18c9ab811266da9d548d57c422a \
- rmd160 9f8603f95cbb363cb8a92189198837f81c4968dd
-
post-destroot {
# copy the dictation kit.
- set lib_inst ${prefix}/lib/${name}
- set lib_dest ${destroot}${lib_inst}
- file mkdir ${lib_dest}
- copy ${workpath}/${dictation_kit}/model ${lib_dest}
- copy ${workpath}/${dictation_kit}/fast.jconf ${lib_dest}
+ set lib_dest ${destroot}${prefix}/lib/${name}
+ xinstall -d ${lib_dest}
+ xinstall -m 644 -W ${workpath}/${dictation_kit} \
+ fast.jconf \
+ light.jconf \
+ ${lib_dest}
+ copy ${workpath}/${dictation_kit}/model ${lib_dest}
# configure the dictation kit.
set conf_dest ${lib_dest}/fast.jconf
- reinplace "s| model/| ${lib_inst}/model/|g" ${conf_dest}
+ reinplace "s| model/| ${prefix}/lib/${name}/model/|g" ${conf_dest}
reinplace "s|#-charconv from to|-charconv EUC-JP UTF-8|" ${conf_dest}
# configure an executable demo script file.
set script_name julius_demo
set script_dest ${destroot}${prefix}/bin/${script_name}
xinstall -m 755 ${filespath}/${script_name} ${script_dest}
reinplace "s|@prefix@|${prefix}|g" ${script_dest}
- reinplace "s|@lib_inst@|${lib_inst}|g" ${script_dest}
+ # copy documentation.
+ set kit_docdir ${destroot}${prefix}/share/doc/${name}/${kit_name}
+ xinstall -d ${kit_docdir}
+ xinstall -m 644 -W ${workpath}/${dictation_kit} \
+ 00readme.txt \
+ HOWTO.txt \
+ TROUBLE.txt \
+ ${kit_docdir}
}
}
Modified: trunk/dports/audio/julius/files/julius_demo
===================================================================
--- trunk/dports/audio/julius/files/julius_demo 2011-05-11 22:55:56 UTC (rev 78554)
+++ trunk/dports/audio/julius/files/julius_demo 2011-05-11 23:57:07 UTC (rev 78555)
@@ -1,2 +1,2 @@
#!/bin/sh
- at prefix@/bin/julius -C @lib_inst@/fast.jconf
+ at prefix@/bin/julius -C @prefix@/lib/julius/fast.jconf "$@"
Added: trunk/dports/audio/julius/files/patch-configure.diff
===================================================================
--- trunk/dports/audio/julius/files/patch-configure.diff (rev 0)
+++ trunk/dports/audio/julius/files/patch-configure.diff 2011-05-11 23:57:07 UTC (rev 78555)
@@ -0,0 +1,24 @@
+--- configure.orig 2011-04-29 11:01:55.000000000 +0900
++++ configure 2011-05-11 22:47:29.000000000 +0900
+@@ -43,8 +43,8 @@
+ libdir='${exec_prefix}/lib'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+-infodir='${prefix}/info'
+-mandir='${prefix}/man'
++infodir='${prefix}/share/info'
++mandir='${prefix}/share/man'
+
+ # Initialize some other variables.
+ subdirs=
+@@ -1432,10 +1432,6 @@
+ *) # Relative path.
+ ac_sub_cache_file="$ac_dots$cache_file" ;;
+ esac
+- case "$ac_given_INSTALL" in
+- [/$]*) INSTALL="$ac_given_INSTALL" ;;
+- *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+- esac
+
+ echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
+ # The eval makes quoting arguments work.
Deleted: trunk/dports/audio/julius/files/patch-configure.in.diff
===================================================================
--- trunk/dports/audio/julius/files/patch-configure.in.diff 2011-05-11 22:55:56 UTC (rev 78554)
+++ trunk/dports/audio/julius/files/patch-configure.in.diff 2011-05-11 23:57:07 UTC (rev 78555)
@@ -1,84 +0,0 @@
---- libsent/configure.in.orig 2010-05-17 18:04:17.000000000 +0900
-+++ libsent/configure.in 2010-11-24 16:11:03.000000000 +0900
-@@ -181,15 +181,15 @@
- # ALSA
- has_alsa=yes
- AC_CHECK_HEADERS(alsa/asoundlib.h,,
-- AC_CHECK_HEADERS(sys/asoundlib.h,,
-+ [AC_CHECK_HEADERS(sys/asoundlib.h,,
- has_alsa=no
-- ))
-+ )])
- # OSS
- has_oss=yes
- AC_CHECK_HEADERS(sys/soundcard.h,,
-- AC_CHECK_HEADERS(machine/soundcard.h,,
-+ [AC_CHECK_HEADERS(machine/soundcard.h,,
- has_oss=no
-- ))
-+ )])
- ;;
- esac
- # ESounD
-@@ -255,7 +255,7 @@
- case $altype in
- portaudio)
- pa_system=no
-- AC_CHECK_LIB(portaudio,Pa_Initialize,AC_CHECK_HEADERS(portaudio.h, pa_system=yes))
-+ AC_CHECK_LIB(portaudio,Pa_Initialize,[AC_CHECK_HEADERS(portaudio.h, pa_system=yes)])
- if test "$pa_system" = no; then
- case "$host_os" in
- linux*)
-@@ -266,9 +266,9 @@
- ;;
- cygwin*|mingw*)
- AC_CHECK_LIB(dsound,main,
-- AC_CHECK_HEADERS(DSound.h,
-+ [AC_CHECK_HEADERS(DSound.h,
- altype="pa-dsound",
-- altype="pa-winmm"),
-+ altype="pa-winmm")],
- altype="pa-winmm")
- ;;
- esac
-@@ -456,11 +456,11 @@
- have_zlib=no;
- if test "$use_zlib" = yes; then
- AC_CHECK_LIB(z, deflate,
-- AC_CHECK_HEADERS(zlib.h,
-- have_zlib=yes;
-- gzdesc="zlib library";
-+ [AC_CHECK_HEADERS(zlib.h,
-+ [have_zlib=yes
-+ gzdesc="zlib library"
- EXTRALIB="$EXTRALIB -lz"
-- AC_DEFINE(HAVE_ZLIB)))
-+ AC_DEFINE(HAVE_ZLIB)])])
- if test "$have_zlib" = no; then
- AC_MSG_WARN([not found])
- use_zlib=no;
-@@ -493,19 +493,19 @@
- if test "$with_sndfile" = yes; then
- have_libsndfile=no
- AC_CHECK_LIB(sndfile, sf_open,
-- AC_CHECK_HEADERS(sndfile.h,
-- wavefile_support='various formats by libsndfile ver.1'
-+ [AC_CHECK_HEADERS(sndfile.h,
-+ [wavefile_support='various formats by libsndfile ver.1'
- AC_DEFINE(HAVE_LIBSNDFILE)
- AC_DEFINE(HAVE_LIBSNDFILE_VER1)
- EXTRALIB="$EXTRALIB -lsndfile"
-- have_libsndfile=yes))
-+ have_libsndfile=yes])])
- if test "$have_libsndfile" = no; then
- AC_CHECK_LIB(sndfile, sf_open_read,
-- AC_CHECK_HEADERS(sndfile.h,
-+ [AC_CHECK_HEADERS(sndfile.h,
- wavefile_support='various formats by libsndfile ver.0'
- AC_DEFINE(HAVE_LIBSNDFILE)
- EXTRALIB="$EXTRALIB -lsndfile"
-- have_libsndfile=yes))
-+ have_libsndfile=yes)])
- fi
- if test "$have_libsndfile" = no; then
- AC_MSG_WARN([libsndfile enables AIFF AU SND NIST format for Julius.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110511/64bea7e5/attachment.html>
More information about the macports-changes
mailing list