mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
127
sci-libs/hdf5/hdf5-1.8.18.recipe
Normal file
127
sci-libs/hdf5/hdf5-1.8.18.recipe
Normal file
@@ -0,0 +1,127 @@
|
||||
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/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 = $portVersion compat >= 10
|
||||
lib:libhdf5_cpp$secondaryArchSuffix = $portVersion compat >= 13
|
||||
lib:libhdf5_fortran$secondaryArchSuffix = $portVersion compat >= 0
|
||||
lib:libhdf5_hl$secondaryArchSuffix = $portVersion compat >= 10
|
||||
lib:libhdf5_hl_cpp$secondaryArchSuffix = $portVersion compat >= 11
|
||||
lib:libhdf5hl_fortran$secondaryArchSuffix = $portVersion 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 = $portVersion compat >= 10
|
||||
devel:libhdf5_cpp$secondaryArchSuffix = $portVersion compat >= 13
|
||||
devel:libhdf5_fortran$secondaryArchSuffix = $portVersion compat >= 0
|
||||
devel:libhdf5_hl$secondaryArchSuffix = $portVersion compat >= 10
|
||||
devel:libhdf5_hl_cpp$secondaryArchSuffix = $portVersion compat >= 11
|
||||
devel:libhdf5hl_fortran$secondaryArchSuffix = $portVersion 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 -i
|
||||
runConfigure ./configure \
|
||||
--enable-hl \
|
||||
--disable-threadsafe \
|
||||
--enable-build-mode=production \
|
||||
--enable-fortran \
|
||||
--enable-fortran2003 \
|
||||
--enable-cxx \
|
||||
--disable-sharedlib-rpath
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user