diff options
| -rw-r--r-- | Library/Formula/cmu-pocketsphinx.rb | 13 | ||||
| -rw-r--r-- | Library/Formula/cmu-sphinxbase.rb | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/cmu-pocketsphinx.rb b/Library/Formula/cmu-pocketsphinx.rb index 9050e8715..e7879582a 100644 --- a/Library/Formula/cmu-pocketsphinx.rb +++ b/Library/Formula/cmu-pocketsphinx.rb @@ -5,10 +5,23 @@ class CmuPocketsphinx < Formula url 'https://downloads.sourceforge.net/project/cmusphinx/pocketsphinx/0.8/pocketsphinx-0.8.tar.gz' sha1 'd9efdd0baddd2e47c2ba559caaca62ffa0c0eede' + 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 + depends_on 'pkg-config' => :build depends_on 'cmu-sphinxbase' def install + if build.head? + ENV["NOCONFIGURE"] = "yes" + system "./autogen.sh" + end system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" diff --git a/Library/Formula/cmu-sphinxbase.rb b/Library/Formula/cmu-sphinxbase.rb index f0306b164..e8cc24817 100644 --- a/Library/Formula/cmu-sphinxbase.rb +++ b/Library/Formula/cmu-sphinxbase.rb @@ -5,6 +5,15 @@ class CmuSphinxbase < Formula 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. @@ -12,6 +21,10 @@ class CmuSphinxbase < Formula 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}" |
