2014-12-03 20:55:08 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Dsd < Formula
|
|
|
|
homepage "http://wiki.radioreference.com/index.php/Digital_Speech_Decoder_%28software_package%29"
|
|
|
|
head "https://github.com/szechyjs/dsd.git"
|
|
|
|
url "https://github.com/szechyjs/dsd/archive/v1.6.0.tar.gz"
|
|
|
|
sha1 "0161a0b1090ae30b5413e24b29b54d2392a3b0ff"
|
|
|
|
|
2014-12-03 21:08:46 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "078526fcb83180832b34282f717a9811f54d6d85" => :yosemite
|
|
|
|
sha1 "a86e78c5668c89567b9c0c3a46c630268901f4d7" => :mavericks
|
|
|
|
sha1 "7c835fae91c450e912811b7c5d3c173564283623" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-12-03 20:55:08 +00:00
|
|
|
patch do
|
|
|
|
# Fixes build on MacOS X.
|
|
|
|
url "https://github.com/szechyjs/dsd/commit/e40c32d8addf3ab94dae42d8c0fcf9ef27e453c2.diff"
|
|
|
|
sha1 "3c122d4e841cfbcb0653a810ce62dc038a5a54bf"
|
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "libsndfile"
|
|
|
|
depends_on "mbelib"
|
|
|
|
depends_on "itpp"
|
|
|
|
depends_on "portaudio"
|
|
|
|
|
|
|
|
def install
|
|
|
|
mkdir "build" do
|
|
|
|
system "cmake", "..", *std_cmake_args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "dsd", "-h"
|
|
|
|
end
|
|
|
|
end
|