2014-03-24 07:09:45 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Ola < Formula
|
2014-03-29 17:02:27 +00:00
|
|
|
homepage "http://www.openlighting.org/ola/"
|
2014-09-23 14:35:05 +00:00
|
|
|
url "https://github.com/OpenLightingProject/ola/releases/download/0.9.2/ola-0.9.2.tar.gz"
|
|
|
|
sha1 "f9cedbb9bf8e568803f296b7ec8bdfcf74ae5bab"
|
2014-03-24 07:09:45 +00:00
|
|
|
|
2014-03-24 14:01:01 +00:00
|
|
|
bottle do
|
2014-09-23 14:41:19 +00:00
|
|
|
sha1 "d9f67796fc3228e94d07cead6a91dfccbe3a2f2b" => :mavericks
|
|
|
|
sha1 "1b2577335ce33aa83e4bceb27260a585bce06b91" => :mountain_lion
|
|
|
|
sha1 "de23fe04b9a29273c61d58287d540f90db9ab662" => :lion
|
2014-03-24 14:01:01 +00:00
|
|
|
end
|
|
|
|
|
2014-03-24 07:09:45 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-07-21 01:55:49 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-03-24 07:09:45 +00:00
|
|
|
depends_on "cppunit"
|
|
|
|
depends_on "protobuf-c"
|
|
|
|
depends_on "libmicrohttpd"
|
|
|
|
depends_on "libusb"
|
|
|
|
depends_on "liblo"
|
2014-03-29 17:02:27 +00:00
|
|
|
depends_on :python => :optional
|
2014-03-24 07:09:45 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
2014-03-29 17:02:27 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-fatal-warnings
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-silent-rules
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
args << "--enable-python-libs" if build.with? "python"
|
|
|
|
|
|
|
|
system "./configure", *args
|
2014-03-24 07:09:45 +00:00
|
|
|
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-05-20 22:47:04 +00:00
|
|
|
system bin/"ola_plugin_info"
|
2014-03-24 07:09:45 +00:00
|
|
|
end
|
|
|
|
end
|