diff options
| author | autoantwort <41973254+autoantwort@users.noreply.github.com> | 2021-03-25 21:06:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-25 13:06:28 -0700 |
| commit | c2e1d32c25c77a258e103e00d778f6d935b44e73 (patch) | |
| tree | 10ede4cc76ea132decb61379b77904beb09e741a | |
| parent | dc8f5b6d9995b11cd86d029f2a445ab85fa4add4 (diff) | |
| download | vcpkg-c2e1d32c25c77a258e103e00d778f6d935b44e73.tar.gz vcpkg-c2e1d32c25c77a258e103e00d778f6d935b44e73.zip | |
[libmt32emu] new port (#16816)
* [libmt32emu] add new port
* add version files
* Update ports/libmt32emu/portfile.cmake
* Update versions/l-/libmt32emu.json
* Update versions/l-/libmt32emu.json
remove unnecessary entry
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
| -rw-r--r-- | ports/libmt32emu/portfile.cmake | 26 | ||||
| -rw-r--r-- | ports/libmt32emu/vcpkg.json | 6 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/l-/libmt32emu.json | 9 |
4 files changed, 45 insertions, 0 deletions
diff --git a/ports/libmt32emu/portfile.cmake b/ports/libmt32emu/portfile.cmake new file mode 100644 index 000000000..2d68caa6b --- /dev/null +++ b/ports/libmt32emu/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO munt/munt
+ REF libmt32emu_2_4_2
+ SHA512 6e567260bce4a7ba7f4696d08fde78a05402d8b3087d7720bf86cdbe8c6c392036ce4a5c0ec5951c547d2a98218145fa155d4730404e98ad2dcc573d3cca8da4
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}/mt32emu
+ PREFER_NINJA
+ OPTIONS
+ -Dlibmt32emu_SHARED:BOOL=${BUILD_SHARED}
+)
+
+vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
+
+
+file(INSTALL ${SOURCE_PATH}/mt32emu/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/libmt32emu/vcpkg.json b/ports/libmt32emu/vcpkg.json new file mode 100644 index 000000000..700ee799a --- /dev/null +++ b/ports/libmt32emu/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "libmt32emu", + "version": "2.4.2", + "description": "A MT-32 emulator", + "homepage": "https://github.com/munt/munt/tree/master/mt32emu" +} diff --git a/versions/baseline.json b/versions/baseline.json index 16eb577b3..4411252b3 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3240,6 +3240,10 @@ "baseline": "0.10.1-3", "port-version": 0 }, + "libmt32emu": { + "baseline": "2.4.2", + "port-version": 0 + }, "libmupdf": { "baseline": "1.18.0", "port-version": 0 diff --git a/versions/l-/libmt32emu.json b/versions/l-/libmt32emu.json new file mode 100644 index 000000000..5dd15ab5e --- /dev/null +++ b/versions/l-/libmt32emu.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "b60fd8501e86b53f2d3125d0f0a1a793ff5f9a60", + "version": "2.4.2", + "port-version": 0 + } + ] +} |
