mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
highway, new recipe (#6048)
This commit is contained in:
60
dev-libs/highway/highway-0.12.2.recipe
Normal file
60
dev-libs/highway/highway-0.12.2.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user