1SUMMARY="Scientific library and interface for array oriented data access" 2DESCRIPTION="NetCDF (network Common Data Form) is an interface for \ 3scientific data access and a freely-distributed software library that \ 4provides an implementation of the interface. The netCDF library also \ 5defines a machine-independent format for representing scientific data. \ 6Together, the interface, library, and format support the creation, access, \ 7and sharing of scientific data. This is the FORTRAN 77 and 90 library on \ 8top of the C library." 9HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/" 10COPYRIGHT="1993-2014 University Corporation for Atmospheric Research/Unidata" 11LICENSE="UCAR_Unidata" 12REVISION="2" 13SOURCE_URI="https://github.com/Unidata/netcdf-fortran/archive/v$portVersion.tar.gz" 14CHECKSUM_SHA256="1a8613cb639e83e2df5a8e6c21fa48a0c64b053c244abddecec66cfcac03a48a" 15SOURCE_DIR="netcdf-fortran-$portVersion" 16 17ARCHITECTURES="all !x86_gcc2" 18SECONDARY_ARCHITECTURES="x86" 19 20libVersion="7.1.0" 21libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 22 23PROVIDES=" 24 netcdf_fortran$secondaryArchSuffix = $portVersion 25 lib:libnetcdff$secondaryArchSuffix = $libVersionCompat 26 " 27REQUIRES=" 28 haiku$secondaryArchSuffix 29 lib:libgfortran$secondaryArchSuffix 30 lib:libnetcdf$secondaryArchSuffix 31 lib:libquadmath$secondaryArchSuffix 32 " 33 34PROVIDES_devel=" 35 netcdf_fortran${secondaryArchSuffix}_devel = $portVersion 36 cmd:nf_config$secondaryArchSuffix = $portVersion 37 devel:libnetcdff$secondaryArchSuffix = $libVersionCompat 38 " 39REQUIRES_devel=" 40 netcdf_fortran$secondaryArchSuffix == $portVersion base 41 " 42 43BUILD_REQUIRES=" 44 haiku${secondaryArchSuffix}_devel 45 devel:libgfortran$secondaryArchSuffix 46 devel:libnetcdf$secondaryArchSuffix 47 devel:libquadmath$secondaryArchSuffix 48 " 49BUILD_PREREQUIRES=" 50 cmd:awk 51 cmd:dd 52 cmd:g++$secondaryArchSuffix 53 cmd:gfortran$secondaryArchSuffix 54 cmd:grep 55 cmd:libtoolize$secondaryArchSuffix 56 cmd:make 57 cmd:pkg_config$secondaryArchSuffix 58 cmd:sed 59 " 60 61defineDebugInfoPackage netcdf_fortran$secondaryArchSuffix \ 62 "$libDir"/libnetcdff.so.$libVersion 63 64BUILD() 65{ 66 mkdir -p haiku_build && cd haiku_build 67 runConfigure ../configure 68 make $jobArgs 69} 70 71INSTALL() 72{ 73 cd haiku_build 74 make install $jobArgs 75 76 rm -f $libDir/lib*.la $libDir/libnetcdff.a 77 78 prepareInstalledDevelLib \ 79 libnetcdff 80 81 fixPkgconfig 82 83 packageEntries devel \ 84 $binDir \ 85 $developDir \ 86 $manDir 87} 88 89TEST() 90{ 91 cd haiku_build 92 make check 93} 94