Created
August 14, 2024 20:11
-
-
Save ritesh/471fe8e8afdd17e3e2c28887b38df3a2 to your computer and use it in GitHub Desktop.
Brewfile attempt for SDRAngel
This file contains hidden or 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
# Note that this gets SDRAngel running, but I don't know how dependencies work in cmake and what deps are mandatory for | |
# a good user experience. For example, this doesn't set up ggmorse! (TODO) | |
# To create this file yourself, install homebrew core and then | |
# brew create --set-name sdrangel --cmake https://github.com/f4exb/sdrangel/archive/refs/tags/v7.22.0.tar.gz | |
# This should pop-up a code editor to edit sdrangel.rb, add the following lines | |
# --------------------------------------------------------- | |
# Documentation: https://docs.brew.sh/Formula-Cookbook | |
# https://rubydoc.brew.sh/Formula | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class Sdrangel < Formula | |
desc "SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube" | |
homepage "https://www.sdrangel.org" | |
url "https://github.com/f4exb/sdrangel/archive/refs/tags/v7.22.0.tar.gz" | |
sha256 "953db1e2d174e2a0ae95209333e3de3538ec886126c3b253cc685a6b68fb19e0" | |
license "GPL-3.0" | |
depends_on "cmake" => :build | |
depends_on 'qt@5' => :build | |
depends_on '[email protected]' => :build | |
depends_on 'boost' | |
depends_on 'fftw' | |
depends_on 'opus' | |
depends_on 'pkg-config' | |
depends_on 'soapysdr' | |
depends_on 'soapyrtlsdr' | |
# TODO: add the other SDRs like hackrf etc. I only have an rtlsdr | |
# TOD: lots of other (optional?) dependencies missing, like ggmorse - not sure how to add them in yet | |
def install | |
system "cmake", "-S", ".", "-B", "build", *std_cmake_args | |
system "cmake", "--build", "build" | |
system "cmake", "--install", "build" | |
end | |
test do | |
# TODO add test | |
# `test do` will create, run in and delete a temporary directory. | |
# | |
# This test will fail and we won't accept that! For Homebrew/homebrew-core | |
# this will need to be a test that verifies the functionality of the | |
# software. Run the test with `brew test sdrangel`. Options passed | |
# to `brew install` such as `--HEAD` also need to be provided to `brew test`. | |
# | |
# The installed folder is not in the path, so use the entire path to any | |
# executables being tested: `system bin/"program", "do", "something"`. | |
system "false" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment