diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/signalsmith-stretch | |
Diffstat (limited to 'vcpkg/ports/signalsmith-stretch')
| -rw-r--r-- | vcpkg/ports/signalsmith-stretch/portfile.cmake | 26 | ||||
| -rw-r--r-- | vcpkg/ports/signalsmith-stretch/vcpkg.json | 10 |
2 files changed, 36 insertions, 0 deletions
diff --git a/vcpkg/ports/signalsmith-stretch/portfile.cmake b/vcpkg/ports/signalsmith-stretch/portfile.cmake new file mode 100644 index 0000000..4872e5b --- /dev/null +++ b/vcpkg/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 <signalsmith-dsp/spectral.h>" _header_content "${_header_content}")
+string(REPLACE "#include \"dsp/delay.h\"" "#include <signalsmith-dsp/delay.h>" _header_content "${_header_content}")
+string(REPLACE "#include \"dsp/perf.h\"" "#include <signalsmith-dsp/perf.h>" _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/vcpkg/ports/signalsmith-stretch/vcpkg.json b/vcpkg/ports/signalsmith-stretch/vcpkg.json new file mode 100644 index 0000000..ea9ae42 --- /dev/null +++ b/vcpkg/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" + ] +} |