Hi,
eccodes builds out of the box, more or less. However, all tests fail because 
the cyg*.dll's weren't copied to ${B}/bin. (They were handled properly when 
built without cygport i.e. copied from src and fortran subdirs of the build 
dir.)
What have I done wrong?
Apologies for cut and paste. I have yet to learn git. It is on the list... 

Finally, is there template for passing the number of processors minus 1 to 
cygport for all compiling and testing? If so, will cygport pass it 
automatically through cygcmake to its makefile generator and to cygtest? It 
would be nice to speed up my compile.
Thanks,Brendan

eccodes.cygport-----------------------------------------------------------------------------------inherit
 cmake
shopt -s extglob
# WARNING: source download link has to be hard-coded :(# The eccodes cmake 
default install location is usr/local
NAME="eccodes"VERSION=2.21.0RELEASE=1
CATEGORY="Science"SUMMARY="ECMWF tools to decode and encode WMO GRIB and BUFR 
file formats, and decode WMO GTS file format"DESCRIPTION="ecCodes is a package 
developed by ECMWF which provides an API and a set of tools\ for decoding and 
encoding messages in the following formats\:\ WMO FM-92 GRIB edition 1 and 
edition 2\ WMO FM-94 BUFR edition 3 and edition 4\  WMO GTS abbreviated header 
(only decoding)"
HOMEPAGE="https://confluence.ecmwf.int/display/ECC/ecCodes+Home"SRC_URI="https://confluence.ecmwf.int/download/attachments/45757960/eccodes-2.21.0-Source.tar.gz";
 SRC_DIR="${PN}-${PV}-Source"
PKG_NAMES="eccodes libeccodes libeccodes-devel"
eccodes_CONTENTS="  usr/local/bin/!(cyg*dll)  usr/local/share"
libeccodes_CATEGORY="Libs"libeccodes_SUMMARY="${SUMMARY} 
(runtime)"libeccodes_CONTENTS="  usr/local/bin/cyg*dll"
libeccodes_devel_CATEGORY="Libs"libeccodes_devel_SUMMARY="${SUMMARY} 
(development)"libeccodes_devel_CONTENTS="  usr/local/lib/  usr/local/include"
RESTRICT="diff"KEEP_LA_FILES="none"
# curl is required to download full test data set from ECMWF. Will this behave 
under CI?BUILD_REQUIRES="curl gfortran libnetcdf-devel libopenjpeg-devel 
libpng-devel libaec-devel libgomp1"
CYGCMAKE_GENERATOR="Unix Makefiles"CYGCMAKE_ARGS="    -DDISABLE_OS_CHECK=ON 
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DIEEE_LE=1    -DENABLE_NETCDF=ON 
-DENABLE_JPG_LIBOPENJPEG=ON -DENABLE_PNG=ON -DENABLE_AEC=ON -DENABLE_FORTRAN=ON 
-DENABLE_ECCODES_OMP_THREADS=ON -DENABLE_MEMFS=OFF -DENABLE_EXTRA_TESTS=ON"

Reply via email to