mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
NetCDF-C 4.6.1 (#2970): new recipe
This commit is contained in:
36
sci-libs/netcdf/licenses/UCAR_Unidata
Normal file
36
sci-libs/netcdf/licenses/UCAR_Unidata
Normal file
@@ -0,0 +1,36 @@
|
||||
The NetCDF Copyright.
|
||||
|
||||
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
|
||||
2015, 2016
|
||||
University Corporation for Atmospheric Research/Unidata.
|
||||
|
||||
Portions of this software were developed by the Unidata Program at the
|
||||
University Corporation for Atmospheric Research.
|
||||
|
||||
Access and use of this software shall impose the following obligations
|
||||
and understandings on the user. The user is granted the right, without
|
||||
any fee or cost, to use, copy, modify, alter, enhance and distribute
|
||||
this software, and any derivative works thereof, and its supporting
|
||||
documentation for any purpose whatsoever, provided that this entire
|
||||
notice appears in all copies of the software, derivative works and
|
||||
supporting documentation. Further, UCAR requests that the user credit
|
||||
UCAR/Unidata in any publications that result from the use of this
|
||||
software or in any product that includes this software, although this
|
||||
is not an obligation. The names UCAR and/or Unidata, however, may not
|
||||
be used in any advertising or publicity to endorse or promote any
|
||||
products or commercial entity unless specific written permission is
|
||||
obtained from UCAR/Unidata. The user also understands that
|
||||
UCAR/Unidata is not obligated to provide the user with any support,
|
||||
consulting, training or assistance of any kind with regard to the use,
|
||||
operation and performance of this software nor to provide the user
|
||||
with any updates, revisions, new versions or "bug fixes."
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY UCAR/UNIDATA "AS IS" AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL UCAR/UNIDATA BE LIABLE FOR ANY SPECIAL,
|
||||
INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
|
||||
FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||
WITH THE ACCESS, USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
106
sci-libs/netcdf/netcdf-4.6.1.recipe
Normal file
106
sci-libs/netcdf/netcdf-4.6.1.recipe
Normal file
@@ -0,0 +1,106 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://github.com/Unidata/netcdf-c/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a2fabf27c72a5ee746e3843e1debbaad37cd035767eaede2045371322211eebb"
|
||||
SOURCE_DIR="netcdf-c-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
libnetcdfVersion="13.1.1"
|
||||
libnetcdfVersionCompat="$libnetcdfVersion compat >= ${libnetcdfVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
netcdf$secondaryArchSuffix = $portVersion
|
||||
lib:libbzip2$secondaryArchSuffix = $portVersion
|
||||
lib:libmisc$secondaryArchSuffix = $portVersion
|
||||
lib:libnetcdf$secondaryArchSuffix = $libnetcdfVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libhdf5$secondaryArchSuffix
|
||||
lib:libhdf5_hl$secondaryArchSuffix
|
||||
lib:libzlib$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
|
||||
cmd:ocprint$secondaryArchSuffix = $portVersion
|
||||
devel:libbzip2$secondaryArchSuffix = $portVersion
|
||||
devel:libmisc$secondaryArchSuffix = $portVersion
|
||||
devel:libnetcdf$secondaryArchSuffix = $libnetcdfVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
netcdf$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
devel:libhdf5$secondaryArchSuffix
|
||||
devel:libhdf5_hl$secondaryArchSuffix
|
||||
devel:libzlib$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"/libbzip2.so \
|
||||
"$libDir"/libmisc.so \
|
||||
"$libDir"/libnetcdf.so.$libnetcdfVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p haiku_build && cd haiku_build
|
||||
runConfigure ../configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd haiku_build
|
||||
make install $jobArgs
|
||||
|
||||
rm -f $libDir/lib*.la
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libbzip2 \
|
||||
libmisc \
|
||||
libnetcdf
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$binDir \
|
||||
$developDir \
|
||||
$manDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd haiku_build
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user