2011-03-15 11:05:58 +00:00
|
|
|
class CmuSphinxbase < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Lightweight speech recognition engine for mobile devices"
|
2014-06-15 22:21:58 +00:00
|
|
|
homepage "http://cmusphinx.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/cmusphinx/sphinxbase/0.8/sphinxbase-0.8.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "55708944872bab1015b8ae07b379bf463764f469163a8fd114cbb16c5e486ca8"
|
2012-06-10 18:38:59 +00:00
|
|
|
|
2015-03-03 15:49:20 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/cmusphinx/sphinxbase.git"
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "swig" => :build
|
|
|
|
end
|
|
|
|
|
2014-06-15 22:21:58 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
# If these are found, they will be linked against and there is no configure
|
|
|
|
# switch to turn them off.
|
|
|
|
depends_on "libsndfile"
|
|
|
|
depends_on "libsamplerate" => "with-libsndfile"
|
2011-03-15 11:05:58 +00:00
|
|
|
|
|
|
|
def install
|
2015-03-03 15:49:20 +00:00
|
|
|
if build.head?
|
|
|
|
ENV["NOCONFIGURE"] = "yes"
|
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
2012-06-10 18:38:59 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2011-03-15 11:05:58 +00:00
|
|
|
"--prefix=#{prefix}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2011-03-15 11:05:58 +00:00
|
|
|
end
|
|
|
|
end
|