aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ola.rb
blob: c57d898bb0044f03450096e51d55802c01c12e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require "formula"

class Ola < Formula
  homepage "http://www.openlighting.org"
  url "https://github.com/OpenLightingProject/ola/releases/download/0.9.0/ola-0.9.0.tar.gz"
  sha1 "aff9bf0802d4e6fcbdc5a2ffcdb7ba25d67fd209"

  option :universal

  depends_on 'pkg-config' => :build
  depends_on "cppunit"
  depends_on "protobuf-c"
  depends_on "libmicrohttpd"
  depends_on "libusb"
  depends_on "liblo"

  def install
    ENV.universal_binary if build.universal?

    system "./configure", "--disable-debug",
                          "--disable-fatal-warnings",
                          "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"

    system "make", "install"
  end

  test do
    system "ola_plugin_info"
  end
end