libvo-amrwbenc

最近はHomebrewでは test blockがない新規Formulaは絶対に採用されないようになって、新規にscriptを書いても、Testを作るのがだるくって自分専用になるんですよ。

The following script installs libvo-amrwbenc(vo-amrwbenc) on OSX with Homebrew.
Save as "vo-amrwbenc.rb" into Homebrew's "Formula" folder (You may find "/usr/local/Homebrew/Library/Tap/homebrew/homebrew-core/Formula").
And do "brew install -s vo-amrwbenc".

class VoAmrwbenc < Formula
  desc "the Adaptive MultiRate Wideband (AMR-WB) audio codec"
  homepage "https://github.com/mstorsjo/vo-amrwbenc"
  url "https://github.com/mstorsjo/vo-amrwbenc/archive/v0.1.3.tar.gz"
  sha256 "85c79997ba7ddb9c95b5ddbe9ea032e27595390f3cbd686ed46a69e485cc053c"

  depends_on "autoconf" => :build
  depends_on "automake" => :build
  depends_on "libtool" => :build

  def install
    system "autoreconf", "-iv"
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"
    system "make", "install"
  end
end