From e1df33da40b35d9fbf7981a1311cdf1c871bd722 Mon Sep 17 00:00:00 2001 From: André Wobst Date: Mon, 8 Aug 2011 13:34:04 +0200 Subject: netpbm: add --head Head is compatible with libpng 1.5 and Lion Signed-off-by: Adam Vandenberg --- Library/Formula/netpbm.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Library') 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" -- cgit v1.2.3