diff --git a/sci-libs/netcdf_cxx/licenses/UCAR_Unidata b/sci-libs/netcdf_cxx/licenses/UCAR_Unidata new file mode 100644 index 000000000..ae11dec43 --- /dev/null +++ b/sci-libs/netcdf_cxx/licenses/UCAR_Unidata @@ -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. diff --git a/sci-libs/netcdf_cxx/netcdf_cxx-4.3.0.recipe b/sci-libs/netcdf_cxx/netcdf_cxx-4.3.0.recipe new file mode 100644 index 000000000..37660fb64 --- /dev/null +++ b/sci-libs/netcdf_cxx/netcdf_cxx-4.3.0.recipe @@ -0,0 +1,87 @@ +SUMMARY="C++ library for netCDF" +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. This is the C++ library which links to the \ +C library." +HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/" +COPYRIGHT="1993-2011 University Corporation for Atmospheric Research/Unidata" +LICENSE="UCAR_Unidata" +REVISION="1" +SOURCE_URI="https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz" +CHECKSUM_SHA256="25da1c97d7a01bc4cee34121c32909872edd38404589c0427fefa1301743f18f" +SOURCE_DIR="netcdf-cxx4-$portVersion" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="?x86" + +libnetcdf_cppVersion="1.0.3" +libnetcdf_cppVersionCompat="$libnetcdf_cppVersion compat >= ${libnetcdf_cppVersion%%.*}" + +PROVIDES=" + netcdf_cxx$secondaryArchSuffix = $portVersion + lib:libnetcdf_c++4$secondaryArchSuffix = $libnetcdf_cppVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libnetcdf$secondaryArchSuffix + " + +PROVIDES_devel=" + netcdf_cxx${secondaryArchSuffix}_devel = $portVersion + cmd:ncxx4_config$secondaryArchSuffix = $portVersion + devel:libnetcdf_c++4$secondaryArchSuffix = $libnetcdf_cppVersionCompat + " +REQUIRES_devel=" + netcdf_cxx$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libnetcdf$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_cxx$secondaryArchSuffix \ + "$libDir"/libnetcdf_c++4.so.$libnetcdf_cppVersion + +BUILD() +{ + mkdir -p haiku_build && cd haiku_build + runConfigure ../configure + make $jobArgs +} + +INSTALL() +{ + cd haiku_build + make install $jobArgs + + rm -f $libDir/lib*.la + + prepareInstalledDevelLib \ + libnetcdf_c++4 + + fixPkgconfig + + packageEntries devel \ + $binDir \ + $developDir +} + +TEST() +{ + cd haiku_build + make check +}