2011-04-12 14:08:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gts < Formula
|
|
|
|
homepage 'http://gts.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/gts/gts/0.7.6/gts-0.7.6.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '000720bebecf0b153eb28260bd30fbd979dcc040'
|
2012-02-14 04:51:39 +00:00
|
|
|
|
2012-08-14 01:44:58 +00:00
|
|
|
option :universal
|
|
|
|
|
2013-02-10 06:28:10 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2011-04-12 14:08:59 +00:00
|
|
|
depends_on 'gettext'
|
2012-02-14 04:51:39 +00:00
|
|
|
depends_on 'glib'
|
2013-09-21 04:08:57 +00:00
|
|
|
depends_on 'netpbm'
|
|
|
|
|
2013-11-15 07:41:38 +00:00
|
|
|
conflicts_with 'pcb', :because => 'both install `include/gts.h`'
|
|
|
|
|
2013-09-21 04:08:57 +00:00
|
|
|
# Fix for newer netpbm.
|
|
|
|
# This software hasn't been updated in seven years
|
2014-03-19 17:07:52 +00:00
|
|
|
patch :DATA
|
2011-04-12 14:08:59 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-14 01:44:58 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2011-04-12 14:08:59 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-09-21 04:08:57 +00:00
|
|
|
|
|
|
|
__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>
|