From fe65b34d8245d05d7f056d9658a52504e62702d3 Mon Sep 17 00:00:00 2001 From: Pierre Wendling Date: Mon, 13 Feb 2023 21:55:39 -0500 Subject: [PATCH] [opusfile] Fix CMake config for case-sensitive FS. On case-sensitive filesystems, `OpusFileConfig.cmake` is unable to find the exported targets due to mismatch case. See xiph/opusfile#42 --- ports/opusfile/portfile.cmake | 2 ++ ports/opusfile/vcpkg.json | 1 + 2 files changed, 3 insertions(+) diff --git a/ports/opusfile/portfile.cmake b/ports/opusfile/portfile.cmake index 67edb4ae8afd54..bed5e96ee44cfd 100644 --- a/ports/opusfile/portfile.cmake +++ b/ports/opusfile/portfile.cmake @@ -9,6 +9,8 @@ vcpkg_from_github( file(WRITE "${SOURCE_PATH}/package_version" "PACKAGE_VERSION=${VERSION}") +vcpkg_replace_string("${SOURCE_PATH}/cmake/OpusFileConfig.cmake.in" "opusfileTargets.cmake" "OpusFileTargets.cmake") + vcpkg_check_features( OUT_FEATURE_OPTIONS FEATURE_OPTIONS INVERTED_FEATURES diff --git a/ports/opusfile/vcpkg.json b/ports/opusfile/vcpkg.json index a06beb587ac2d8..fcb3308a675e0a 100644 --- a/ports/opusfile/vcpkg.json +++ b/ports/opusfile/vcpkg.json @@ -1,6 +1,7 @@ { "name": "opusfile", "version": "0.12+20221121", + "port-version": 1, "description": "Stand-alone decoder library for .opus streams", "homepage": "https://github.com/xiph/opusfile", "license": "BSD-3-Clause",