aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorKyle Kauffman2012-04-02 16:53:28 -0400
committerAdam Vandenberg2012-04-18 21:02:47 -0700
commitf35cea4a84ceea0780d37803d67ff138488445fd (patch)
treef9399f53b006d04bd1aa7998b7ec104fe0c83bce /Library/Formula
parentc8fc2ba9c44ae8fd1e3b1a1ec4bf7f3558e3c7f4 (diff)
downloadhomebrew-f35cea4a84ceea0780d37803d67ff138488445fd.tar.bz2
mathgl 1.11.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mathgl.rb23
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