2010-09-28 10:14:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Plotutils < Formula
|
2011-09-14 04:39:29 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/plotutils/plotutils-2.6.tar.gz'
|
2010-09-28 10:14:26 +00:00
|
|
|
homepage 'http://www.gnu.org/software/plotutils/'
|
|
|
|
md5 'c08a424bd2438c80a786a7f4b5bb6a40'
|
|
|
|
|
|
|
|
def install
|
2011-04-17 05:43:44 +00:00
|
|
|
ENV.x11 # enable libpng support
|
2011-08-11 15:24:19 +00:00
|
|
|
|
|
|
|
# Fix usage of libpng to be 1.5 compatible
|
|
|
|
inreplace 'libplot/z_write.c', 'png_ptr->jmpbuf', 'png_jmpbuf (png_ptr)'
|
|
|
|
|
2011-04-17 05:43:44 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-libplotter"
|
2010-09-28 10:14:26 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|