diff --git a/ports/faudio/portfile.cmake b/ports/faudio/portfile.cmake new file mode 100644 index 0000000000..89eeec7a03 --- /dev/null +++ b/ports/faudio/portfile.cmake @@ -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" +) diff --git a/ports/faudio/vcpkg.json b/ports/faudio/vcpkg.json new file mode 100644 index 0000000000..a7c7947312 --- /dev/null +++ b/ports/faudio/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index d031da72c2..c93ec73cb3 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/f-/faudio.json b/versions/f-/faudio.json new file mode 100644 index 0000000000..e28bbdd578 --- /dev/null +++ b/versions/f-/faudio.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "214eea54c0348aa357a862b591d0872575e2ff0e", + "version-string": "24.03", + "port-version": 0 + } + ] +}