Skip to content

Instantly share code, notes, and snippets.

@greggroth
Created January 17, 2012 14:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save greggroth/1626861 to your computer and use it in GitHub Desktop.
Homebrew Formula for h5utils
require 'formula'
class H5utils < Formula
url 'http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz'
homepage 'http://ab-initio.mit.edu/wiki/index.php/H5utils'
md5 '46a6869fee6e6bf87fbba9ab8a99930e'
depends_on 'hdf5'
def install
ENV.x11 # enable libpng support
# patch for libpng 1.5 as described by https://github.com/mxcl/homebrew/pull/6944
inreplace 'writepng.c', 'png_ptr->jmpbuf', 'png_jmpbuf (png_ptr)'
inreplace 'writepng.c', 'free(info_ptr->palette);', '/* free(info_ptr->palette); */'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment