diff options
| author | Adam Vandenberg | 2013-05-06 16:16:39 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-05-06 16:16:47 -0700 |
| commit | da3fa496ef64f390e45c57b4457dee3be6b25b79 (patch) | |
| tree | 47e827a3c035e257edcac5a3f762c58be03f2800 /Library/Formula/netpbm.rb | |
| parent | 9d01245fd0e830ff685c8e4d850bd91476494e67 (diff) | |
| download | homebrew-da3fa496ef64f390e45c57b4457dee3be6b25b79.tar.bz2 | |
netpbm: use max_intall_names
Closes #16944.
Diffstat (limited to 'Library/Formula/netpbm.rb')
| -rw-r--r-- | Library/Formula/netpbm.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Formula/netpbm.rb b/Library/Formula/netpbm.rb index e9dbae56e..3c1f6f262 100644 --- a/Library/Formula/netpbm.rb +++ b/Library/Formula/netpbm.rb @@ -4,7 +4,7 @@ class Netpbm < Formula homepage 'http://netpbm.sourceforge.net' url 'svn+http://netpbm.svn.sourceforge.net/svnroot/netpbm/advanced/', :revision => 1809 version '10.60.05' - # Maintainers: Look http://netpbm.svn.sourceforge.net/viewvc/netpbm/ + # Maintainers: Look at http://netpbm.svn.sourceforge.net/viewvc/netpbm/ # for versions and matching revisions head 'http://netpbm.svn.sourceforge.net/svnroot/netpbm/trunk' @@ -15,9 +15,8 @@ class Netpbm < Formula def install system "cp", "config.mk.in", "config.mk" - config = "config.mk" - inreplace config do |s| + inreplace "config.mk" do |s| s.remove_make_var! "CC" s.change_make_var! "CFLAGS_SHLIB", "-fno-common" s.change_make_var! "NETPBMLIBTYPE", "dylib" @@ -28,9 +27,11 @@ class Netpbm < Formula s.change_make_var! "PNGLIB", "-lpng" s.change_make_var! "ZLIB", "-lz" s.change_make_var! "JASPERLIB", "-ljasper" - s.change_make_var! "JASPERHDR_DIR", "#{HOMEBREW_PREFIX}/include/jasper" + s.change_make_var! "JASPERHDR_DIR", "#{Formula.factory('jasper').opt_prefix}/include/jasper" end + ENV.append 'LDFLAGS', '-Wl,-headerpad_max_install_names' + ENV.deparallelize system "make" system "make", "package", "pkgdir=#{buildpath}/stage" |
