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/faudio | |
Diffstat (limited to 'vcpkg/ports/faudio')
| -rw-r--r-- | vcpkg/ports/faudio/portfile.cmake | 35 | ||||
| -rw-r--r-- | vcpkg/ports/faudio/vcpkg.json | 23 |
2 files changed, 58 insertions, 0 deletions
diff --git a/vcpkg/ports/faudio/portfile.cmake b/vcpkg/ports/faudio/portfile.cmake new file mode 100644 index 0000000..f62ff68 --- /dev/null +++ b/vcpkg/ports/faudio/portfile.cmake @@ -0,0 +1,35 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO FNA-XNA/faudio + REF "${VERSION}" + SHA512 f5acd68969e918a70ca59e2f9ef9f1c0c528a07d10537525c440247ccda0d11af7e079a815a17352f35e28c11abb33b6a926db44e87eeaa1f6910c8f0dee9ad4 + HEAD_REF master +) + +set(options "") +if(VCPKG_TARGET_IS_WINDOWS) + list(APPEND options -DPLATFORM_WIN32=TRUE) +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${options} +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FAudio) + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +vcpkg_install_copyright( + COMMENT "FAudio is licensed under the Zlib license." + FILE_LIST + "${SOURCE_PATH}/LICENSE" +) diff --git a/vcpkg/ports/faudio/vcpkg.json b/vcpkg/ports/faudio/vcpkg.json new file mode 100644 index 0000000..bbad0ca --- /dev/null +++ b/vcpkg/ports/faudio/vcpkg.json @@ -0,0 +1,23 @@ +{ + "name": "faudio", + "version-string": "25.08", + "description": "FAudio - accuracy-focused XAudio reimplementation for open platforms", + "homepage": "https://fna-xna.github.io/", + "license": "Zlib", + "supports": "!uwp", + "dependencies": [ + { + "name": "sdl3", + "default-features": false, + "platform": "!windows" + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |