diff --git a/ports/wavpack/CMakeLists-patch.diff b/ports/wavpack/CMakeLists-patch.diff new file mode 100644 index 0000000000..1fe37634d0 --- /dev/null +++ b/ports/wavpack/CMakeLists-patch.diff @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c9f9e70..74b6ba2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -624,8 +624,19 @@ if(WAVPACK_INSTALL_CMAKE_MODULE) + write_basic_package_version_file(wavpack-config-version.cmake COMPATIBILITY SameMinorVersion) + endif() + ++ configure_package_config_file( ++ ${CMAKE_CURRENT_LIST_DIR}/wavpack-config.cmake.in ++ "${CMAKE_CURRENT_BINARY_DIR}/wavpack-config.cmake" ++ INSTALL_DESTINATION ${CMAKE_INSTALL_PACKAGEDIR} ++ ) ++ ++ install(FILES ++ "${CMAKE_CURRENT_BINARY_DIR}/wavpack-config.cmake" ++ DESTINATION ${CMAKE_INSTALL_PACKAGEDIR} ++ ) ++ + install(EXPORT wavpack-targets +- FILE wavpack-config.cmake ++ FILE wavpack-targets.cmake + NAMESPACE WavPack:: + DESTINATION ${CMAKE_INSTALL_PACKAGEDIR} + ) diff --git a/ports/wavpack/config-patch.diff b/ports/wavpack/config-patch.diff new file mode 100644 index 0000000000..3fd541238d --- /dev/null +++ b/ports/wavpack/config-patch.diff @@ -0,0 +1,16 @@ +diff --git a/wavpack-config.cmake.in b/wavpack-config.cmake.in +new file mode 100644 +index 0000000..eb6afd8 +--- /dev/null ++++ b/wavpack-config.cmake.in +@@ -0,0 +1,9 @@ ++@PACKAGE_INIT@ ++ ++include(CMakeFindDependencyMacro) ++ ++if(NOT WIN32 AND "@WAVPACK_ENABLE_THREADS@") ++ find_dependency(Threads) ++endif() ++ ++include("${CMAKE_CURRENT_LIST_DIR}/wavpack-targets.cmake") +\ No newline at end of file diff --git a/ports/wavpack/portfile.cmake b/ports/wavpack/portfile.cmake index 8fbb8eb7f4..1c1495a230 100644 --- a/ports/wavpack/portfile.cmake +++ b/ports/wavpack/portfile.cmake @@ -1,8 +1,11 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO dbry/WavPack - REF 5.6.0 - SHA512 16e1b5a74261843dff148eee6a83a0c84717477c06907af3ee1bc799f9157ba8c0d3c71eee9d93d74a1081151198a8a23d84c14a60c4b35fc145d10ee901cca1 + REF ${VERSION} + SHA512 7a0b00ee19a784b5a2ae40c1d86ddf47d989b0302ee32e6b2f4db828d632b877566f9bb8c1998d129b022f988966f29db05b7a2b59cefdd5b603292ea20464ec + PATCHES + CMakeLists-patch.diff + config-patch.diff ) vcpkg_cmake_configure( diff --git a/ports/wavpack/vcpkg.json b/ports/wavpack/vcpkg.json index 79fd7041a1..de3638d9e7 100644 --- a/ports/wavpack/vcpkg.json +++ b/ports/wavpack/vcpkg.json @@ -1,7 +1,6 @@ { "name": "wavpack", - "version": "5.6.0", - "port-version": 2, + "version": "5.7.0", "description": "WavPack encode/decode library, command-line programs, and several plugins", "homepage": "https://github.com/dbry/WavPack", "license": "BSD-3-Clause", diff --git a/versions/baseline.json b/versions/baseline.json index 7ab610241e..81d0419f16 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -9513,8 +9513,8 @@ "port-version": 0 }, "wavpack": { - "baseline": "5.6.0", - "port-version": 2 + "baseline": "5.7.0", + "port-version": 0 }, "wayland": { "baseline": "1.21.0", diff --git a/versions/w-/wavpack.json b/versions/w-/wavpack.json index 766f600235..3d7946c749 100644 --- a/versions/w-/wavpack.json +++ b/versions/w-/wavpack.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "a761d9ea9e181d39ee982c68be01ad8fecce6f16", + "version": "5.7.0", + "port-version": 0 + }, { "git-tree": "7f568a69d6cfea01660bacc223ad2f5c61063a32", "version": "5.6.0",