From d024f4a3142ed888bb811ca3a48c3d07fdf59946 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 20 Sep 2013 23:08:57 -0500 Subject: gts: add netpbm dep, fix build Fixes #22683. --- Library/Formula/gts.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Library') diff --git a/Library/Formula/gts.rb b/Library/Formula/gts.rb index 0263a4eff..b7e7a2855 100644 --- a/Library/Formula/gts.rb +++ b/Library/Formula/gts.rb @@ -10,6 +10,11 @@ class Gts < Formula depends_on 'pkg-config' => :build depends_on 'gettext' depends_on 'glib' + depends_on 'netpbm' + + # Fix for newer netpbm. + # This software hasn't been updated in seven years + def patches; DATA; end def install ENV.universal_binary if build.universal? @@ -19,3 +24,18 @@ class Gts < Formula system "make install" end end + +__END__ +diff --git a/examples/happrox.c b/examples/happrox.c +index 88770a8..11f140d 100644 +--- a/examples/happrox.c ++++ b/examples/happrox.c +@@ -21,7 +21,7 @@ + #include + #include + #include +-#include ++#include + #include "config.h" + #ifdef HAVE_GETOPT_H + # include -- cgit v1.2.3