diff options
| author | francesco-romano | 2014-06-24 10:34:57 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-06-24 15:59:37 +0100 |
| commit | 7fe232fa25838bafb6d5539eaf7748fca6ecab27 (patch) | |
| tree | 56db1edb2404eea2bffe3707bd84926c8a7096ce /Library/Formula | |
| parent | 19cb12d705c52998c23bcd2bf2fe4e106b1d3bcb (diff) | |
| download | homebrew-7fe232fa25838bafb6d5539eaf7748fca6ecab27.tar.bz2 | |
yarp: default to building shared libraries.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/yarp.rb | 11 |
1 files changed, 10 insertions, 1 deletions
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" |
