Use ARGV.build_universal?
This commit is contained in:
parent
444c63ac15
commit
1f31751977
21 changed files with 22 additions and 22 deletions
|
@ -15,7 +15,7 @@ class Boost < Formula
|
|||
fails_with_llvm "LLVM-GCC causes errors with dropped arguments to functions when linking with boost"
|
||||
|
||||
def install
|
||||
if ARGV.include? "--universal"
|
||||
if ARGV.build_universal?
|
||||
archs = archs_for_command("python")
|
||||
unless archs.universal?
|
||||
opoo "A universal build was requested, but Python is not a universal build"
|
||||
|
|
|
@ -29,7 +29,7 @@ class Bullet < Formula
|
|||
args << "-DCMAKE_INSTALL_PREFIX=#{prefix}"
|
||||
end
|
||||
|
||||
args << "-DCMAKE_OSX_ARCHITECTURES='i386;x86_64'" if ARGV.include? "--universal"
|
||||
args << "-DCMAKE_OSX_ARCHITECTURES='i386;x86_64'" if ARGV.build_universal?
|
||||
args << "-DBUILD_DEMOS=OFF" if not ARGV.include? "--build-demo"
|
||||
args << "-DBUILD_EXTRAS=OFF" if not ARGV.include? "--build-extra"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ class Check < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make install"
|
||||
|
|
|
@ -22,7 +22,7 @@ class Exodriver < Formula
|
|||
s.change_make_var! 'HEADER_DESTINATION', include
|
||||
end
|
||||
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
system "make"
|
||||
system "make install"
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@ class Geoip < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
||||
system "make install"
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@ class Gsl < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
|
||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
||||
system "make" # A GNU tool which doesn't support just make install! Shameful!
|
||||
|
|
|
@ -10,7 +10,7 @@ class Libusb < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
||||
system "make install"
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'formula'
|
||||
|
||||
def build_clang?; ARGV.include? '--with-clang'; end
|
||||
def build_universal?; ARGV.include? '--universal'; end
|
||||
def build_universal?; ARGV.build_universal?; end
|
||||
def build_shared?; ARGV.include? '--shared'; end
|
||||
def build_rtti?; ARGV.include? '--rtti'; end
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ class Mcrypt < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}", "--mandir=#{man}"
|
||||
system "make install"
|
||||
|
|
|
@ -49,7 +49,7 @@ class Mysql < Formula
|
|||
args << "-DWITH_EMBEDDED_SERVER=ON" if ARGV.include? '--with-embedded'
|
||||
|
||||
# Make universal for binding to universal applications
|
||||
args << "-DCMAKE_OSX_ARCHITECTURES='ppc;i386'" if ARGV.include? '--universal'
|
||||
args << "-DCMAKE_OSX_ARCHITECTURES='ppc;i386'" if ARGV.build_universal?
|
||||
|
||||
# Build with local infile loading support
|
||||
args << "-DENABLED_LOCAL_INFILE=1" if ARGV.include? '--enable-local-infile'
|
||||
|
|
|
@ -15,7 +15,7 @@ class Neon < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if ARGV.include? '--universal'
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
|
||||
system "./configure", "--prefix=#{prefix}",
|
||||
"--disable-debug",
|
||||
|
|
|
@ -14,7 +14,7 @@ class Openssl < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
ENV.j1 # Breaks on Mac Pro
|
||||
system "./config", "--prefix=#{prefix}",
|
||||
"--openssldir=#{etc}",
|
||||
|
|
|
@ -12,7 +12,7 @@ class Pcre < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
|
|
|
@ -12,7 +12,7 @@ class Protobuf < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--with-zlib"
|
||||
|
|
|
@ -47,7 +47,7 @@ class Python < Formula
|
|||
|
||||
args = ["--prefix=#{prefix}"]
|
||||
|
||||
if ARGV.include? '--universal'
|
||||
if ARGV.build_universal?
|
||||
args << "--enable-universalsdk=/" << "--with-universal-archs=intel"
|
||||
end
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ class Python3 < Formula
|
|||
# Both gcc and LLVM support this, so switch it on.
|
||||
args = ["--prefix=#{prefix}", "--with-computed-gotos"]
|
||||
|
||||
if ARGV.include? '--universal'
|
||||
if ARGV.build_universal?
|
||||
args << "--enable-universalsdk=/" << "--with-universal-archs=intel"
|
||||
end
|
||||
|
||||
|
|
|
@ -57,11 +57,11 @@ class Qt < Formula
|
|||
args << "-nomake" << "demos" << "-nomake" << "examples"
|
||||
end
|
||||
|
||||
if MacOS.prefer_64_bit? or ARGV.include? '--universal'
|
||||
if MacOS.prefer_64_bit? or ARGV.build_universal?
|
||||
args << '-arch' << 'x86_64'
|
||||
end
|
||||
|
||||
if !MacOS.prefer_64_bit? or ARGV.include? '--universal'
|
||||
if !MacOS.prefer_64_bit? or ARGV.build_universal?
|
||||
args << '-arch' << 'x86'
|
||||
end
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ class Ruby < Formula
|
|||
"--enable-shared"]
|
||||
|
||||
args << "--program-suffix=19" if ARGV.include? "--with-suffix"
|
||||
args << "--with-arch=x86_64,i386" if ARGV.include? "--universal"
|
||||
args << "--with-arch=x86_64,i386" if ARGV.build_universal?
|
||||
|
||||
# Put gem, site and vendor folders in the HOMEBREW_PREFIX
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class Sqlite < Formula
|
|||
def install
|
||||
ENV.append "CFLAGS", "-DSQLITE_ENABLE_RTREE=1" if ARGV.include? "--with-rtree"
|
||||
ENV.append "CPPFLAGS","-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS" if ARGV.include? "--with-fts"
|
||||
ENV.universal_binary if ARGV.include? "--universal"
|
||||
ENV.universal_binary if ARGV.build_universal?
|
||||
system "./configure", "--prefix=#{prefix}",
|
||||
"--disable-dependency-tracking"
|
||||
system "make install"
|
||||
|
|
|
@ -4,7 +4,7 @@ def build_java?; ARGV.include? "--java"; end
|
|||
def build_perl?; ARGV.include? "--perl"; end
|
||||
def build_python?; ARGV.include? "--python"; end
|
||||
def build_ruby?; ARGV.include? "--ruby"; end
|
||||
def build_universal?; ARGV.include? '--universal'; end
|
||||
def build_universal?; ARGV.build_universal?; end
|
||||
def with_unicode_path?; ARGV.include? '--unicode-path'; end
|
||||
|
||||
# On 10.5 we need newer versions of apr, neon etc.
|
||||
|
|
|
@ -33,7 +33,7 @@ class Zeromq < Formula
|
|||
def install
|
||||
system "./autogen.sh" if ARGV.build_head?
|
||||
|
||||
if ARGV.include? '--universal'
|
||||
if ARGV.build_universal?
|
||||
build_fat
|
||||
else
|
||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-pgm"
|
||||
|
|
Loading…
Reference in a new issue