forked from dholm/homebrew-sdr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgr-iqbal.rb
39 lines (32 loc) · 970 Bytes
/
gr-iqbal.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
class GrIqbal < Formula
homepage "http://www.osmocom.org/"
head "git://git.osmocom.org/gr-iqbal"
depends_on "cmake" => :build
depends_on "boost"
depends_on "fftw"
depends_on "gnuradio"
patch :DATA
def install
mkdir "build" do
ENV.append "LDFLAGS", "-Wl,-undefined,dynamic_lookup"
# Point Python library to existing path or CMake test will fail.
args = %W[
-DCMAKE_SHARED_LINKER_FLAGS='-Wl,-undefined,dynamic_lookup'
-DPYTHON_LIBRARY='#{HOMEBREW_PREFIX}/lib/libgnuradio-runtime.dylib'
] + std_cmake_args
system "cmake", "..", *args
system "make", "install"
end
end
end
__END__
--- a/lib/optimize_c.cc 2014-11-29 19:47:42.000000000 +0100
+++ b/lib/optimize_c.cc 2014-11-29 19:48:07.000000000 +0100
@@ -31,7 +31,7 @@
__GNUC_PATCHLEVEL__ \
)
-#if GCC_VERSION >= 40800
+#if GCC_VERSION >= 40800 || defined(__clang__)
# define complex _Complex
# undef _GLIBCXX_HAVE_COMPLEX_H
#endif