the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: hdf5-18-gfortran
Version: 1.8.5-patch1
Revision: 2
# DO NOT MOVE TO 10.7. PACKAGES THAT DEPEND ON THIS SHOULD BE UPDATED TO USE hdf5.7 INSTEAD
Distribution: 10.5, 10.6
Source: ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-%v.tar.gz
Source-MD5: d22a35a17877e369055ed50da5ba91fa
Description: HDF5 (v1.8 API)--FORTRAN bindings
DescDetail: <<
HDF5 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.
<<
DescPackaging: <<
Has to be built separately from the main packages, since upstream decided
to disable shared library builds if building the FORTRAN libraries.
Builds _all_ of HDF5 with static libs and then strips out anything that is
also in the hdf5-18 package.
Only builds static libraries, so it can use either gcc44 or gcc45 to build.
<<
DescUsage: <<
To build against this package, you'll want to have hdf5-18 installed, too.
Prior to version 1.8.5-patch1, the package installed files in
%p/lib/hdf5-18/(include|lib) due to file overlap with hdf5-shlibs, and we
maintain compatibility symlinks there.
Specifying a versioned BuildDepends: hdf5-18-gfortran (>=1.8.5-patch1-1)
avoids the necessity of pointing builds to %p/lib/%N.
<<
Conflicts: hdf5, hdf5.7-gfortran, hdf5.7-oldapi-gfortran
Replaces: hdf5, hdf5.7-gfortran, hdf5.7-oldapi-gfortran
Depends: szip-shlibs (>= 2.0-2)
BuildDepends: szip (>= 2.0-2), gcc44|gcc45|gcc46, fink(>= 0.24.12), fink-package-precedence
GCC: 4.0
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 --with-zlib --without-mpe --with-szlib --without-pthread \
--disable-parallel
<<
License: OSI-Approved
InfoTest: <<
TestScript: make check || exit 2
<<
CompileScript: <<
#!/bin/sh -ev
export F9X=%p/bin/gfortran
export FFLAGS='-fsecond-underscore'
./configure %c
make
<<
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
install -d %i/lib/hdf5-18/include
install -d %i/lib/hdf5-18/lib
# remove executables
rm -rf %i/bin
# remove headers which are installed by hdf5-18
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
# generate upgrade symlinks
for file in *.h *.mod
do
ln -s $file ../lib/hdf5-18/include/$file
done
popd
pushd %i/lib
#remove .la files which are in hdf5-18, settings file, and the C static libs.
rm libhdf5.{a,la} libhdf5_hl.{a,la} libhdf5.settings
# generate upgrade symlinks
for file in *.a *.la
do
ln -s $file ../lib/hdf5-18/lib/$file
done
popd
# remove C examples
pushd %i/share/hdf5_examples
rm -rf c hl/c run-all-ex.sh hl/run-hl-ex.sh
popd
fink-package-precedence .
<<
DocFiles: COPYING README.txt release_docs/RELEASE.txt release_docs/HISTORY*
Homepage: http://www.hdfgroup.org/HDF5/index.html
Maintainer: Alexander Hansen