From 7ee600e95ee4f8e5353affd29e3f67f16b4658b6 Mon Sep 17 00:00:00 2001 From: Daniel Martinez Date: Thu, 18 Jul 2024 15:02:38 -0400 Subject: [PATCH] highway: update to 1.2.0, build shared libs --- common/shlibs | 1 + srcpkgs/highway-devel | 1 + srcpkgs/highway/template | 24 +++++++++++++++++------- 3 files changed, 19 insertions(+), 7 deletions(-) create mode 120000 srcpkgs/highway-devel diff --git a/common/shlibs b/common/shlibs index 8a716ff9623..3e00d163604 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4518,3 +4518,4 @@ libKPim6MimeTreeParserWidgets.so.6 mimetreeparser-24.02.0_1 libopenrazer.so.0 libopenrazer-0.2.0_1 libstaroffice-0.0.so.0 libstaroffice-0.0.7_1 libbox2d.so.2 box2d-2.4.1_1 +libhwy.so.1 highway-1.2.0_1 diff --git a/srcpkgs/highway-devel b/srcpkgs/highway-devel new file mode 120000 index 00000000000..3435998720d --- /dev/null +++ b/srcpkgs/highway-devel @@ -0,0 +1 @@ +highway \ No newline at end of file diff --git a/srcpkgs/highway/template b/srcpkgs/highway/template index e3489e5f646..9dfd5b6652e 100644 --- a/srcpkgs/highway/template +++ b/srcpkgs/highway/template @@ -1,9 +1,9 @@ # Template file for 'highway' pkgname=highway -version=1.1.0 +version=1.2.0 revision=1 build_style=cmake -configure_args="-DHWY_SYSTEM_GTEST=ON -DHWY_ENABLE_EXAMPLES=OFF" +configure_args="-DHWY_SYSTEM_GTEST=ON -DHWY_ENABLE_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON" checkdepends="gtest-devel" short_desc="C++ library providing portable SIMD/vector intrinsics" maintainer="Joshua Krämer " @@ -11,13 +11,23 @@ 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 +checksum=7e0be78b8318e8bdbf6fa545d2ecb4c90f947df03f7aadc42c1967f019e63343 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" +case "$XBPS_TARGET_MACHINE" in + i686*) configure_args+=" -DHWY_CMAKE_SSE2=ON";; +esac + +highway-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +}