From 0f089d02bbe88032c32a8084ff4a0fae2f7a64a3 Mon Sep 17 00:00:00 2001 From: Stephen Just Date: Mon, 22 Aug 2022 09:44:24 -0700 Subject: [PATCH] [openal-soft] Enable NEON on arm64 targets (#26452) * [openal] Enable NEON on arm64 targets * Add versions * Typo * Update version database --- ports/openal-soft/portfile.cmake | 6 +++++- ports/openal-soft/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/o-/openal-soft.json | 5 +++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ports/openal-soft/portfile.cmake b/ports/openal-soft/portfile.cmake index aa6c7b01b3..fa6fb6e3f3 100644 --- a/ports/openal-soft/portfile.cmake +++ b/ports/openal-soft/portfile.cmake @@ -20,6 +20,7 @@ endif() set(ALSOFT_REQUIRE_LINUX OFF) set(ALSOFT_REQUIRE_WINDOWS OFF) set(ALSOFT_REQUIRE_APPLE OFF) +set(ALSOFT_CPUEXT_NEON OFF) if(VCPKG_TARGET_IS_LINUX) set(ALSOFT_REQUIRE_LINUX ON) @@ -30,6 +31,9 @@ endif() if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS) set(ALSOFT_REQUIRE_APPLE ON) endif() +if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") + set(ALSOFT_CPUEXT_NEON ON) +endif() vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" @@ -54,7 +58,7 @@ vcpkg_cmake_configure( -DALSOFT_BACKEND_WINMM=OFF -DALSOFT_BACKEND_DSOUND=OFF -DALSOFT_REQUIRE_WASAPI=${ALSOFT_REQUIRE_WINDOWS} - -DALSOFT_CPUEXT_NEON=OFF + -DALSOFT_CPUEXT_NEON=${ALSOFT_CPUEXT_NEON} -DCMAKE_DISABLE_FIND_PACKAGE_WindowsSDK=ON MAYBE_UNUSED_VARIABLES ALSOFT_AMBDEC_PRESETS diff --git a/ports/openal-soft/vcpkg.json b/ports/openal-soft/vcpkg.json index 38555819ce..b6a1a169a7 100644 --- a/ports/openal-soft/vcpkg.json +++ b/ports/openal-soft/vcpkg.json @@ -1,7 +1,7 @@ { "name": "openal-soft", "version-semver": "1.22.2", - "port-version": 2, + "port-version": 3, "description": "OpenAL Soft is an LGPL-licensed, cross-platform, software implementation of the OpenAL 3D audio API.", "homepage": "https://github.com/kcat/openal-soft", "license": "GPL-2.0-or-later", diff --git a/versions/baseline.json b/versions/baseline.json index 531246778c..a192863f9d 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5154,7 +5154,7 @@ }, "openal-soft": { "baseline": "1.22.2", - "port-version": 2 + "port-version": 3 }, "openblas": { "baseline": "0.3.20", diff --git a/versions/o-/openal-soft.json b/versions/o-/openal-soft.json index 819a183d4e..fcc1028c60 100644 --- a/versions/o-/openal-soft.json +++ b/versions/o-/openal-soft.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "a0e8008cd2061bcaeaf0ed725438edae4386aac1", + "version-semver": "1.22.2", + "port-version": 3 + }, { "git-tree": "a964545a6c1ea12eb653de3d4739431ddf1cce85", "version-semver": "1.22.2",