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/libsamplerate | |
Diffstat (limited to 'vcpkg/ports/libsamplerate')
| -rw-r--r-- | vcpkg/ports/libsamplerate/portfile.cmake | 27 | ||||
| -rw-r--r-- | vcpkg/ports/libsamplerate/vcpkg.json | 18 |
2 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/libsamplerate/portfile.cmake b/vcpkg/ports/libsamplerate/portfile.cmake new file mode 100644 index 0000000..c75af14 --- /dev/null +++ b/vcpkg/ports/libsamplerate/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO libsndfile/libsamplerate + REF 0.2.2 + SHA512 37e0fd604907caf978659466289315befd66eec16c21a94e0b6106de18ffe803fbf2e7f3a8fb0430b33c0b784ecd6d4eaf3b9a862ed2670104647decbee913d6 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF + -DLIBSAMPLERATE_EXAMPLES=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SampleRate PACKAGE_NAME SampleRate) +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") + +vcpkg_copy_pdbs() diff --git a/vcpkg/ports/libsamplerate/vcpkg.json b/vcpkg/ports/libsamplerate/vcpkg.json new file mode 100644 index 0000000..396a08a --- /dev/null +++ b/vcpkg/ports/libsamplerate/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "libsamplerate", + "version": "0.2.2", + "port-version": 1, + "description": "Sample Rate Converter for audio", + "homepage": "http://libsndfile.github.io/libsamplerate/", + "license": "BSD-2-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |