aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/l-smash.rb
blob: 14ba246ce0a71f9216a41bb6c36a352af350ba5d (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
require "formula"

class LSmash < Formula
  homepage "http://up-cat.net/L%252DSMASH.html"
  url "https://github.com/l-smash/l-smash.git", :tag => "v1.11.7", :shallow => false
  head "https://github.com/l-smash/l-smash.git"

  bottle do
    cellar :any
    sha1 "8e76e28f5f8727e19e872ef410569e42b720468d" => :mavericks
    sha1 "dc3a85de0c338dfebdc68e69ea5957639103c797" => :mountain_lion
    sha1 "e112033ac79be6aedf04a25cd76d4b815253d5a6" => :lion
  end

  def install
    args = ["--prefix=#{prefix}", "--enable-shared"]

    # For getting version information correctly in the configure
    buildpath.install_symlink cached_download/".git"

    system "./configure", *args
    system "make", "install"
  end

  test do
    system "#{bin}/boxdumper", "-v"
    system "#{bin}/muxer", "-v"
    system "#{bin}/remuxer", "-v"
    system "#{bin}/timelineeditor", "-v"
  end
end