#!/bin/bash -l PKGNAME=hdf4 VERSION=4.2.13 SITEURL=https://support.hdfgroup.org/ftp/HDF/HDF_Current/src PKGINFO='HDF4: Data Model, Library, & File Format' URLINFO=http://www.hdfgroup.org/products/hdf4/ vpkg_devrequire udbuild szip/2.1.1 init_udbuildenv create_valet_template download $SITEURL/hdf-$VERSION.tar.bz2 unpack hdf-$VERSION.tar.bz2 aflag CFLAGS -fPIC if valet intel; then aflag CFLAGS -qopt-jump-tables=large fi aflag CONFIG --disable-netcdf aflag CONFIG --with-szlib=$SZIP_PREFIX # Make shared libraries (sans fortran support): ./configure --prefix="$PREFIX" --enable-shared --disable-fortran $CONFIG make install make clean # Make fortran enabled HDF4: ./configure --prefix="$PREFIX" --disable-shared --enable-fortran $CONFIG make install