Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

new formula: mathgl #11393

Closed
wants to merge 1 commit into from

3 participants

@ptxmac

MathGL is a library for drawing graphs/plots and mathematical formulas (and more)

Peter Kristensen New formula: mathgl a36169b
@kyonifer

Coincidentally it seems I wrote a mathgl formula at the same time you did (#11399).

I wasn't able to get yours to work on Lion. During configure I get

checking png.h usability... no
checking png.h presence... no
checking for png.h... no
Please install png headers
==> make install
make install 
make: Nothing to be done for `install'.
==> Finishing up
ln -s ../../Cellar/mathgl/1.11.2 mathgl
==> Summary
/usr/local/Cellar/mathgl/1.11.2: 6 files, 96K, built in 5 seconds

I believe this is resolved via the ENV.x11 call (check out my pull request). I also had to play around with libz, since the new libpng included in Lion doesn't work with 1.11.2 without patching.

Does mine work for you?

@kyonifer kyonifer referenced this pull request
Closed

Added mathgl formula. #11399

@ptxmac
@adamv
Owner

Added as Added as f35cea4

@adamv adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2012
  1. New formula: mathgl

    Peter Kristensen authored
This page is out of date. Refresh to see the latest.
Showing with 15 additions and 0 deletions.
  1. +15 −0 Library/Formula/mathgl.rb
View
15 Library/Formula/mathgl.rb
@@ -0,0 +1,15 @@
+require 'formula'
+
+class Mathgl < Formula
+ url 'http://downloads.sourceforge.net/mathgl/mathgl-1.11.2.tar.gz'
+ homepage 'http://mathgl.sourceforge.net'
+ md5 'acd33e68911d9506f60d769dce23f95e'
+
+ depends_on 'gsl'
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
+end
Something went wrong with that request. Please try again.