the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: hdf5.7-oldapi
Version: 1.8.8
Revision: 2
Source: ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-%v.tar.gz
Source-MD5: 1196e668f5592bfb50d1de162eb16cff
Description: Scientific data format (v1.6 API)--headers
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.
Fink's "%N*" packages are intended to replace the corresponding ones from
"hdf5*".
<<
DescUsage: <<
To build against %N instead of hdf5, you will need
to make sure that the headers in %p/opt/hdf5v1.6/include
and the libraries in %p/opt/hdf5v1.6/lib are found.
Some packages use a configure flag to target the hdf5 tree, i.e.:
--with-hdf5=%p/opt, but you may need to set CPPFLAGS, LDFLAGS, etc.
for your package.
<<
Conflicts: hdf5, hdf5-18, hdf5.7
Replaces: hdf5, hdf5-18, hdf5.7
Depends: %N-shlibs (= %v-%r), %N-bin, szip-shlibs (>= 2.0-2)
BuildDepends: szip (>= 2.0-2), 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
perl -pi -e 's,sort \+2,sort -k 2,' bin/ltmain.sh
cp config/apple config/powerpc-apple
cp config/apple config/i386-apple
cp config/apple config/x86_64-apple
<<
ConfigureParams: <<
--enable-shared --enable-cxx --disable-fortran --with-zlib=/usr --without-mpe --with-szlib=%p \
--without-pthread --disable-parallel --disable-static --with-default-api-version=v16 \
--libdir=%p/opt/hdf5v1.6/lib --includedir=%p/opt/hdf5v1.6/include
<<
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
%{default_script}
fink-package-precedence --prohibit-bdep=%N,%N-oldapi,hdf5,hdf5-18 c++/ fortran/ tools/ hl/tools
<<
InstallScript: <<
make install DESTDIR=%d
<<
SplitOff: <<
Package: %N-shlibs
Depends: szip-shlibs (>= 2.0-2)
Files: <<
opt/hdf5v1.6/lib/libhdf5.7.dylib
opt/hdf5v1.6/lib/libhdf5_cpp.7.dylib
opt/hdf5v1.6/lib/libhdf5_hl.7.dylib
opt/hdf5v1.6/lib/libhdf5_hl_cpp.7.dylib
<<
Shlibs: <<
%p/opt/hdf5v1.6/lib/libhdf5.7.dylib 8.0.0 %n (>= 1.8.7-1)
%p/opt/hdf5v1.6/lib/libhdf5_hl.7.dylib 8.0.0 %n (>= 1.8.7-1)
%p/opt/hdf5v1.6/lib/libhdf5_cpp.7.dylib 8.0.0 %n (>= 1.8.7-1)
%p/opt/hdf5v1.6/lib/libhdf5_hl_cpp.7.dylib 8.0.0 %n (>= 1.8.7-1)
<<
DocFiles: COPYING README.txt release_docs/RELEASE.txt release_docs/HISTORY*
Description: Scientific data format (v1.6 API)--shared C/C++ libraries
<<
SplitOff2: <<
Package: %N-bin
Depends: %N-shlibs (= %v-%r)
Conflicts: hdf5-18-bin, hdf5-bin, hdf5.7-bin
Replaces: hdf5-18-bin, hdf5-bin, hdf5.7-bin
Files: bin
DocFiles: COPYING README.txt release_docs/RELEASE.txt release_docs/HISTORY*
Description: Scientific data format (v1.6 API)--executables
<<
DocFiles: COPYING README.txt release_docs/RELEASE.txt release_docs/HISTORY*
Homepage: http://www.hdfgroup.org/HDF5/index.html
Maintainer: Alexander Hansen
DescPackaging: <<
Items in the test suite (only) pick up headers from installed HDF5 packages, but this appears
not to change the build.
Install libs and headers %p/opt/hdf5v1.6 Libs go in %p/opt/hdf5v1.6/lib to avoid file overlap
with hdf5.7, and headers go in %p/opt/hdf5v.16/include because packages that use hdf5 seem to
like to use a '--with-hdf5=DIR' configure flag to find the whole HDF5 tree.
<<
DescPort: <<
Manually generate appropriate system configuration files to be found by the configure script.
<<