homebrew-core/Formula/plotutils.rb

22 lines
666 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Plotutils < Formula
2013-01-28 05:37:22 +00:00
homepage 'http://www.gnu.org/software/plotutils/'
url 'http://ftpmirror.gnu.org/plotutils/plotutils-2.6.tar.gz'
mirror 'http://ftp.gnu.org/gnu/plotutils/plotutils-2.6.tar.gz'
sha1 '7921301d9dfe8991e3df2829bd733df6b2a70838'
depends_on :libpng
def install
# Fix usage of libpng to be 1.5 compatible
inreplace 'libplot/z_write.c', 'png_ptr->jmpbuf', 'png_jmpbuf (png_ptr)'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-libplotter"
system "make"
system "make install"
end
end