mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
156 lines
4.3 KiB
Bash
156 lines
4.3 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="1"
|
|
SOURCE_URI="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-$portVersion/src/hdf5-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="048a9d149fb99aaa1680a712963f5a78e9c43b588d0e79d55e06760ec377c172"
|
|
|
|
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:h5clear$secondaryArchSuffix
|
|
cmd:h5debug$secondaryArchSuffix
|
|
cmd:h5format_convert$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
|
|
cmd:h5watch$secondaryArchSuffix
|
|
lib:libdynlib1$secondaryArchSuffix
|
|
lib:libdynlib2$secondaryArchSuffix
|
|
lib:libdynlib3$secondaryArchSuffix
|
|
lib:libdynlib4$secondaryArchSuffix
|
|
lib:libdynlibadd$secondaryArchSuffix
|
|
lib:libdynlibdiff$secondaryArchSuffix
|
|
lib:libdynlibdump$secondaryArchSuffix
|
|
lib:libdynlibls$secondaryArchSuffix
|
|
lib:libdynlibvers$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:libdynlib1$secondaryArchSuffix
|
|
devel:libdynlib2$secondaryArchSuffix
|
|
devel:libdynlib3$secondaryArchSuffix
|
|
devel:libdynlib4$secondaryArchSuffix
|
|
devel:libdynlibadd$secondaryArchSuffix
|
|
devel:libdynlibdiff$secondaryArchSuffix
|
|
devel:libdynlibdump$secondaryArchSuffix
|
|
devel:libdynlibls$secondaryArchSuffix
|
|
devel:libdynlibvers$secondaryArchSuffix
|
|
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-build-mode=production \
|
|
--enable-fortran \
|
|
--enable-fortran2003 \
|
|
--enable-cxx \
|
|
--disable-sharedlib-rpath \
|
|
--disable-threadsafe
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install $jobArgs
|
|
|
|
rm $libDir/lib*.la || true
|
|
|
|
prepareInstalledDevelLibs \
|
|
libhdf5 \
|
|
libhdf5_cpp \
|
|
libhdf5_fortran \
|
|
libhdf5_hl \
|
|
libhdf5_hl_cpp \
|
|
libhdf5hl_fortran \
|
|
libdynlib1 \
|
|
libdynlib2 \
|
|
libdynlib3 \
|
|
libdynlib4 \
|
|
libdynlibadd \
|
|
libdynlibdiff \
|
|
libdynlibdump \
|
|
libdynlibls \
|
|
libdynlibvers
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
mkdir -p $docDir
|
|
mv $prefix/share/hdf5_examples $docDir/
|
|
rm -rf $prefix/share
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make tests
|
|
}
|