9c930ab6f4
The build was failing under various conditions due to the removal of some link flags at: 26b760ba4f92d67edadae5d3e6b70ff98867fcef Linking to Carbon is at least required on 10.5 and also for some 10.6 users.
25 lines
779 B
Ruby
25 lines
779 B
Ruby
require 'formula'
|
|
|
|
class Nspr <Formula
|
|
@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/'
|
|
@md5='c78384602b4b466081a55025446641db'
|
|
|
|
def install
|
|
require 'hardware'
|
|
|
|
ENV.deparallelize
|
|
Dir.chdir "mozilla/nsprpub" do
|
|
inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", "-framework Carbon"
|
|
|
|
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/$@ ", ""
|
|
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|
|
end
|