aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libmidi2
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/libmidi2
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libmidi2')
-rw-r--r--vcpkg/ports/libmidi2/portfile.cmake21
-rw-r--r--vcpkg/ports/libmidi2/vcpkg.json17
2 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/libmidi2/portfile.cmake b/vcpkg/ports/libmidi2/portfile.cmake
new file mode 100644
index 0000000..c94bfe2
--- /dev/null
+++ b/vcpkg/ports/libmidi2/portfile.cmake
@@ -0,0 +1,21 @@
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO midi2-dev/AM_MIDI2.0Lib
+ REF "v${VERSION}"
+ SHA512 d7a30cad1071dcd5b07f9c1aec06f2f53424b076517d47760629766652e75ac46ab75324d4bd14a7601b92e5f0a213264e36c59517f2ba12dcf4d28ba7ebf8b2
+ HEAD_REF main
+)
+
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+
diff --git a/vcpkg/ports/libmidi2/vcpkg.json b/vcpkg/ports/libmidi2/vcpkg.json
new file mode 100644
index 0000000..749d8a8
--- /dev/null
+++ b/vcpkg/ports/libmidi2/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "libmidi2",
+ "version": "0.15",
+ "description": "General purpose Midi 2 library for bytestream conversions and midi-ci",
+ "homepage": "https://github.com/midi2-dev/AM_MIDI2.0Lib",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}