Files
meta-openembedded/meta-oe/recipes-support/hdf5/hdf5_1.13.2.bb
Khem Raj 0c6171ed68 hdf5: Upgrade to 1.13.2
License-Update: Add attribution to Lawrence Livermore
National Laboratory and the United States Department of Energy

Drop the Advertizing Clause from COPYING

Forward port patches

Drop 0001-cross-compiling-support.patch
bring in qemu usermode to do runtime pieces of build

Delete cached source files, as they are no longer needed

Upgrade version info in python3-h5py as well to match the upgraded
version number

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:35 -07:00

55 lines
1.8 KiB
BlitzBasic

SUMMARY = "Management suite for extremely large and complex data collections"
DESCRIPTION = "Unique technology suite that makes possible the management of \
extremely large and complex data collections"
HOMEPAGE = "https://www.hdfgroup.org/"
SECTION = "libs"
LICENSE = "HDF5"
LIC_FILES_CHKSUM = "file://COPYING;md5=ac1039f6bf7c9ab2b3693836f46d0735"
inherit cmake siteinfo qemu
DEPENDS += "qemu-native"
SRC_URI = " \
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.13/hdf5-${PV}/src/${BPN}-${PV}.tar.bz2 \
file://0002-Remove-suffix-shared-from-shared-library-name.patch \
file://0001-cmake-remove-build-flags.patch \
"
SRC_URI[sha256sum] = "9c51b3da426977ec622a43dca8adaf4e81eabf838c1ff80c6225ad1d3ed54b5c"
FILES:${PN} += "${libdir}/libhdf5.settings ${datadir}/*"
EXTRA_OECMAKE = " \
-DHDF5_INSTALL_CMAKE_DIR=${libdir}/cmake \
-DCMAKE_INSTALL_PREFIX='${prefix}' \
-DHDF5_INSTALL_LIB_DIR='${baselib}' \
"
EXTRA_OECMAKE:prepend:class-target = "-DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper "
gen_emu() {
# Write out a qemu wrapper that will be used by cmake
# so that it can run target helper binaries through that.
qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}"
cat > ${WORKDIR}/qemuwrapper << EOF
#!/bin/sh
$qemu_binary "\$@"
EOF
chmod +x ${WORKDIR}/qemuwrapper
}
do_unpack[postfuncs] += "gen_emu"
do_install:append() {
# Used for generating config files on target
install -m 755 ${B}/bin/H5detect ${D}${bindir}
install -m 755 ${B}/bin/H5make_libsettings ${D}${bindir}
}
BBCLASSEXTEND = "native"
SRC_DISTRIBUTE_LICENSES += "HDF5"
# h5fuse.sh script needs bash
RDEPENDS:${PN} += "bash"