homebrew-core/Formula/wxmac.rb

19 lines
560 B
Ruby
Raw Normal View History

require 'formula'
class Wxmac <Formula
2009-11-12 18:37:47 +00:00
url 'http://downloads.sourceforge.net/project/wxwindows/wxMac/2.8.10/wxMac-2.8.10.tar.bz2'
homepage 'http://www.wxwidgets.org'
2009-11-12 18:37:47 +00:00
md5 '67e5eb6823907081fc979d41e00f93d7'
def install
2009-11-12 18:37:47 +00:00
# Force i386
%w{ CFLAGS CXXFLAGS LDFLAGS OBJCFLAGS OBJCXXFLAGS }.each do |compiler_flag|
ENV.remove compiler_flag, "-arch x86_64"
ENV.append compiler_flag, "-arch i386"
end
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end