homebrew-core/Formula/cmu-sphinxbase.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes .

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

32 lines
1 KiB
Ruby

class CmuSphinxbase < Formula
desc "Lightweight speech recognition engine for mobile devices"
homepage "http://cmusphinx.sourceforge.net/"
url "https://downloads.sourceforge.net/project/cmusphinx/sphinxbase/0.8/sphinxbase-0.8.tar.gz"
sha256 "55708944872bab1015b8ae07b379bf463764f469163a8fd114cbb16c5e486ca8"
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
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"
def install
if build.head?
ENV["NOCONFIGURE"] = "yes"
system "./autogen.sh"
end
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end