aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/drlibs
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/drlibs')
-rw-r--r--vcpkg/ports/drlibs/portfile.cmake14
-rw-r--r--vcpkg/ports/drlibs/vcpkg.json7
2 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/drlibs/portfile.cmake b/vcpkg/ports/drlibs/portfile.cmake
new file mode 100644
index 0000000..09cc8cb
--- /dev/null
+++ b/vcpkg/ports/drlibs/portfile.cmake
@@ -0,0 +1,14 @@
+# Header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mackron/dr_libs
+ REF 3141b54b6b0067d15c4a3ec0877f2141a2a11347
+ SHA512 4f0cc42843fde19d5fdc59b684530201fc6d396d73e1b3c45eb7bededff552213467e441b6674673848b49b8172ee5ce88ed959cedb7893db117fe93cd1e06b7
+ HEAD_REF master
+)
+
+# Copy the header files
+file(GLOB HEADER_FILES "${SOURCE_PATH}/*.h")
+file(COPY ${HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/drlibs/vcpkg.json b/vcpkg/ports/drlibs/vcpkg.json
new file mode 100644
index 0000000..f617685
--- /dev/null
+++ b/vcpkg/ports/drlibs/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "drlibs",
+ "version-date": "2025-09-10",
+ "description": "Single-file audio decoding libraries for C/C++",
+ "homepage": "https://github.com/mackron/dr_libs",
+ "license": "Unlicense OR MIT-0"
+}