diff options
| author | Kyle Kauffman | 2012-04-02 16:53:28 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2012-04-18 21:02:47 -0700 |
| commit | f35cea4a84ceea0780d37803d67ff138488445fd (patch) | |
| tree | f9399f53b006d04bd1aa7998b7ec104fe0c83bce /Library/Formula/mathgl.rb | |
| parent | c8fc2ba9c44ae8fd1e3b1a1ec4bf7f3558e3c7f4 (diff) | |
| download | homebrew-f35cea4a84ceea0780d37803d67ff138488445fd.tar.bz2 | |
mathgl 1.11.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/mathgl.rb')
| -rw-r--r-- | Library/Formula/mathgl.rb | 23 |
1 files changed, 23 insertions, 0 deletions
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 <png.h>/, "#include <zlib.h>\n#include <png.h>" + end + + system "./configure", "--prefix=#{prefix}" + system "make" + system "make install" + end +end |
