the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: hdf5
Version: 1.6.10
Revision: 6
# DO NOT MOVE TO 10.7, BECAUSE IT FAILS ITS SELF-TESTS there.
# PACKAGES THAT USE hdf5 SHOULD BE UPDATED TO USE hdf5.7-oldapi INSTEAD.
Distribution: 10.5, 10.6
Source: ftp://ftp.hdfgroup.org/HDF5/current16/src/%n-%v.tar.gz
Source-MD5: 6e207a95d22e9e9ffdfaecdd580cd1b3
Description: Library and file format for scientific data
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.
<<
DescPackaging: <<
Since the fortran interface builds static libraries, either gcc44 or gcc45 or gcc46 can be used
to provide gfortran.
<<
DescPort: <<
Patch configure.in to make sure that we can use autoreconf.
Use autoreconf so that the package will build a twolevel dylib.
<<
Depends: %N-shlibs (= %v-%r), %N-bin, szip-shlibs (>= 2.0-2)
BuildDepends: szip (>= 2.0-2), gcc44 | gcc45 | gcc46, fink ( >= 0.24.12), libtool2, automake1.11
Conflicts: %N-18, %N-18-gfortran, %N.7, %N.7-gfortran, %N.7-oldapi, %N.7-oldapi-gfortran
Replaces: %N-18, %N-18-gfortran, %N.7, %N.7-gfortran, %N.7-oldapi, %N.7-oldapi-gfortran
GCC: 4.0
BuildDependsOnly: True
PatchScript: <<
%{default_script}
perl -pi -e 's/hardcode_direct=yes/hardcode_direct=no/g' configure
cp config/powerpc-apple config/i686-apple
cp fortran/config/powerpc-apple fortran/config/i686-apple
cp config/powerpc-apple config/x86_64-apple
cp fortran/config/powerpc-apple fortran/config/x86_64-apple
# obsolete use of sort
perl -pi -e 's,sort \+2,sort -k 2,' bin/ltmain.sh
<<
PatchFile: %n.patch
PatchFile-MD5: e51d36a1cc6aefaa0235f3a61abac1a2
ConfigureParams: <<
--enable-cxx --without-ssl --with-zlib --without-mpe --without-pablo --with-szlib \
--without-gass --without-srb --without-pthread --enable-fortran --disable-parallel
<<
License: OSI-Approved
InfoTest: <<
TestScript: make check || exit 2
<<
SetLDFLAGS: -Wl,-dead_strip_dylibs
CompileScript: <<
#!/bin/sh -ev
export F9X=%p/bin/gfortran
export FFLAGS='-fsecond-underscore'
export LIBS='-lsz'
/usr/bin/autoreconf -fi
if [ "%m" = "x86_64" ]; then
./configure %c --build=%m-apple-darwin`uname -r|cut -f1 -d.` --host=%m-apple-darwin`uname -r|cut -f1 -d.`
else
./configure %c
fi
make
<<
InstallScript: <<
make install prefix=%i docdir=%i/share/doc
<<
SplitOff: <<
Package: %N-shlibs
Replaces: %N (<= 1.4.2-3)
Depends: szip-shlibs (>= 2.0-2)
Files: <<
lib/libhdf5.*.dylib
lib/libhdf5_hl.*.dylib
<<
Shlibs: <<
%p/lib/libhdf5.0.dylib 1.0.0 %n (>= 1.4.5-12)
%p/lib/libhdf5_hl.0.dylib 1.0.0 %n (>= 1.6.4-3)
<<
DocFiles: COPYING README.txt release_docs/INSTALL release_docs/RELEASE.txt release_docs/HISTORY.txt
<<
SplitOff2: <<
Package: %N-bin
Depends: %N-shlibs (= %v-%r)
Replaces: %N (<= 1.4.2-3), %N-18-bin, %N.7-bin, %N.7-oldapi-bin
Conflicts: %N-18-bin, %N.7-bin, %N.7-oldapi-bin
Files: bin
DocFiles: COPYING README.txt release_docs/INSTALL release_docs/RELEASE.txt release_docs/HISTORY.txt
<<
DocFiles: COPYING README.txt release_docs/INSTALL release_docs/RELEASE.txt release_docs/HISTORY.txt
Homepage: http://www.hdfgroup.org/HDF5/index.html
Maintainer: Alexander Hansen
diff -Naur hdf5-1.6.10/configure.in hdf5-1.6.10.patched/configure.in
--- hdf5-1.6.10/configure.in 2009-11-10 13:02:05.000000000 -0500
+++ hdf5-1.6.10.patched/configure.in 2011-05-26 09:40:47.000000000 -0400
@@ -2071,6 +2071,7 @@
AC_SUBST([STATIC_SHARED])
AC_SUBST([enable_shared])
AC_SUBST([enable_static])
+LT_OUTPUT
if (grep '^build_libtool_libs=yes' libtool >/dev/null); then
enable_shared=yes
else
--- hdf5/fortran/config/powerpc-apple.orig 2006-01-02 19:56:15.000000000 -0700
+++ hdf5/fortran/config/powerpc-apple 2006-01-02 19:59:05.000000000 -0700
@@ -30,10 +30,20 @@
# The default Fortran 90 compiler
if test "X-" = "X-$F9X"; then
- F9X=xlf
- F9X_BASENAME=xlf
- else
- F9X_BASENAME=f95
+ case $F9X in
+ # The ibm, g95 and absoft
+ xlf*|g95*|f95*)
+ ;;
+ xlf)
+ F9X_BASENAME=xlf5
+ ;;
+ g95)
+ F9X_BASENAME=g95
+ ;;
+ f95)
+ F9X_BASENAME=f95
+ ;;
+ esac
fi
#
@@ -54,7 +64,7 @@
OBJECT_NAMELEN_DEFAULT_F=-1
case $F9X_BASENAME in
- xlf)
+ xlf) # ibm compiler
F9XSUFFIXFLAG="-qsuffix=f=f90 -qfree=f90"
FFLAGS="$FFLAGS -static -O ${F9XSUFFIXFLAG} -qmoddir=./ "
FSEARCH_DIRS="-I./ -I../src"
@@ -64,10 +74,7 @@
f9x_flags_set=yes
;;
- #
- # Assume Absoft compiler
- #
- f95)
+ f95) # absoft compiler
# Set required flag for compiling C stubs
CFLAGS="$CFLAGS -DH5_ABSOFT"
--- hdf5-1.6.8/fortran/src/H5f90i.h 2008-11-10 16:27:16.000000000 -0500
+++ hdf5-1.6.8.patched/fortran/src/H5f90i.h 2009-01-13 08:54:19.000000000 -0500
@@ -69,6 +69,7 @@
#if defined H5_ABSOFT
#define DF_CAPFNAMES
#endif /*H5_ABSOFT*/
+#define FNAME_POST2_UNDERSCORE
#define _fcdtocp(desc) (desc)
#endif /*APPLE*/