diff --git a/ports/soundtouch/portfile.cmake b/ports/soundtouch/portfile.cmake index 09fdcdb0cd2410..68bf0e66d04b70 100644 --- a/ports/soundtouch/portfile.cmake +++ b/ports/soundtouch/portfile.cmake @@ -24,6 +24,23 @@ vcpkg_cmake_configure( vcpkg_cmake_install() vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SoundTouch) +file(GLOB _targets_files + "${CURRENT_PACKAGES_DIR}/share/soundtouch/*Targets.cmake" +) + +foreach(_file IN LISTS _targets_files) + file(READ "${_file}" _content) + + # 直接重写 include(更安全) + string(REGEX REPLACE + "INTERFACE_INCLUDE_DIRECTORIES \"[^\"]*\"" + "INTERFACE_INCLUDE_DIRECTORIES \"\${_IMPORT_PREFIX}/include\"" + _content + "${_content}" + ) + + file(WRITE "${_file}" "${_content}") +endforeach() vcpkg_fixup_pkgconfig() vcpkg_copy_pdbs() diff --git a/ports/soundtouch/vcpkg.json b/ports/soundtouch/vcpkg.json index 3d0fba1495698c..b097d2932d11be 100644 --- a/ports/soundtouch/vcpkg.json +++ b/ports/soundtouch/vcpkg.json @@ -1,6 +1,7 @@ { "name": "soundtouch", "version": "2.4.0", + "port-version": 1, "description": "SoundTouch is an open-source audio processing library for changing the Tempo, Pitch and Playback Rates of audio streams or audio files.", "homepage": "https://www.surina.net/soundtouch", "license": "LGPL-2.1-only", diff --git a/versions/baseline.json b/versions/baseline.json index 9d67c4f23ae6b3..3a52ffbe690e2b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -9418,7 +9418,7 @@ }, "soundtouch": { "baseline": "2.4.0", - "port-version": 0 + "port-version": 1 }, "soxr": { "baseline": "0.1.3", diff --git a/versions/s-/soundtouch.json b/versions/s-/soundtouch.json index 1b2d47ecf64923..77675dfe5080b8 100644 --- a/versions/s-/soundtouch.json +++ b/versions/s-/soundtouch.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "99ba3c6d6f8d8a29226abbc6dbc4a7521582044a", + "version": "2.4.0", + "port-version": 1 + }, { "git-tree": "bc13dd17e35d60c64e0af1b3ee27cbe3b816e7d5", "version": "2.4.0",