Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
ola: add rdm-tests option
Browse files Browse the repository at this point in the history
Closes #48575.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
peternewman authored and DomT4 committed Mar 25, 2016
1 parent 95a823a commit 52b37f1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Library/Formula/ola.rb
Expand Up @@ -20,22 +20,29 @@ class Ola < Formula

option :universal
option "with-ftdi", "Install FTDI USB plugin for OLA."
# RDM tests require protobuf-c --with-python to work
option "with-rdm-tests", "Install RDM Tests for OLA."

depends_on "pkg-config" => :build
depends_on "cppunit"
depends_on "protobuf-c"
depends_on "libmicrohttpd"
depends_on "libusb"
depends_on "liblo"
depends_on "ossp-uuid"
depends_on :python => :optional
depends_on "libusb" => :recommended
depends_on "liblo" => :recommended
depends_on "doxygen" => :optional

if build.with? "ftdi"
depends_on "libftdi"
depends_on "libftdi0"
end

if build.with? "rdm-tests"
depends_on :python if MacOS.version <= :snow_leopard
else
depends_on :python => :optional
end

def install
ENV.universal_binary if build.universal?

Expand All @@ -47,6 +54,7 @@ def install
]

args << "--enable-python-libs" if build.with? "python"
args << "--enable-rdm-tests" if build.with? "rdm-tests"
args << "--enable-doxygen-man" if build.with? "doxygen"

system "autoreconf", "-fvi" if build.head?
Expand Down

0 comments on commit 52b37f1

Please sign in to comment.