2011-03-15 11:05:58 +00:00
|
|
|
class CmuPocketsphinx < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Lightweight speech recognition engine for mobile devices"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://cmusphinx.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/cmusphinx/pocketsphinx/0.8/pocketsphinx-0.8.tar.gz"
|
|
|
|
sha256 "874c4c083d91c8ff26a2aec250b689e537912ff728923c141c4dac48662cce7a"
|
2011-03-15 11:05:58 +00:00
|
|
|
|
2015-03-03 15:49:20 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/cmusphinx/pocketsphinx.git"
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "swig" => :build
|
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "cmu-sphinxbase"
|
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
|
2011-03-15 11:05:58 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2011-03-15 11:05:58 +00:00
|
|
|
end
|
|
|
|
end
|