mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
128 lines
3.4 KiB
Bash
128 lines
3.4 KiB
Bash
SUMMARY="A file format and library for storing scientific data"
|
|
DESCRIPTION="HDF5 was designed and implemented to address the deficiencies \
|
|
of HDF4.x. It has a more powerful and flexible data model, supports files \
|
|
larger than 2 GB, and supports parallel I/O."
|
|
HOMEPAGE="http://www.hdfgroup.org/HDF5/"
|
|
COPYRIGHT="2011-2016 The HDF Group,
|
|
The Board of Trustees of the University of Illinois."
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="2"
|
|
SOURCE_URI="https://support.hdfgroup.org/ftp/HDF5/current18/src/hdf5-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="cdb195ad8d9e6782acf24b2488061289f615628c2ccda8457b0a0c3fb7a8a063"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
libhdf5$secondaryArchSuffix = $portVersion
|
|
cmd:gif2h5$secondaryArchSuffix
|
|
cmd:h52gif$secondaryArchSuffix
|
|
cmd:h5c++$secondaryArchSuffix
|
|
cmd:h5cc$secondaryArchSuffix
|
|
cmd:h5copy$secondaryArchSuffix
|
|
cmd:h5debug$secondaryArchSuffix
|
|
cmd:h5diff$secondaryArchSuffix
|
|
cmd:h5dump$secondaryArchSuffix
|
|
cmd:h5fc$secondaryArchSuffix
|
|
cmd:h5import$secondaryArchSuffix
|
|
cmd:h5jam$secondaryArchSuffix
|
|
cmd:h5ls$secondaryArchSuffix
|
|
cmd:h5mkgrp$secondaryArchSuffix
|
|
cmd:h5perf_serial$secondaryArchSuffix
|
|
cmd:h5redeploy$secondaryArchSuffix
|
|
cmd:h5repack$secondaryArchSuffix
|
|
cmd:h5repart$secondaryArchSuffix
|
|
cmd:h5stat$secondaryArchSuffix
|
|
cmd:h5unjam$secondaryArchSuffix
|
|
lib:libhdf5$secondaryArchSuffix = 10.2.1 compat >= 10
|
|
lib:libhdf5_cpp$secondaryArchSuffix = 13.0.0 compat >= 13
|
|
lib:libhdf5_fortran$secondaryArchSuffix = 10.0.4 compat >= 0
|
|
lib:libhdf5_hl$secondaryArchSuffix = 10.1.1 compat >= 10
|
|
lib:libhdf5_hl_cpp$secondaryArchSuffix = 11.1.0 compat >= 11
|
|
lib:libhdf5hl_fortran$secondaryArchSuffix = 10.0.3 compat >= 10
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgettextpo$secondaryArchSuffix
|
|
lib:libgfortran$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libhdf5${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libhdf5$secondaryArchSuffix = 10.2.1 compat >= 10
|
|
devel:libhdf5_cpp$secondaryArchSuffix = 13.0.0 compat >= 13
|
|
devel:libhdf5_fortran$secondaryArchSuffix = 10.0.4 compat >= 0
|
|
devel:libhdf5_hl$secondaryArchSuffix = 10.1.1 compat >= 10
|
|
devel:libhdf5_hl_cpp$secondaryArchSuffix = 11.1.0 compat >= 11
|
|
devel:libhdf5hl_fortran$secondaryArchSuffix = 10.0.3 compat >= 10
|
|
"
|
|
REQUIRES_devel="
|
|
libhdf5$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgettextlib$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:awk
|
|
cmd:gettext$secondaryArchSuffix
|
|
cmd:gfortran$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure \
|
|
--enable-hl \
|
|
--enable-production \
|
|
--enable-fortran \
|
|
--enable-fortran2003 \
|
|
--enable-cxx \
|
|
--disable-sharedlib-rpath \
|
|
--disable-threadsafe
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install $jobArgs
|
|
|
|
for f in libhdf5 libhdf5_cpp libhdf5_fortran libhdf5_hl libhdf5_hl_cpp libhdf5hl_fortran; do
|
|
rm $libDir/$f.la
|
|
done
|
|
|
|
prepareInstalledDevelLibs \
|
|
libhdf5 \
|
|
libhdf5_cpp \
|
|
libhdf5_fortran \
|
|
libhdf5_hl \
|
|
libhdf5_hl_cpp \
|
|
libhdf5hl_fortran
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
mkdir -p $docDir
|
|
mv $prefix/share/hdf5_examples $docDir/
|
|
rm -rf $prefix/share
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make tests
|
|
}
|