forked from titanous/homebrew-gnuradio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathop25.rb
89 lines (76 loc) · 2.47 KB
/
op25.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Op25 < Formula
homepage 'http://op25.osmocom.org'
head 'http://op25.osmocom.org/svn/trunk', :using => :svn
sha1 ''
depends_on 'automake' => :build
depends_on 'fftw'
depends_on 'libusb'
depends_on 'itpp'
depends_on 'ettus-uhd'
env :userpaths
fails_with :clang do
build 421
cause <<-EOS.undent
Too many errors...
EOS
end
# depends_on 'cmake' => :build
depends_on :x11 # if your formula requires any X11/XQuartz components
def patches
DATA
end
def install
# ENV.j1 # if your formula's build system can't parallelize
#
cd "blocks"
system "./bootstrap"
system "./configure", "--prefix=#{prefix}"
# system "cmake", ".", *std_cmake_args
system "make"
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 op25`.
system "false"
end
end
__END__
diff --git a/blocks/bootstrap b/blocks/bootstrap
index dabd4d2..ccb323c 100755
--- a/blocks/bootstrap
+++ b/blocks/bootstrap
@@ -25,5 +25,5 @@ rm -fr config.cache autom4te*.cache
aclocal -I config
autoconf
autoheader
-libtoolize --automake
+glibtoolize --automake
automake --add-missing -c -f
diff --git a/blocks/Makefile.common b/blocks/Makefile.common
index f9c7f21..126b54b 100644
--- a/blocks/Makefile.common
+++ b/blocks/Makefile.common
@@ -38,7 +38,7 @@ grpyexecdir = $(pyexecdir)/gnuradio
# swig flags
SWIGPYTHONFLAGS = -fvirtual -python -modern
-SWIGGRFLAGS = -I$(GNURADIO_CORE_INCLUDEDIR)/swig -I$(gruelincludedir)/swig -I$(GNURADIO_CORE_INCLUDEDIR)
+SWIGGRFLAGS = -I$(GNURADIO_CORE_INCLUDEDIR)/swig -I$(GNURADIO_CORE_INCLUDEDIR)/../gruel/swig -I$(GNURADIO_CORE_INCLUDEDIR)
# Don't assume that make predefines $(RM), because BSD make does
# not. We define it now in configure.ac using AM_PATH_PROG, but now
diff --git a/blocks/configure.ac b/blocks/configure.ac
index a8d25de..495de23 100644
--- a/blocks/configure.ac
+++ b/blocks/configure.ac
@@ -22,7 +22,7 @@ dnl
AC_INIT
AC_PREREQ(2.57)
AC_CONFIG_SRCDIR([src/lib/op25.i])
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
AC_CANONICAL_TARGET([])
AM_INIT_AUTOMAKE(op25,0.0.1)