Created
November 13, 2012 16:03
-
-
Save edy555/4066607 to your computer and use it in GitHub Desktop.
gr-air-modes Homebrew Formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class GrAirModes < Formula | |
homepage 'http://www.hamradioscience.com/the-rtl-2832u-sdr-and-ads-b/' | |
head 'https://github.com/bistromath/gr-air-modes.git' | |
depends_on 'cmake' => :build | |
depends_on 'gnuradio' | |
depends_on 'rtlsdr' | |
depends_on 'boost' | |
def patches | |
DATA | |
end | |
def install | |
mkdir 'build' do | |
system 'cmake', '..', *std_cmake_args << "-DPYTHON_LIBRARY=#{python_path}/Frameworks/Python.framework/" | |
system 'make _air_modes_swig' | |
system 'make' | |
system 'make install' | |
end | |
end | |
def python_path | |
python = Formula.factory('python') | |
kegs = python.rack.children.reject { |p| p.basename.to_s == '.DS_Store' } | |
kegs.find { |p| Keg.new(p).linked? } || kegs.last | |
end | |
end | |
__END__ | |
diff --git a/cmake/Modules/FindQwt.cmake b/cmake/Modules/FindQwt.cmake | |
index f2cf344..1910bd5 100644 | |
--- a/cmake/Modules/FindQwt.cmake | |
+++ b/cmake/Modules/FindQwt.cmake | |
@@ -6,6 +6,7 @@ | |
find_path (QWT_INCLUDE_DIRS | |
NAMES qwt_plot.h | |
PATHS | |
+ /usr/local/lib/qwt.framework/Headers | |
/usr/local/include/qwt-qt4 | |
/usr/local/include/qwt | |
/usr/include/qwt-qt4 | |
@@ -17,6 +18,7 @@ find_path (QWT_INCLUDE_DIRS | |
find_library (QWT_LIBRARIES | |
NAMES qwt-qt4 qwt | |
PATHS | |
+ /usr/local/lib/qwt.framework | |
/usr/local/lib | |
/usr/lib | |
/opt/local/lib | |
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt | |
index 9ed79ae..4709d34 100644 | |
--- a/lib/CMakeLists.txt | |
+++ b/lib/CMakeLists.txt | |
@@ -22,6 +22,8 @@ | |
######################################################################## | |
include(GrPlatform) #define LIB_SUFFIX | |
+find_package(Boost COMPONENTS system) | |
+ | |
add_library(air_modes SHARED | |
air_modes_preamble.cc | |
air_modes_slicer.cc |
GUI [option]
Install pyqt4 and qwt before gr-air-modes.
$ brew install pyqt qwt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to install gr-air-modes with Homebrew