diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pbzip2.rb | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Formula/pbzip2.rb b/Library/Formula/pbzip2.rb index e1bf6d10a..61e95788c 100644 --- a/Library/Formula/pbzip2.rb +++ b/Library/Formula/pbzip2.rb @@ -1,21 +1,19 @@ require 'formula' class Pbzip2 < Formula - url 'http://compression.ca/pbzip2/pbzip2-1.1.6.tar.gz' homepage 'http://compression.ca/pbzip2/' + url 'http://compression.ca/pbzip2/pbzip2-1.1.6.tar.gz' md5 '26cc5a0d882198f106e75101ff0544a3' fails_with_llvm :build => 2334 def install - inreplace "Makefile" do |s| - s.change_make_var! 'PREFIX', prefix - s.gsub! "/man/", "/share/man/" - - # Per fink and macport: - s.gsub! "-pthread -lpthread", "" - end + inreplace "Makefile", "$(PREFIX)/man", "$(PREFIX)/share/man" - system "make install" + system "make", "PREFIX=#{prefix}", + "CC=#{ENV.cxx}", + "CFLAGS=#{ENV.cflags}", + "PREFIX=#{prefix}", + "install" end end |
