aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/fxaudio
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/fxaudio
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/fxaudio')
-rw-r--r--vcpkg/ports/fxaudio/portfile.cmake23
-rw-r--r--vcpkg/ports/fxaudio/usage4
-rw-r--r--vcpkg/ports/fxaudio/vcpkg.json24
3 files changed, 51 insertions, 0 deletions
diff --git a/vcpkg/ports/fxaudio/portfile.cmake b/vcpkg/ports/fxaudio/portfile.cmake
new file mode 100644
index 0000000..1276df8
--- /dev/null
+++ b/vcpkg/ports/fxaudio/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO EnzoMassyle/AudioFX
+ REF ${VERSION}
+ SHA512 406f346e580a8c0df6a0aa2f38b99b0e58920b05bea97b5dd625b077ef8cc48bbbadeeee1f76cc986dedbbe5eca07e20ba6ade61f6e0a880e071f0fae7afd020
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/FXAUDIO")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+
+configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
diff --git a/vcpkg/ports/fxaudio/usage b/vcpkg/ports/fxaudio/usage
new file mode 100644
index 0000000..78deea9
--- /dev/null
+++ b/vcpkg/ports/fxaudio/usage
@@ -0,0 +1,4 @@
+fxaudio library provides CMake targets:
+
+ find_package(FXAUDIO CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE FXAUDIO::fxaudio)
diff --git a/vcpkg/ports/fxaudio/vcpkg.json b/vcpkg/ports/fxaudio/vcpkg.json
new file mode 100644
index 0000000..69e9374
--- /dev/null
+++ b/vcpkg/ports/fxaudio/vcpkg.json
@@ -0,0 +1,24 @@
+{
+ "name": "fxaudio",
+ "version": "1.0.0",
+ "description": "An easy to use audio processing library",
+ "homepage": "https://github.com/EnzoMassyle/AudioFX",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "fftw3",
+ "features": [
+ "threads"
+ ]
+ },
+ "libsndfile",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}