108 lines
2.8 KiB
Bash
108 lines
2.8 KiB
Bash
SUMMARY="Scientific library and interface for array oriented data access"
|
|
DESCRIPTION="NetCDF (network Common Data Form) is an interface for \
|
|
scientific data access and a freely-distributed software library that \
|
|
provides an implementation of the interface. The netCDF library also \
|
|
defines a machine-independent format for representing scientific data. \
|
|
Together, the interface, library, and format support the creation, access, \
|
|
and sharing of scientific data."
|
|
HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/"
|
|
COPYRIGHT="1993-2016 University Corporation for Atmospheric Research/Unidata"
|
|
LICENSE="UCAR_Unidata"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/Unidata/netcdf-c/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7648db7bd75fdd198f7be64625af7b276067de48a49dcdfd160f1c2ddff8189c"
|
|
SOURCE_DIR="netcdf-c-$portVersion"
|
|
PATCHES="netcdf-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="15.2.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
netcdf$secondaryArchSuffix = $portVersion
|
|
lib:libh5bzip2$secondaryArchSuffix = $portVersion
|
|
lib:libnetcdf$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libhdf5$secondaryArchSuffix
|
|
lib:libhdf5_hl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
netcdf${secondaryArchSuffix}_devel = $portVersion
|
|
cmd:nc_config$secondaryArchSuffix = $portVersion
|
|
cmd:nccopy$secondaryArchSuffix = $portVersion
|
|
cmd:ncdump$secondaryArchSuffix = $portVersion
|
|
cmd:ncgen$secondaryArchSuffix = $portVersion
|
|
cmd:ncgen3$secondaryArchSuffix = $portVersion
|
|
devel:libh5bzip2$secondaryArchSuffix = $portVersion
|
|
devel:libnetcdf$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
haiku$secondaryArchSuffix
|
|
netcdf$secondaryArchSuffix == $portVersion base
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libhdf5$secondaryArchSuffix
|
|
lib:libhdf5_hl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libhdf5$secondaryArchSuffix
|
|
devel:libhdf5_hl$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:dd
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sed
|
|
"
|
|
|
|
defineDebugInfoPackage netcdf$secondaryArchSuffix \
|
|
"$libDir"/libh5bzip2.so \
|
|
"$libDir"/libnetcdf.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p haiku_build && cd haiku_build
|
|
runConfigure ../configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd haiku_build
|
|
make install $jobArgs
|
|
|
|
rm -f $libDir/lib*.la $libDir/libnetcdf.a
|
|
|
|
prepareInstalledDevelLibs \
|
|
libh5bzip2 \
|
|
libnetcdf
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$binDir \
|
|
$developDir \
|
|
$manDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd haiku_build
|
|
make check
|
|
}
|