From 65cae11d81c5569fbe0bc9b476048b95e5e9575b Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 7 Jul 2021 19:03:54 +0200 Subject: [PATCH] highway, new recipe (#6048) --- dev-libs/highway/highway-0.12.2.recipe | 60 ++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 dev-libs/highway/highway-0.12.2.recipe diff --git a/dev-libs/highway/highway-0.12.2.recipe b/dev-libs/highway/highway-0.12.2.recipe new file mode 100644 index 000000000..fa54c331b --- /dev/null +++ b/dev-libs/highway/highway-0.12.2.recipe @@ -0,0 +1,60 @@ +SUMMARY="Efficient and performance-portable SIMD" +DESCRIPTION="Highway is a C++ library for SIMD (Single Instruction, Multiple \ +Data), i.e. applying the same operation to 'lanes'. + +Why Highway? + +- more portable (same source code) than platform-specific intrinsics, +- works on a wider range of compilers than compiler-specific vector extensions, +- more dependable than autovectorization, +- easier to write/maintain than assembly language, +- supports **runtime dispatch**, +- supports **variable-length vector** architectures." +HOMEPAGE="https://github.com/google/highway" +COPYRIGHT="2020 Google LLC" +LICENSE="Apache v2" +REVISION="1" +SOURCE_URI="https://github.com/google/highway/archive/refs/tags/$portVersion.tar.gz" +CHECKSUM_SHA256="e1d47ce510429fdcf31f41697ca74fb0dcd59d933196e531a86d51751a56f4cc" +SOURCE_FILENAME="highway-$portVersion.tar.gz" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + highway$secondaryArchSuffix = $portVersion + devel:libhwy$secondaryArchSuffix = $portVersion + devel:libhwy_contrib$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + cmake -B build -S . \ + $cmakeDirArgs \ + -DBUILD_TESTING=OFF + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLibs \ + libhwy libhwy_contrib + fixPkgconfig + + # cleanup + rmdir $libDir +}