pkg:setup inreplace %w[c++/src/h5c++.in fortran/src/h5fc.in tools/misc/h5cc.in],"${libdir}/libhdf5.settings", "#{pkgshare}/libhdf5.settings" inreplace "src/Makefile.am", "settingsdir=$(libdir)", "settingsdir=#{pkgshare}" system "autoreconf", "-fiv" args = %W[ --disable-dependency-tracking --disable-silent-rules --prefix=#{prefix} --with-szlib=#{Formula["szip"].opt_prefix} --enable-build-mode=production --enable-fortran --disable-cxx ] pkg:configure *args make DESTDIR=${PKG_DEST} install