diff --git a/ports/signalsmith-stretch/portfile.cmake b/ports/signalsmith-stretch/portfile.cmake new file mode 100644 index 0000000000..4872e5b16a --- /dev/null +++ b/ports/signalsmith-stretch/portfile.cmake @@ -0,0 +1,26 @@ +set(VCPKG_BUILD_TYPE release) # header-only + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Signalsmith-Audio/signalsmith-stretch + REF "${VERSION}" + SHA512 cc014fcd64a3bd04a4d389a2b2cbc63025d8672d54eafb5f5bdf03428246581ecf57006f6ced38b608e50afa59cfaf5a92693ce234537ca8e92f4d3b75193568 + HEAD_REF main +) + +file(REMOVE_RECURSE + "${SOURCE_PATH}/cmd" + "${SOURCE_PATH}/dsp" + "${SOURCE_PATH}/web" +) + +# Adjust include path to the VCPKG port signalsmith-dsp +file(READ "${SOURCE_PATH}/signalsmith-stretch.h" _header_content) +string(REPLACE "#include \"dsp/spectral.h\"" "#include " _header_content "${_header_content}") +string(REPLACE "#include \"dsp/delay.h\"" "#include " _header_content "${_header_content}") +string(REPLACE "#include \"dsp/perf.h\"" "#include " _header_content "${_header_content}") +file(WRITE "${SOURCE_PATH}/signalsmith-stretch.h" "${_header_content}") + +file(INSTALL "${SOURCE_PATH}/signalsmith-stretch.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/signalsmith-stretch") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/ports/signalsmith-stretch/vcpkg.json b/ports/signalsmith-stretch/vcpkg.json new file mode 100644 index 0000000000..ea9ae423f7 --- /dev/null +++ b/ports/signalsmith-stretch/vcpkg.json @@ -0,0 +1,10 @@ +{ + "name": "signalsmith-stretch", + "version": "1.1.0", + "description": "C++ polyphonic pitch/time library", + "homepage": "https://signalsmith-audio.co.uk/code/stretch/", + "license": "MIT", + "dependencies": [ + "signalsmith-dsp" + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 7735d94efa..9299e787de 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -8732,6 +8732,10 @@ "baseline": "1.6.2", "port-version": 0 }, + "signalsmith-stretch": { + "baseline": "1.1.0", + "port-version": 0 + }, "sigslot": { "baseline": "1.0.0", "port-version": 5 diff --git a/versions/s-/signalsmith-stretch.json b/versions/s-/signalsmith-stretch.json new file mode 100644 index 0000000000..2206154876 --- /dev/null +++ b/versions/s-/signalsmith-stretch.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "5b7dedca8595df5e0b457a38b267d42886fd97f0", + "version": "1.1.0", + "port-version": 0 + } + ] +}