[faudio] new port (#37157)

This commit is contained in:
Rafael Kitover 2024-03-11 20:56:31 -07:00 committed by GitHub
parent 6126c983b9
commit 82185909a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO FNA-XNA/faudio
REF cfdc4db21a9c7d21a9132da5b213248a823fbe05 # This is 24.03 with 3 patches to fix minor build failures by @rkitover and @dg0yt
SHA512 9f7ee882e9aa7cf80d976e2c016aa085222d21da2b0fac0e59f5a713e3a3dd41deb2dfc1a4698a3eff0b46bb122eca874fbd5b2747c243c53118bae3c5af9ef9
HEAD_REF master
PATCHES
)
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()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FAudio)
vcpkg_install_copyright(
COMMENT "FAudio is licensed under the Zlib license."
FILE_LIST
"${SOURCE_PATH}/LICENSE"
)

23
ports/faudio/vcpkg.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "faudio",
"version-string": "24.03",
"description": "FAudio - accuracy-focused XAudio reimplementation for open platforms",
"homepage": "https://fna-xna.github.io/",
"license": "Zlib",
"supports": "!uwp",
"dependencies": [
{
"name": "sdl2",
"default-features": false,
"platform": "!windows"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -2620,6 +2620,10 @@
"baseline": "2.7.0",
"port-version": 5
},
"faudio": {
"baseline": "24.03",
"port-version": 0
},
"fawdlstty-libfv": {
"baseline": "0.0.8",
"port-version": 0

9
versions/f-/faudio.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "214eea54c0348aa357a862b591d0872575e2ff0e",
"version-string": "24.03",
"port-version": 0
}
]
}