aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pbzip2.rb
blob: 0a614329da5dd55e489e3f1fb5d53be0f5193db5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'

class Pbzip2 <Formula
  url 'http://compression.ca/pbzip2/pbzip2-1.0.5.tar.gz'
  homepage 'http://compression.ca/pbzip2/'
  md5 'e2448d22ee29d1e6549ac58b98df11ab'

  def install
    # Won't compile with LLVM
    ENV.gcc_4_2
    
    inreplace "Makefile" do |s|
      s.change_make_var! 'PREFIX', prefix
      s.gsub! "/man/", "/share/man/"
      
      # Per fink and macport:
      s.gsub! "-pthread -lpthread", ""
    end
    
    system "make install"
  end
end