2014-05-23 18:11:44 +00:00
|
|
|
require "formula"
|
2011-06-09 15:38:06 +00:00
|
|
|
|
|
|
|
class Yarp < Formula
|
2014-05-23 18:11:44 +00:00
|
|
|
homepage "http://yarp.it"
|
|
|
|
head "https://github.com/robotology/yarp.git"
|
|
|
|
url "https://github.com/robotology/yarp/archive/v2.3.62.tar.gz"
|
|
|
|
sha1 "148fc9d77cc4b68119c31066b452e9607de0f066"
|
2012-02-22 05:12:27 +00:00
|
|
|
|
2014-05-23 18:11:44 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "ace"
|
|
|
|
depends_on "gsl"
|
|
|
|
depends_on "gtk+"
|
|
|
|
depends_on "gtkmm"
|
|
|
|
depends_on "libglademm"
|
|
|
|
depends_on "sqlite"
|
|
|
|
depends_on "readline"
|
|
|
|
depends_on "jpeg"
|
2012-07-06 15:31:11 +00:00
|
|
|
depends_on :x11
|
2011-06-09 15:38:06 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-22 21:37:04 +00:00
|
|
|
args = std_cmake_args + %W[
|
2012-05-15 21:15:46 +00:00
|
|
|
-DCREATE_LIB_MATH=TRUE
|
|
|
|
-DCREATE_GUIS=TRUE
|
|
|
|
-DCREATE_YMANAGER=TRUE
|
|
|
|
-DYARP_USE_SYSTEM_SQLITE=TRUE
|
|
|
|
-DCREATE_OPTIONAL_CARRIERS=TRUE
|
|
|
|
-DENABLE_yarpcar_mjpeg_carrier=TRUE
|
|
|
|
-DENABLE_yarpcar_rossrv_carrier=TRUE
|
|
|
|
-DENABLE_yarpcar_tcpros_carrier=TRUE
|
|
|
|
-DENABLE_yarpcar_xmlrpc_carrier=TRUE
|
2012-07-06 15:31:11 +00:00
|
|
|
-DENABLE_yarpcar_bayer_carrier=TRUE
|
|
|
|
-DUSE_LIBDC1394=FALSE
|
|
|
|
-DENABLE_yarpcar_priority_carrier=TRUE
|
|
|
|
-DCREATE_IDLS=TRUE
|
|
|
|
-DENABLE_yarpidl_thrift=TRUE
|
2012-12-20 19:43:02 +00:00
|
|
|
-DCREATE_YARPVIEW=TRUE
|
|
|
|
-DCREATE_YARPSCOPE=TRUE
|
|
|
|
-DCREATE_GYARPMANAGER=TRUE
|
2012-05-15 21:15:46 +00:00
|
|
|
.]
|
|
|
|
|
|
|
|
system "cmake", *args
|
2014-05-23 18:11:44 +00:00
|
|
|
system "make", "install"
|
2011-06-09 15:38:06 +00:00
|
|
|
end
|
2013-07-03 17:21:23 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/yarp", "check"
|
|
|
|
end
|
2011-06-09 15:38:06 +00:00
|
|
|
end
|