aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2020-08-01 02:30:06 +0800
committerGitHub <noreply@github.com>2020-07-31 11:30:06 -0700
commitc2b5201e1f73c5e69618525035586079c48495ed (patch)
tree7e104ce802873d6ce36ff412a4fa7fe6b357e5d0
parent19e86d2dab3704bd09b02cb58fbe23c9f710e2d4 (diff)
downloadvcpkg-c2b5201e1f73c5e69618525035586079c48495ed.tar.gz
vcpkg-c2b5201e1f73c5e69618525035586079c48495ed.zip
[audiofile] Add new port (#12482)
-rw-r--r--ports/audiofile/portfile.cmake13
-rw-r--r--ports/audiofile/vcpkg.json7
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/audiofile/portfile.cmake b/ports/audiofile/portfile.cmake
new file mode 100644
index 000000000..49f9a67d2
--- /dev/null
+++ b/ports/audiofile/portfile.cmake
@@ -0,0 +1,13 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO adamstark/AudioFile
+ REF ccb64bd86881099e65a329f104733679ae03f63e # 1.0.7
+ SHA512 f172f9df95a028c9c3da29cd530dd4b55acad76ee7503000f96ba10c5d014abd219fcd145cea4b7ca7a902c38d968518b39de285d25f7e3ccc56d1ba3769d7b8
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/AudioFile.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/audiofile/vcpkg.json b/ports/audiofile/vcpkg.json
new file mode 100644
index 000000000..d77964203
--- /dev/null
+++ b/ports/audiofile/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "audiofile",
+ "version-string": "1.0.7",
+ "description": "A simple header-only C++ library for reading and writing audio files.",
+ "homepage": "https://github.com/adamstark/AudioFile",
+ "license": "GPL-3.0"
+}