the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: hdf5.7-gfortran
Version: 1.8.8
Revision: 4
Source: ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-%v.tar.gz
Source-MD5: 1196e668f5592bfb50d1de162eb16cff
Description: HDF5 (v1.8 API)--static FORTRAN libraries
DescDetail: <<
It was designed to address some of the limitations of the HDF 4.x library
and to address current and anticipated requirements of modern systems
and applications.
The fortran9X interface is built using gfortran.
It will only work with gfortran.
Fink's "%N*" packages are intended to replace the corresponding ones from
"hdf5-18*".
<<
DescPackaging: <<
Build separately from the rest of hdf5.7 so that people who don't need the FORTRAN libs don't have
to build gcc4N.
Builds _all_ of HDF5 and then strips out the C and C++ libs,
as well as anything that is also in the hdf5.7 package.
<<
Conflicts: hdf5, hdf5-18-gfortran, hdf5.7-oldapi-gfortran
Replaces: hdf5, hdf5-18-gfortran, hdf5.7-oldapi-gfortran
BuildDepends: <<
fink-package-precedence,
gcc47,
szip (>= 2.0-2)
<<
BuildDependsOnly: true
PatchScript: <<
perl -pi -e 's/hardcode_direct=yes/hardcode_direct=no/g' configure
cp config/apple config/i686-apple
cp config/apple config/powerpc-apple
# obsolete use of sort
perl -pi -e 's,sort \+2,sort -k 2,' bin/ltmain.sh
<<
ConfigureParams: <<
--enable-fortran --enable-fortran2003 \
--with-zlib --without-mpe --with-szlib --without-pthread \
--disable-parallel --disable-shared
<<
License: OSI-Approved
InfoTest: <<
TestScript: make -j1 check || exit 2
<<
CompileScript: <<
#!/bin/sh -ev
# special-case for 10.6; check whether compiler is llvm-gcc
if [[ -n `gcc --version | grep llvm-g` ]]
then
export CXX='clang++ -arch %m'
export CC='clang -arch %m'
fi
export F9X=%p/bin/gfortran
export FFLAGS='-fsecond-underscore'
%{default_script}
fink-package-precedence .
<<
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
# remove executables
rm -rf %i/bin
# remove headers which are installed by hdf5.7
pushd %i/include
rm H5ACpublic.h
rm H5Apublic.h
rm H5Cpublic.h
rm H5DSpublic.h
rm H5Dpublic.h
rm H5Epubgen.h
rm H5Epublic.h
rm H5FDcore.h
rm H5FDdirect.h
rm H5FDfamily.h
rm H5FDlog.h
rm H5FDmpi.h
rm H5FDmpio.h
rm H5FDmpiposix.h
rm H5FDmulti.h
rm H5FDpublic.h
rm H5FDsec2.h
rm H5FDstdio.h
rm H5Fpublic.h
rm H5Gpublic.h
rm H5IMpublic.h
rm H5Ipublic.h
rm H5LTpublic.h
rm H5Lpublic.h
rm H5MMpublic.h
rm H5Opublic.h
rm H5PTpublic.h
rm H5Ppublic.h
rm H5Rpublic.h
rm H5Spublic.h
rm H5TBpublic.h
rm H5Tpublic.h
rm H5Zpublic.h
rm H5api_adpt.h
rm H5overflow.h
rm H5pubconf.h
rm H5public.h
rm H5version.h
rm hdf5.h
rm hdf5_hl.h
pushd %i/lib
#remove .la files which are in hdf5, settings file, and the C libs.
rm libhdf5.{a,la} libhdf5_hl.{a,la} libhdf5.settings
popd
# remove C examples
pushd %i/share/hdf5_examples
rm -rf c hl/c run-all-ex.sh hl/run-hl-ex.sh
popd
<<
DocFiles: COPYING README.txt release_docs/RELEASE.txt release_docs/HISTORY*
Homepage: http://www.hdfgroup.org/HDF5/index.html
Maintainer: Alexander Hansen