2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 14:17:44 +00:00
|
|
|
|
|
|
|
class Nspr <Formula
|
2010-04-12 19:19:08 +00:00
|
|
|
url 'http://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'
|
2009-09-01 14:17:44 +00:00
|
|
|
|
|
|
|
def install
|
2010-01-24 13:57:44 +00:00
|
|
|
require 'hardware'
|
|
|
|
|
2009-09-01 14:17:44 +00:00
|
|
|
ENV.deparallelize
|
|
|
|
Dir.chdir "mozilla/nsprpub" do
|
2010-02-17 15:16:38 +00:00
|
|
|
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
|
|
|
|
|
2010-01-23 21:38:59 +00:00
|
|
|
inreplace "config/autoconf.mk", "-install_name @executable_path/$@ ", ""
|
2010-01-24 13:57:44 +00:00
|
|
|
|
2009-09-01 14:17:44 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|