grace 5.1.23
This commit is contained in:
parent
e3d17e0467
commit
e53da6320f
1 changed files with 2 additions and 31 deletions
|
@ -2,8 +2,8 @@ require 'formula'
|
|||
|
||||
class Grace < Formula
|
||||
homepage 'http://plasma-gate.weizmann.ac.il/Grace/'
|
||||
url 'ftp://plasma-gate.weizmann.ac.il/pub/grace/src/grace5/grace-5.1.22.tar.gz'
|
||||
sha1 '3ce88c7c264d2de73b8935f835a1c1f8e368c78f'
|
||||
url 'ftp://plasma-gate.weizmann.ac.il/pub/grace/src/grace5/grace-5.1.23.tar.gz'
|
||||
sha1 '0bd9cd6e76c97210658098f3533b5cf6c037d0bd'
|
||||
|
||||
depends_on :x11
|
||||
depends_on 'pdflib-lite'
|
||||
|
@ -11,40 +11,11 @@ class Grace < Formula
|
|||
depends_on 'fftw'
|
||||
depends_on 'lesstif'
|
||||
|
||||
# Upstream development has stopped, but we provide a minimal patch that
|
||||
# allows compilation against libpng 1.5.
|
||||
def patches
|
||||
DATA
|
||||
end
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--with-zlib",
|
||||
"--enable-grace-home=#{prefix}"
|
||||
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
--- a/src/rstdrv.c
|
||||
+++ b/src/rstdrv.c
|
||||
@@ -54,6 +54,7 @@
|
||||
|
||||
#ifdef HAVE_LIBPNG
|
||||
# include <png.h>
|
||||
+# include <zlib.h>
|
||||
#endif
|
||||
|
||||
#ifndef NONE_GUI
|
||||
@@ -885,7 +886,7 @@ static void rstImagePng(gdImagePtr ihandle, FILE *prstream)
|
||||
return;
|
||||
}
|
||||
|
||||
- if (setjmp(png_ptr->jmpbuf)) {
|
||||
+ if (setjmp(png_jmpbuf(png_ptr))) {
|
||||
png_destroy_write_struct(&png_ptr, &info_ptr);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue