From 659a36dab9663c91a61a5c26ee610c1734e48d87 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 26 Mar 2025 13:43:28 +0000 Subject: [PATCH] xsimd, add version 13.2.0 (#12083) this is a requirement to be able to build Krita from master branch --- dev-cpp/xsimd/xsimd-13.2.0.recipe | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 dev-cpp/xsimd/xsimd-13.2.0.recipe diff --git a/dev-cpp/xsimd/xsimd-13.2.0.recipe b/dev-cpp/xsimd/xsimd-13.2.0.recipe new file mode 100644 index 000000000..f780fa619 --- /dev/null +++ b/dev-cpp/xsimd/xsimd-13.2.0.recipe @@ -0,0 +1,54 @@ +SUMMARY="C++ wrappers for SIMD intrinsics" +DESCRIPTION="SIMD (Single Instruction, Multiple Data) is a feature of microprocessors that has \ +been available for many years. SIMD instructions perform a single operation on a batch of values \ +at once, and thus provide a way to significantly accelerate code execution. However, these \ +instructions differ between microprocessor vendors and compilers. + +xsimd provides a unified means for using these features for library authors. Namely, it enables \ +manipulation of batches of numbers with the same arithmetic operators as for single values. It \ +also provides accelerated implementation of common mathematical functions operating on batches." +HOMEPAGE="https://github.com/QuantStack/xsimd" +COPYRIGHT="2016 Johan Mabille, Sylvain Corlay, Wolf Vollprecht and Martin Renou + 2016 QuantStack + 2018 Serge Guelton" +LICENSE="BSD (3-clause)" +REVISION="1" +SOURCE_URI="https://github.com/xtensor-stack/xsimd/archive/refs/tags/$portVersion.tar.gz" +CHECKSUM_SHA256="edd8cd3d548c185adc70321c53c36df41abe64c1fe2c67bc6d93c3ecda82447a" + +ARCHITECTURES="any" + + +PROVIDES=" + xsimd = $portVersion + devel:xsimd = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc + cmd:make + " + +BUILD() +{ + cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \ + $cmakeDirArgs \ + -DXSIMD_CMAKECONFIG_INSTALL_DIR=$libDir/cmake/xsimd + + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + sed -e "s|\(\${_IMPORT_PREFIX}\)/include|\1/$relativeIncludeDir|" -i \ + "$libDir"/cmake/xsimd/xsimdTargets.cmake +}