homebrew-core/Formula/gts.rb
2019-06-18 08:24:31 +02:00

45 lines
1.3 KiB
Ruby

class Gts < Formula
desc "GNU triangulated surface library"
homepage "https://gts.sourceforge.io/"
url "https://downloads.sourceforge.net/project/gts/gts/0.7.6/gts-0.7.6.tar.gz"
sha256 "059c3e13e3e3b796d775ec9f96abdce8f2b3b5144df8514eda0cc12e13e8b81e"
revision 1
bottle do
cellar :any
sha256 "1f5d162ee2b4237538730e1eccbb1c93c672c90cbdd3f4573bec42a17527a589" => :mojave
sha256 "2e3ee18b1ffbac383d231b84f2a1ca05a5e2f973b47c2f935cc61b5e401640f6" => :high_sierra
sha256 "9f758e1d3ada0eb39655180b004a2f7d43ccae274ac5cb7c71ccd1e59b36edc0" => :sierra
end
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
patch :DATA
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
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>