diff options
| author | André Wobst | 2011-08-08 13:34:04 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-08-12 19:55:19 -0700 |
| commit | e1df33da40b35d9fbf7981a1311cdf1c871bd722 (patch) | |
| tree | e98703b0db69de8556eb4ca52eeba59994d8dcb7 /Library/Formula | |
| parent | 62208850a3efd7a9ce19e6a743e0cbeae96ed034 (diff) | |
| download | homebrew-e1df33da40b35d9fbf7981a1311cdf1c871bd722.tar.bz2 | |
netpbm: add --head
Head is compatible with libpng 1.5 and Lion
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/netpbm.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Formula/netpbm.rb b/Library/Formula/netpbm.rb index 93e28a666..948bfc92a 100644 --- a/Library/Formula/netpbm.rb +++ b/Library/Formula/netpbm.rb @@ -4,6 +4,7 @@ class Netpbm < Formula homepage 'http://netpbm.sourceforge.net' url 'http://sourceforge.net/projects/netpbm/files/super_stable/10.35.80/netpbm-10.35.80.tgz' md5 '2edf98b802a82e5367fc52382e9ac144' + head 'http://netpbm.svn.sourceforge.net/svnroot/netpbm/trunk' depends_on "libtiff" depends_on "jasper" @@ -11,9 +12,15 @@ class Netpbm < Formula def install ENV.x11 # For PNG - system "cp", "Makefile.config.in", "Makefile.config" + if ARGV.build_head? + system "cp", "config.mk.in", "config.mk" + config = "config.mk" + else + system "cp", "Makefile.config.in", "Makefile.config" + config = "Makefile.config" + end - inreplace "Makefile.config" do |s| + inreplace config do |s| s.remove_make_var! "CC" s.change_make_var! "CFLAGS_SHLIB", "-fno-common" s.change_make_var! "NETPBMLIBTYPE", "dylib" |
