-
-
Save ask0n/54f03cc9d63c0aecac1a6994bbbd5b29 to your computer and use it in GitHub Desktop.
sdrangel macOS M1 / M2 ARM
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
# 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 "" | |
homepage "" | |
url "https://github.com/f4exb/sdrangel/archive/refs/tags/v7.15.4.tar.gz" | |
sha256 "990528f539c8e21f9af88c4c41adc69135ce6fc04298ac6dd4406a417ebd485d" | |
license "" | |
++ depends_on "qt5" | |
depends_on "cmake" => :build | |
def install | |
# ENV.deparallelize # if your formula fails when building in parallel | |
system "cmake", "-S", ".", "-B", "build", *std_cmake_args | |
system "cmake", "--build", "build" | |
system "cmake", "--install", "build" | |
end | |
test do | |
# `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 |
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
# ensure you're up to date | |
brew update | |
brew upgrade | |
# creaet custom fromula | |
brew create --set-name sdrangel --cmake https://github.com/f4exb/sdrangel/archive/refs/tags/v7.15.4.tar.gz | |
# add qt5 as depends_on | |
# don't copy the ++ ist's just for higlighting what was added | |
# see other file here | |
vi /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/s/sdrangel.rb | |
brew install qt5 | |
brew install boost | |
brew install opencv | |
brew install codec2 | |
brew install hidapi | |
brew install fftw | |
# login to github to be able to load all the packages | |
# https://cli.github.com/manual/gh_auth_login | |
gh auth login --hostname github.com | |
# build from source | |
brew install --build-from-source /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/s/sdrangel.rb | |
# check install | |
which sdrangel | |
# run it | |
sdrangel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment