forked from swrede/homebrew-formulas
-
Notifications
You must be signed in to change notification settings - Fork 2
/
liboncilla.rb
55 lines (46 loc) · 1.64 KB
/
liboncilla.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
48
49
50
51
52
53
54
require 'formula'
class Liboncilla < Formula
def patches
# fix for errorneous linker flag on MacOS 10.7
DATA
end
homepage 'https://toolkit.cit-ec.uni-bielefeld.de'
url 'https://redmine.amarsi-project.eu/git/quaddrivers.git', :using => :git
version '0.3'
head 'https://redmine.amarsi-project.eu/git/quaddrivers.git', :using => :git
option :universal
depends_on 'cmake' => :build
depends_on 'rci'
depends_on 'biorob-cpp'
def install
# ENV.x11 # if your formula requires any X11 headers
# ENV.deparallelize # if your formula's build system can't parallelize
ENV.universal_binary if build.universal?
args = std_cmake_args
system "cmake", ".", *args
system "make install" # if this fails, try separate make/make install steps
end
def test
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test rsb`.
system "false"
end
end
__END__
diff --git a/src/liboncilla/CMakeLists.txt b/src/liboncilla/CMakeLists.txt
index 5338204..80c97b9 100644
--- a/src/liboncilla/CMakeLists.txt
+++ b/src/liboncilla/CMakeLists.txt
@@ -42,9 +42,8 @@ target_link_libraries(oncilla
set_target_properties(oncilla
PROPERTIES
VERSION ${VERSION_STRING}
- SOVERSION ${VERSION_ABI}
- LINK_FLAGS "-Wl,-unresolved-symbols=ignore-in-shared-libs")
-
+ SOVERSION ${VERSION_ABI})
+
install(TARGETS oncilla
EXPORT LibOncillaDepends
DESTINATION lib)