Created
March 15, 2014 11:00
-
-
Save henry0312/9565204 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "formula" | |
class LSmash < Formula | |
homepage "http://up-cat.net/L%252DSMASH.html" | |
url "https://github.com/l-smash/l-smash/archive/v1.3.2.tar.gz" | |
sha1 "1d95da3d90df1b4d549b7cccacf8575b4f8ead8b" | |
head "https://github.com/l-smash/l-smash.git" | |
option "disable-static", "doesn't compile static library" | |
option "enable-shared", "also compile shared library besides static library" | |
option "enable-debug", "compile with debug symbols and never strip" | |
def install | |
args = ["--prefix=#{prefix}"] | |
args << "--disable-static" if build.include? "disable-static" | |
args << "--enable-shared" if build.include? "enable-shared" | |
args << "--enable-debug" if build.include? "enable-debug" | |
system "./configure", *args | |
system "make", "install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment