diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/wolf-midi | |
Diffstat (limited to 'vcpkg/ports/wolf-midi')
| -rw-r--r-- | vcpkg/ports/wolf-midi/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/wolf-midi/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/wolf-midi/vcpkg.json | 17 |
3 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/wolf-midi/portfile.cmake b/vcpkg/ports/wolf-midi/portfile.cmake new file mode 100644 index 0000000..adfdb7e --- /dev/null +++ b/vcpkg/ports/wolf-midi/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO wolfgitpr/wolf-midi
+ REF "${VERSION}"
+ SHA512 6359707d2631bd2e6e3f2e34b6ca1da3718a312c09968323b1598e83085beae8417d0c8d465ce50550af6843c9c5f060f799ef6d5a78a013a08cfbaa84506cff
+ HEAD_REF main
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" WOLF_MIDI_BUILD_STATIC)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DWOLF_MIDI_BUILD_STATIC=${WOLF_MIDI_BUILD_STATIC}
+ -DWOLF_MIDI_BUILD_TESTS=FALSE
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
diff --git a/vcpkg/ports/wolf-midi/usage b/vcpkg/ports/wolf-midi/usage new file mode 100644 index 0000000..d922854 --- /dev/null +++ b/vcpkg/ports/wolf-midi/usage @@ -0,0 +1,4 @@ +wolf-midi provides CMake targets:
+
+ find_package(wolf-midi CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE wolf-midi::wolf-midi)
diff --git a/vcpkg/ports/wolf-midi/vcpkg.json b/vcpkg/ports/wolf-midi/vcpkg.json new file mode 100644 index 0000000..cd4f0bb --- /dev/null +++ b/vcpkg/ports/wolf-midi/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "wolf-midi", + "version": "1.0.1", + "description": "A lightweight MIDI file read-write library.", + "homepage": "https://github.com/wolfgitpr/wolf-midi", + "license": "Apache-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |