Permalink
Browse files

librtlsdr: Added support for universal binary

Closes Homebrew/legacy-homebrew#28557.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
lassebm authored and jacknagel committed Apr 20, 2014
1 parent 63b6f8d commit ee0ec23c6c100d6d3e7012e04c0f120e9ecb9235
Showing with 7 additions and 0 deletions.
  1. +7 −0 Formula/librtlsdr.rb
View
@@ -6,11 +6,18 @@ class Librtlsdr < Formula
url "https://github.com/steve-m/librtlsdr/archive/v0.5.3.tar.gz"
sha1 "f6f20f7b0562a6d3f7b9ff7bff38a15bff175982"
option :universal
depends_on "pkg-config" => :build
depends_on "cmake" => :build
depends_on "libusb"
def install
if build.universal?
ENV.universal_binary
ENV["CMAKE_OSX_ARCHITECTURES"] = Hardware::CPU.universal_archs.as_cmake_arch_flags
end
system "cmake", ".", *std_cmake_args
system "make", "install"
end

0 comments on commit ee0ec23

Please sign in to comment.