Permalink
Browse files

Prefer "-DCMAKE..." over environment variables

  • Loading branch information...
jacknagel committed May 10, 2014
1 parent 038e150 commit 1a74f6665c54c9224ea413297f52bf45aa7ba47c
Showing with 16 additions and 7 deletions.
  1. +4 −2 Formula/libbtbb.rb
  2. +5 −2 Formula/libfreenect.rb
  3. +7 −3 Formula/librtlsdr.rb
View
@@ -14,13 +14,15 @@ class Libbtbb < Formula
depends_on "python"
def install
args = std_cmake_args
if build.universal?
ENV.universal_binary
ENV["CMAKE_OSX_ARCHITECTURES"] = Hardware::CPU.universal_archs.as_cmake_arch_flags
args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}"
end
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "cmake", "..", *args
system "make", "install"
end
end
View
@@ -13,12 +13,15 @@ class Libfreenect < Formula
depends_on 'libusb'
def install
args = std_cmake_args
if build.universal?
ENV.universal_binary
ENV['CMAKE_OSX_ARCHITECTURES'] = Hardware::CPU.universal_archs.as_cmake_arch_flags
args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}"
end
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "cmake", "..", *args
system "make install"
end
end
View
@@ -13,12 +13,16 @@ class Librtlsdr < Formula
depends_on "libusb"
def install
args = std_cmake_args
if build.universal?
ENV.universal_binary
ENV["CMAKE_OSX_ARCHITECTURES"] = Hardware::CPU.universal_archs.as_cmake_arch_flags
args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}"
end
system "cmake", ".", *std_cmake_args
system "make", "install"
mkdir "build" do
system "cmake", "..", *args
system "make install"
end
end
end

0 comments on commit 1a74f66

Please sign in to comment.