blob: 780b9ecebf2ebe0a7a0fdd320b92a9ad313a309b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  | 
require "formula"
class Yarp < Formula
  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"
  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"
  depends_on :x11
  def install
    args = std_cmake_args + %W[
      -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
      -DENABLE_yarpcar_bayer_carrier=TRUE
      -DUSE_LIBDC1394=FALSE
      -DENABLE_yarpcar_priority_carrier=TRUE
      -DCREATE_IDLS=TRUE
      -DENABLE_yarpidl_thrift=TRUE
      -DCREATE_YARPVIEW=TRUE
      -DCREATE_YARPSCOPE=TRUE
      -DCREATE_GYARPMANAGER=TRUE
      .]
    system "cmake", *args
    system "make", "install"
  end
  test do
    system "#{bin}/yarp", "check"
  end
end
  |