Use is_32_bit? and remove negatives.

master
Adam Vandenberg 2010-08-07 20:53:10 -07:00
parent 55b98a9421
commit a401bcc30e
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ class Ffmpeg <Formula
# For 32-bit compilation under gcc 4.2, see:
# http://trac.macports.org/ticket/20938#comment:22
if MACOS_VERSION >= 10.6 and not Hardware.is_64_bit?
if MACOS_VERSION >= 10.6 and Hardware.is_32_bit?
ENV.append_to_cflags "-mdynamic-no-pic"
end

View File

@ -10,7 +10,7 @@ class P7zip <Formula
end
def build_32bit?
ARGV.include? '--32-bit' or !Hardware.is_64_bit?
ARGV.include? '--32-bit' or Hardware.is_32_bit?
end
def install

View File

@ -27,7 +27,7 @@ class Pbrt <Formula
contents.change_make_var! "EXR_LIBDIR", "-L#{openexr.lib} -L#{ilmbase.lib}"
# Change settings if we are using a 32bit system
if MACOS_VERSION <= 10.5 or not Hardware.is_64_bit?
if MACOS_VERSION <= 10.5 or Hardware.is_32_bit?
contents.change_make_var! "MARCH", "-m32 -msse2 -mfpmath=sse"
end
end