Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haikuports/haikuports
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6b5959fbac04
Choose a base ref
...
head repository: haikuports/haikuports
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 65cae11d81c5
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 7, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    65cae11 View commit details
Showing with 60 additions and 0 deletions.
  1. +60 −0 dev-libs/highway/highway-0.12.2.recipe
60 changes: 60 additions & 0 deletions dev-libs/highway/highway-0.12.2.recipe
Original file line number Diff line number Diff line change
@@ -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
}