[77812] trunk/dports/audio
ryandesign at macports.org
ryandesign at macports.org
Wed Apr 13 21:32:26 PDT 2011
Revision: 77812
http://trac.macports.org/changeset/77812
Author: ryandesign at macports.org
Date: 2011-04-13 21:32:23 -0700 (Wed, 13 Apr 2011)
Log Message:
-----------
julius: new port, version 4.1.5.1; see #29076
Added Paths:
-----------
trunk/dports/audio/julius/
trunk/dports/audio/julius/Portfile
trunk/dports/audio/julius/files/
trunk/dports/audio/julius/files/julius_demo
trunk/dports/audio/julius/files/patch-configure.in.diff
Added: trunk/dports/audio/julius/Portfile
===================================================================
--- trunk/dports/audio/julius/Portfile (rev 0)
+++ trunk/dports/audio/julius/Portfile 2011-04-14 04:32:23 UTC (rev 77812)
@@ -0,0 +1,77 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name julius
+version 4.1.5.1
+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 \
+ 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
+
+distfiles ${distname}${extract.suffix}:julius
+
+checksums ${distname}${extract.suffix} \
+ sha1 bf746719ea05095ead4be70cf27b52ae77ed5b37 \
+ rmd160 904738b1f5cd26bf42fe29f10961d42217be0e86
+
+patchfiles patch-configure.in.diff
+
+use_autoconf yes
+
+pre-configure {
+ foreach dir { mkgshmm gramtools jcontrol julius libjulius libsent } {
+ ui_debug "Running autoconf in ${dir}"
+ system "cd ${worksrcpath}/$dir && ${prefix}/bin/autoconf"
+ }
+}
+
+default_variants +kit
+
+set kit_name dictation-kit
+set kit_version v4.1
+set dictation_kit ${kit_name}-${kit_version}
+
+variant kit description {Add dictation kit and a demo script} {
+ distfiles-append ${dictation_kit}${extract.suffix}:dictation_kit
+
+ 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}
+ # configure the dictation kit.
+ set conf_dest ${lib_dest}/fast.jconf
+ reinplace "s| model/| ${lib_inst}/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}
+ }
+}
+
+livecheck.type regex
+livecheck.url http://sourceforge.jp/projects/${name}/releases/rss
+livecheck.regex <title>${name}.* - (\[0-9.a-z\-\]+)</title>
Property changes on: trunk/dports/audio/julius/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/audio/julius/files/julius_demo
===================================================================
--- trunk/dports/audio/julius/files/julius_demo (rev 0)
+++ trunk/dports/audio/julius/files/julius_demo 2011-04-14 04:32:23 UTC (rev 77812)
@@ -0,0 +1,2 @@
+#!/bin/sh
+ at prefix@/bin/julius -C @lib_inst@/fast.jconf
Added: trunk/dports/audio/julius/files/patch-configure.in.diff
===================================================================
--- trunk/dports/audio/julius/files/patch-configure.in.diff (rev 0)
+++ trunk/dports/audio/julius/files/patch-configure.in.diff 2011-04-14 04:32:23 UTC (rev 77812)
@@ -0,0 +1,84 @@
+--- 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/20110413/6a80f750/attachment.html>
More information about the macports-changes
mailing list