libbladerf 2018.08
Closes #33686. Signed-off-by: Igor Kapkov <igasgeek@me.com>
This commit is contained in:
parent
06005eff28
commit
d90018f499
1 changed files with 4 additions and 20 deletions
|
@ -1,9 +1,8 @@
|
|||
class Libbladerf < Formula
|
||||
desc "bladeRF USB 3.0 Superspeed Software Defined Radio Source"
|
||||
desc "USB 3.0 Superspeed Software Defined Radio Source"
|
||||
homepage "https://nuand.com/"
|
||||
url "https://github.com/Nuand/bladeRF/archive/2016.06.tar.gz"
|
||||
sha256 "6e6333fd0f17e85f968a6180942f889705c4f2ac16507b2f86c80630c55032e8"
|
||||
revision 1
|
||||
url "https://github.com/Nuand/bladeRF/archive/2018.08.tar.gz"
|
||||
sha256 "6288c230dad26e32236a4b60f0b14c129e6fa0ad91bcf1c40abe8789b352e51f"
|
||||
head "https://github.com/Nuand/bladeRF.git"
|
||||
|
||||
bottle do
|
||||
|
@ -17,23 +16,8 @@ class Libbladerf < Formula
|
|||
depends_on "pkg-config" => :build
|
||||
depends_on "libusb"
|
||||
|
||||
# Fix cmake issue https://github.com/Nuand/bladeRF/issues/509
|
||||
# Remove for next version
|
||||
patch do
|
||||
url "https://github.com/Nuand/bladeRF/commit/037e2886.diff?full_index=1"
|
||||
sha256 "53de19bb7ce0790e5e5795ec8b95ac2014e3c883ceec13d6162f3d6362b77fea"
|
||||
end
|
||||
|
||||
# Fix clockid_t failure https://github.com/Nuand/bladeRF/issues/493
|
||||
# Remove for next version
|
||||
if MacOS.version >= :sierra
|
||||
patch do
|
||||
url "https://github.com/Nuand/bladeRF/commit/21690e5d.diff?full_index=1"
|
||||
sha256 "9104dd0eed5073ba9ff2ea2b464bbe07f497928cd5023e1d5b417b595bc24029"
|
||||
end
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.prepend "CFLAGS", "-I#{MacOS.sdk_path}/usr/include/malloc"
|
||||
mkdir "host/build" do
|
||||
system "cmake", "..", *std_cmake_args
|
||||
system "make", "install"
|
||||
|
|
Loading…
Reference in a new issue