aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/l-smash.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/l-smash.rb b/Library/Formula/l-smash.rb
new file mode 100644
index 000000000..dbedfacf6
--- /dev/null
+++ b/Library/Formula/l-smash.rb
@@ -0,0 +1,24 @@
+require "formula"
+
+class LSmash < Formula
+ homepage "http://up-cat.net/L%252DSMASH.html"
+ url "https://github.com/l-smash/l-smash.git", :tag => "v1.5.2", :shallow => false
+ head "https://github.com/l-smash/l-smash.git"
+
+ 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