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-03-24 07:09:45 +00:00
|
|
|
url "https://github.com/OpenLightingProject/ola/releases/download/0.9.0/ola-0.9.0.tar.gz"
|
|
|
|
sha1 "aff9bf0802d4e6fcbdc5a2ffcdb7ba25d67fd209"
|
|
|
|
|
2014-03-24 14:01:01 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "6e6b052f3c4f7dd4f413be82bc8858265c156e56" => :mavericks
|
|
|
|
sha1 "4104956ee3b641f353bc4d24c5edcf9c6888d3e8" => :mountain_lion
|
|
|
|
sha1 "449b86401a2aa4ac6445a7839fe82035a747d264" => :lion
|
|
|
|
end
|
|
|
|
|
2014-03-24 07:09:45 +00:00
|
|
|
option :universal
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
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
|