aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvin <52727318+AlvinZhangH@users.noreply.github.com>2019-09-25 01:56:46 +0800
committerPhil Christensen <philc@microsoft.com>2019-09-24 10:56:46 -0700
commitde53bb866827d92ad76a309255447c1fc746fd50 (patch)
tree361f35a4be1157de16478fdd1096de48aa8b78f6
parent16fc29b2ba4d643cb2e28d98f3135b0f4b17d773 (diff)
downloadvcpkg-de53bb866827d92ad76a309255447c1fc746fd50.tar.gz
vcpkg-de53bb866827d92ad76a309255447c1fc746fd50.zip
[minimp3] Add new port (#8319)
* [minimp3]Add new port.
-rw-r--r--ports/minimp3/CONTROL4
-rw-r--r--ports/minimp3/portfile.cmake15
2 files changed, 19 insertions, 0 deletions
diff --git a/ports/minimp3/CONTROL b/ports/minimp3/CONTROL
new file mode 100644
index 000000000..5ff1ab6b2
--- /dev/null
+++ b/ports/minimp3/CONTROL
@@ -0,0 +1,4 @@
+Source: minimp3
+Version: 2019-07-24
+Homepage: https://github.com/lieff/minimp3
+Description: Minimalistic, single-header library for decoding MP3. minimp3 is designed to be small, fast (with SSE and NEON support), and accurate (ISO conformant). \ No newline at end of file
diff --git a/ports/minimp3/portfile.cmake b/ports/minimp3/portfile.cmake
new file mode 100644
index 000000000..8c31f22d4
--- /dev/null
+++ b/ports/minimp3/portfile.cmake
@@ -0,0 +1,15 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lieff/minimp3
+ REF 977514a6dfc4960d819a103f43b358e58ac6c28f #committed on Jul 24
+ SHA512 9120cbd84a737e93d0c8d6d53a1b9b7af1fb4387b7b0756abbf9e0f41164a26a731e1e75ff6d02052c785357cdf8465ee92f04b6e9704f830086c3cf6808d2b8
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/minimp3.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
+file(COPY ${SOURCE_PATH}/minimp3_ex.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) \ No newline at end of file