yarp: default to building shared libraries.

master
francesco-romano 2014-06-24 10:34:57 +02:00 committed by Mike McQuaid
parent c0b9451b58
commit e6e493ba00
1 changed files with 10 additions and 1 deletions

View File

@ -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"