-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathroboptim-core-plugin-cfsqp.rb
More file actions
37 lines (28 loc) · 1.04 KB
/
roboptim-core-plugin-cfsqp.rb
File metadata and controls
37 lines (28 loc) · 1.04 KB
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
require "formula"
# IMPORTANT: this package is closed-source, you *have* to be a member
# of the jrl-umi3218 organization to install this package. If you
# possess a valid CFSQP licence, please contact us.
class RoboptimCorePluginCfsqp < Formula
homepage "http://www.roboptim.net/"
head 'https://github.com/jrl-umi3218/roboptim-core-plugin-cfsqp.git'
depends_on "cmake" => :build
depends_on "doxygen" => :build
depends_on "pkg-config" => :build
depends_on "roboptim/roboptim/roboptim-core"
def install
args = std_cmake_args
# Always remove -Werror flag.
args << "-DCXX_DISABLE_WERROR:BOOL=ON"
inreplace 'CMakeLists.txt',
'ADD_REQUIRED_DEPENDENCY("roboptim-core >= 0.5")',
'ADD_REQUIRED_DEPENDENCY("roboptim-core")'
inreplace 'src/CMakeLists.txt', 'SOVERSION 1.1.0', ''
ENV.append_path "PKG_CONFIG_PATH",
"#{HOMEBREW_PREFIX}/lib/pkgconfig"
system "cmake", ".", *args
system "make", "install"
end
test do
system "pkg-config", "--cflags", "roboptim-core-plugin-cfsqp"
end
end