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-12-01 21:39:07 +00:00
|
|
|
url "https://github.com/OpenLightingProject/ola/releases/download/0.9.3/ola-0.9.3.tar.gz"
|
|
|
|
sha1 "f6a81087761218063a4bb8006b73ffa407cd0170"
|
2014-03-24 07:09:45 +00:00
|
|
|
|
2014-03-24 14:01:01 +00:00
|
|
|
bottle do
|
2014-12-02 10:09:20 +00:00
|
|
|
sha1 "084b25099b2eaf5d90a69ebc20b43c0cf338b614" => :yosemite
|
|
|
|
sha1 "64e7e1a34c1840a7315449a3cc037f07bb75407a" => :mavericks
|
|
|
|
sha1 "4a4d4b3b9909d0e40b9c4658fc7f41713bc20a0a" => :mountain_lion
|
2014-03-24 14:01:01 +00:00
|
|
|
end
|
|
|
|
|
2014-12-01 21:39:07 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/OpenLightingProject/ola.git"
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
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-12-01 21:39:07 +00:00
|
|
|
depends_on "ossp-uuid"
|
2014-03-29 17:02:27 +00:00
|
|
|
depends_on :python => :optional
|
2014-12-01 21:39:07 +00:00
|
|
|
depends_on "doxygen" => :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-fatal-warnings
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-silent-rules
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
2014-12-01 21:39:07 +00:00
|
|
|
|
2014-03-29 17:02:27 +00:00
|
|
|
args << "--enable-python-libs" if build.with? "python"
|
2014-12-01 21:39:07 +00:00
|
|
|
args << "--enable-doxygen-man" if build.with? "doxygen"
|
2014-03-29 17:02:27 +00:00
|
|
|
|
2014-12-01 21:39:07 +00:00
|
|
|
system "autoreconf", "-i" if build.head?
|
2014-03-29 17:02:27 +00:00
|
|
|
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
|