Skip to content
Merged
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
35 changes: 0 additions & 35 deletions ports/soundtouch/CMakeLists.txt

This file was deleted.

48 changes: 27 additions & 21 deletions ports/soundtouch/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
vcpkg_fail_port_install(ON_TARGET "UWP")

if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
message(FATAL_ERROR "WindowsStore not supported")
endif()

set(VERSION 2.0.0)

vcpkg_download_distfile(ARCHIVE
URLS "https://www.surina.net/soundtouch/soundtouch-${VERSION}.zip"
FILENAME "soundtouch-${VERSION}.zip"
SHA512 50ef36b6cd21c16e235b908c5518e29b159b11f658a014c47fe767d3d8acebaefefec0ce253b4ed322cbd26387c69c0ed464ddace0c098e61d56d55c198117a5
vcpkg_from_gitlab(
OUT_SOURCE_PATH SOURCE_PATH
GITLAB_URL https://gitlab.com
REPO soundtouch/soundtouch
REF 2.3.1
SHA512 1eea5c06dc5af633b5c16902c6a951593190daf75bd6aa12e00c745080f9363e9c45ab52ddc434bd905e4195b306cc38c9143e813430c15c19a275ae1a82df24
HEAD_REF master
)

vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
soundstretch SOUNDSTRETCH
soundtouchdll SOUNDTOUCH_DLL
)

file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
if(SOUNDTOUCH_DLL)
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_cmake_install()

vcpkg_install_cmake()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SoundTouch)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()

file(INSTALL ${SOURCE_PATH}/source/SoundTouchDLL/SoundTouchDLL.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
if(SOUNDSTRETCH)
vcpkg_copy_tools(TOOL_NAMES soundstretch AUTO_CLEAN)
endif()

file(INSTALL ${SOURCE_PATH}/COPYING.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/COPYING.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
21 changes: 18 additions & 3 deletions ports/soundtouch/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
{
"name": "soundtouch",
"version-string": "2.0.0",
"port-version": 7,
"version": "2.3.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",
"supports": "!uwp",
"dependencies": [
{
"name": "atlmfc",
"platform": "windows"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"soundstretch": {
"description": "Build the soundstretch command line tool"
},
"soundtouchdll": {
"description": "Build the SoundTouchDLL C wrapper dynamic library"
}
]
}
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6165,8 +6165,8 @@
"port-version": 0
},
"soundtouch": {
"baseline": "2.0.0",
"port-version": 7
"baseline": "2.3.1",
"port-version": 0
},
"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": "8b6b644eb3ae55d7e56413e9cd88ca5ccc814c33",
"version": "2.3.1",
"port-version": 0
},
{
"git-tree": "47269f38d27248c1e52fd21c3a296d032e02ac01",
"version-string": "2.0.0",
Expand Down