From 4ed66755acdd1a634609dae3afef930ff8983284 Mon Sep 17 00:00:00 2001 From: Jiangjie Date: Mon, 9 Sep 2024 02:52:43 +0800 Subject: [PATCH] [opus] update to v1.5.2 (#40768) (#40771) --- ports/opus/portfile.cmake | 6 +++++- ports/opus/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/o-/opus.json | 5 +++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ports/opus/portfile.cmake b/ports/opus/portfile.cmake index 747daa355e..c3689a1d54 100644 --- a/ports/opus/portfile.cmake +++ b/ports/opus/portfile.cmake @@ -2,7 +2,7 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO xiph/opus REF "v${VERSION}" - SHA512 ba79ad035993e7bc4c09b7d77964ba913eb0b2be33305e8a04a8c49aaab21c4d96ac828e31ae45484896105851fdfc8c305c63c8400e4481dd76c62a1c12286b + SHA512 4ffefd9c035671024f9720c5129bfe395dea04f0d6b730041c2804e89b1db6e4d19633ad1ae58855afc355034233537361e707f26dc53adac916554830038fab HEAD_REF main PATCHES fix-pkgconfig-version.patch ) @@ -21,6 +21,10 @@ if(VCPKG_TARGET_IS_MINGW) list(APPEND ADDITIONAL_OPUS_OPTIONS "-DOPUS_USE_NEON=OFF") # for version 1.3.1 (remove for future Opus release) list(APPEND ADDITIONAL_OPUS_OPTIONS "-DOPUS_DISABLE_INTRINSICS=ON") # for HEAD (and future Opus release) endif() +elseif(VCPKG_TARGET_IS_WINDOWS) + if(VCPKG_CRT_LINKAGE STREQUAL "static") + list(APPEND ADDITIONAL_OPUS_OPTIONS "-DOPUS_STATIC_RUNTIME=ON") + endif() elseif(VCPKG_TARGET_IS_EMSCRIPTEN) set(STACK_PROTECTOR OFF) else() diff --git a/ports/opus/vcpkg.json b/ports/opus/vcpkg.json index 4edeaa1e04..574879eed6 100644 --- a/ports/opus/vcpkg.json +++ b/ports/opus/vcpkg.json @@ -1,6 +1,6 @@ { "name": "opus", - "version": "1.5.1", + "version": "1.5.2", "description": "Totally open, royalty-free, highly versatile audio codec", "homepage": "https://github.com/xiph/opus", "license": "BSD-3-Clause", diff --git a/versions/baseline.json b/versions/baseline.json index 746309cf15..292a1f1f74 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6721,7 +6721,7 @@ "port-version": 0 }, "opus": { - "baseline": "1.5.1", + "baseline": "1.5.2", "port-version": 0 }, "opusfile": { diff --git a/versions/o-/opus.json b/versions/o-/opus.json index b1f1de980f..819fc753de 100644 --- a/versions/o-/opus.json +++ b/versions/o-/opus.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "368f8193c8c240a844cd342a3a485a0fa62e5774", + "version": "1.5.2", + "port-version": 0 + }, { "git-tree": "0f51fa10fe5bff98d91195334aa9b6456bb43422", "version": "1.5.1",