homebrew-core/Formula/nspr.rb

26 lines
779 B
Ruby
Raw Normal View History

require 'formula'
class Nspr <Formula
2009-11-02 03:17:26 +00:00
@url='https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.6/src/nspr-4.7.6.tar.gz'
@homepage='http://www.mozilla.org/projects/nspr/'
2009-11-02 03:17:26 +00:00
@md5='c78384602b4b466081a55025446641db'
def install
2010-01-24 13:57:44 +00:00
require 'hardware'
ENV.deparallelize
Dir.chdir "mozilla/nsprpub" do
inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", "-framework Carbon"
2010-01-24 13:57:44 +00:00
conf = %W[--prefix=#{prefix} --disable-debug --enable-strip --enable-optimize]
conf << "--enable-64bit" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
system "./configure", *conf
inreplace "config/autoconf.mk", "-install_name @executable_path/$@ ", ""
2010-01-24 13:57:44 +00:00
system "make"
system "make install"
end
end
end