xsimd, add version 13.2.0 (#12083)

this is a requirement to be able to build Krita from master branch
This commit is contained in:
Schrijvers Luc
2025-03-26 13:43:28 +00:00
committed by GitHub
parent e05fbf8cde
commit 659a36dab9

View File

@@ -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
}