Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions ports/soundtouch/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
1 change: 1 addition & 0 deletions ports/soundtouch/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9418,7 +9418,7 @@
},
"soundtouch": {
"baseline": "2.4.0",
"port-version": 0
"port-version": 1
},
"soxr": {
"baseline": "0.1.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/s-/soundtouch.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "99ba3c6d6f8d8a29226abbc6dbc4a7521582044a",
"version": "2.4.0",
"port-version": 1
},
{
"git-tree": "bc13dd17e35d60c64e0af1b3ee27cbe3b816e7d5",
"version": "2.4.0",
Expand Down