From f35cea4a84ceea0780d37803d67ff138488445fd Mon Sep 17 00:00:00 2001 From: Kyle Kauffman Date: Mon, 2 Apr 2012 16:53:28 -0400 Subject: mathgl 1.11.2 Signed-off-by: Adam Vandenberg --- Library/Formula/mathgl.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Library/Formula/mathgl.rb (limited to 'Library/Formula/mathgl.rb') diff --git a/Library/Formula/mathgl.rb b/Library/Formula/mathgl.rb new file mode 100644 index 000000000..c9a78096d --- /dev/null +++ b/Library/Formula/mathgl.rb @@ -0,0 +1,23 @@ +require 'formula' + +class Mathgl < Formula + homepage 'http://mathgl.sourceforge.net/' + url 'http://downloads.sourceforge.net/mathgl/mathgl-1.11.2.tar.gz' + md5 'acd33e68911d9506f60d769dce23f95e' + + depends_on 'gsl' + + def install + ENV.x11 + ENV['LIBS'] = '-lz' + + # Fixed upstream: this line can be removed when v2 is released + inreplace ["mgl/mgl_export.cpp", "mgl/mgl_data_png.cpp"] do |s| + s.gsub! /#include /, "#include \n#include " + end + + system "./configure", "--prefix=#{prefix}" + system "make" + system "make install" + end +end -- cgit v1.2.3