airspy 1.0.6 (new formula)
Closes Homebrew/homebrew#44581. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>master
parent
88fd699ec9
commit
b042489852
|
@ -0,0 +1,35 @@
|
|||
class Airspy < Formula
|
||||
desc "The usemode driver and associated tools for airspy"
|
||||
homepage "http://www.airspy.com"
|
||||
url "https://github.com/airspy/host/archive/v1.0.6.tar.gz"
|
||||
sha256 "58a80db62a178c04f52172e25921f2e1b67f1efaf36e4c808e5b5eeb8f6dbfd9"
|
||||
head "https://github.com/airspy/host.git"
|
||||
|
||||
option :universal
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "cmake" => :build
|
||||
depends_on "libusb"
|
||||
|
||||
def install
|
||||
args = std_cmake_args
|
||||
|
||||
libusb = Formula["libusb"]
|
||||
args << "-DLIBUSB_INCLUDE_DIR=#{libusb.opt_include}/libusb-1.0"
|
||||
args << "-DLIBUSB_LIBRARIES=#{libusb.opt_lib}/libusb-1.0.dylib"
|
||||
|
||||
if build.universal?
|
||||
ENV.universal_binary
|
||||
args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}"
|
||||
end
|
||||
|
||||
mkdir "build" do
|
||||
system "cmake", "..", *args
|
||||
system "make", "install"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match version.to_s, shell_output("#{bin}/airspy_lib_version").chomp
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue