libfreenct: support --universal

Closes Homebrew/homebrew#18962.
master
Adam Vandenberg 2013-04-04 08:50:53 -07:00
parent 8df80e0e10
commit 54b8f84b55
1 changed files with 6 additions and 0 deletions

View File

@ -7,10 +7,16 @@ class Libfreenect < Formula
head 'https://github.com/OpenKinect/libfreenect.git'
option :universal
depends_on 'cmake' => :build
depends_on 'libusb'
def install
if build.universal?
ENV.universal_binary
ENV['CMAKE_OSX_ARCHITECTURES'] = "i386;x86_64"
end
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make install"