From 7fe232fa25838bafb6d5539eaf7748fca6ecab27 Mon Sep 17 00:00:00 2001 From: francesco-romano Date: Tue, 24 Jun 2014 10:34:57 +0200 Subject: yarp: default to building shared libraries. --- Library/Formula/yarp.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/yarp.rb b/Library/Formula/yarp.rb index 780b9eceb..83e5450f3 100644 --- a/Library/Formula/yarp.rb +++ b/Library/Formula/yarp.rb @@ -6,6 +6,8 @@ class Yarp < Formula url "https://github.com/robotology/yarp/archive/v2.3.62.tar.gz" sha1 "148fc9d77cc4b68119c31066b452e9607de0f066" + option "without-shared", "Build only static version of YARP libraries" + depends_on "pkg-config" => :build depends_on "cmake" => :build depends_on "ace" @@ -37,7 +39,14 @@ class Yarp < Formula -DCREATE_YARPVIEW=TRUE -DCREATE_YARPSCOPE=TRUE -DCREATE_GYARPMANAGER=TRUE - .] + ] + + if build.without? "shared" + args << "-DCREATE_SHARED_LIBRARY:BOOL=FALSE" + else + args << "-DCREATE_SHARED_LIBRARY:BOOL=TRUE" + end + args << "." system "cmake", *args system "make", "install" -- cgit v1.2.3