void-packages/srcpkgs/highway/template

24 lines
844 B
Bash

# Template file for 'highway'
pkgname=highway
version=1.1.0
revision=1
build_style=cmake
configure_args="-DHWY_SYSTEM_GTEST=ON -DHWY_ENABLE_EXAMPLES=OFF"
checkdepends="gtest-devel"
short_desc="C++ library providing portable SIMD/vector intrinsics"
maintainer="Joshua Krämer <joshua@kraemer.link>"
license="Apache-2.0"
homepage="https://github.com/google/highway"
changelog="https://raw.githubusercontent.com/google/highway/master/debian/changelog"
distfiles="https://github.com/google/highway/archive/${version}.tar.gz"
checksum=354a8b4539b588e70b98ec70844273e3f2741302c4c377bcc4e81b3d1866f7c9
if [ -z "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DBUILD_TESTING=OFF"
fi
# Workaround for i686, requires GCC 13+
# See: https://github.com/google/highway/issues/1488
CFLAGS="-fexcess-precision=standard"
CXXFLAGS="-fexcess-precision=standard"