This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
forked from PX4/homebrew-px4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fastrtps.rb
47 lines (40 loc) · 1.4 KB
/
fastrtps.rb
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
require 'formula'
class Fastrtps < Formula
homepage "http://www.eprosima.com/index.php/products-all/eprosima-fast-rtps"
version "1.5.0"
desc "OMG RTPS / DDS implementation."
url "http://px4-tools.s3.amazonaws.com/fastrtps-v1.5.0p.tar.gz"
sha256 "c1e807bb05fe23929525731c9a85d26a23f3a132ffce29c905c37d0fd2d37805"
depends_on "cmake" => :build
depends_on "gradle" => :build
depends_on :java
bottle do
root_url "http://px4-tools.s3.amazonaws.com"
cellar :any
sha256 "e33d048df94b0e4efcdc5249a979f6c3780607d96ef1a1f767c54ab425a4418a" => :sierra
end
patch :p0, 'diff --git CMakeLists.txt CMakeLists.txt
index ee7fc73b..eed6f0b4 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -373,10 +373,10 @@ install(FILES ${PROJECT_SOURCE_DIR}/LICENSE
set(CPACK_COMPONENT_LICENSES_HIDDEN 1)
# Install examples
-install(DIRECTORY ${PROJECT_SOURCE_DIR}/examples/C++
- DESTINATION examples/
- COMPONENT examples
- )
+#install(DIRECTORY ${PROJECT_SOURCE_DIR}/examples/C++
+# DESTINATION examples/
+# COMPONENT examples
+# )
set(CPACK_COMPONENT_EXAMPLES_DISPLAY_NAME "Examples")
set(CPACK_COMPONENT_EXAMPLES_DESCRIPTION "eProsima ${PROJECT_NAME_LARGE} examples")'
def install
Dir.mkdir("./build")
Dir.chdir("./build")
system "cmake", "-DTHIRDPARTY=ON", "-DBUILD_JAVA=ON", "-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}", ".."
system "make"
system "make", "install"
end
end