aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/l-smash.rb
blob: 5c2d8acc0a7f7f1f3fc528bdd5de1e97ef3c3f2b (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://l-smash.github.io/l-smash/"
  url "https://github.com/l-smash/l-smash.git", :tag => "v1.11.15", :shallow => false
  head "https://github.com/l-smash/l-smash.git"

  bottle do
    cellar :any
    sha1 "1adaf173e775c8a8391f0aa86b022a983842889e" => :mavericks
    sha1 "891f49e1d5589fb705eb52e89e7656df259feb2c" => :mountain_lion
    sha1 "ca37cd43d1a0abcd702a3bb0316ba7ae2af8bd63" => :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