Package: hdf5.7-oldapi Version: 1.8.10-patch1 Revision: 3 Source: ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-%v.tar.gz Source-MD5: 2147a289fb33c887464ad2b6c5a8ae4c Description: Scientific data format (v1.6 API)--headers 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. 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, hdf5.8, hdf5.8-oldapi << Replaces: << hdf5, hdf5-18, hdf5.7, hdf5.8, hdf5.8-oldapi << Depends: %N-shlibs (= %v-%r), %N-bin, szip-shlibs (>= 2.0-2) BuildDepends: szip (>= 2.0-2), fink-package-precedence, fink (>= 0.34.8) 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 # saw a complaint about this using gcc48 to build against hdf5.7 perl -pi -e 's/(H5_PRINTF_LL_WIDTH)/ \1 /' src/H5public.h test/dt_arith.c tools/h5ls/h5ls.c tools/lib/h5diff_array.c tools/lib/h5diff_util.c tools/lib/h5tools.h tools/lib/h5trav.c << 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 TestSuiteSize: large << 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++ export CC=clang fi %{default_script} fink-package-precedence --prohibit-bdep=%N,%N-oldapi,hdf5.8,hdf5.8-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. Buildepends on fink (>= 0.34.8) since that's when we introduced a clang compiler wrapper. << DescPort: << Manually generate appropriate system configuration files to be found by the configure script. <<