blob: e8cc24817a2a9036767e3dd97ac551d7f4960dae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
require "formula"
class CmuSphinxbase < Formula
homepage "http://cmusphinx.sourceforge.net/"
url "https://downloads.sourceforge.net/project/cmusphinx/sphinxbase/0.8/sphinxbase-0.8.tar.gz"
sha1 "c0c4d52e143d07cd593bd6bcaeb92b9a8a5a8c8e"
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
|