diff options
| author | Jack Nagel | 2013-09-20 23:08:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-20 23:08:59 -0500 |
| commit | d024f4a3142ed888bb811ca3a48c3d07fdf59946 (patch) | |
| tree | 143855581000ee44090c9a489ec1cf37acf8e0c9 /Library/Formula | |
| parent | 617f2cdb9fae3a3a95a382e7ac30a5fd9063f1ac (diff) | |
| download | homebrew-d024f4a3142ed888bb811ca3a48c3d07fdf59946.tar.bz2 | |
gts: add netpbm dep, fix build
Fixes #22683.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gts.rb | 20 |
1 files changed, 20 insertions, 0 deletions
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 <stdlib.h> + #include <locale.h> + #include <string.h> +-#include <pgm.h> ++#include <netpbm/pgm.h> + #include "config.h" + #ifdef HAVE_GETOPT_H + # include <getopt.h> |
