[neoslippi] Add neoslippi (#38412)

Co-authored-by: Kai Pastor <dg0yt@darc.de>
This commit is contained in:
Kered13
2025-10-07 22:25:50 -04:00
committed by GitHub
parent 8037a5d807
commit 1f3a249039
5 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
vcpkg_from_sourceforge(
OUT_SOURCE_PATH SOURCE_PATH
REPO neoslippi
FILENAME "NeoSlippi-${VERSION}.zip"
SHA512 a1fdd19c0de2e59d3de778be98216702a9c1de05a87b6d7126a6d1ef96c270624f4890ae8d6199498d91e89d2b8219381cb1bf15d29730a402d5152f05c7ea6c
NO_REMOVE_ONE_LEVEL
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DBUILD_TESTING=False
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/NeoSlippi)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(COPY "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

5
ports/neoslippi/usage Normal file
View File

@@ -0,0 +1,5 @@
neoslippi provides CMake targets:
find_package(NeoSlippi CONFIG REQUIRED)
target_link_libraries(main PRIVATE NeoSlippi::NeoSlippi)

View File

@@ -0,0 +1,18 @@
{
"name": "neoslippi",
"version": "1.0.3.18",
"description": "C++ Slippi replay file parser.",
"homepage": "https://sourceforge.net/projects/neoslippi/",
"license": "MIT",
"dependencies": [
"nlohmann-json",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@@ -6752,6 +6752,10 @@
"baseline": "2024-11-24",
"port-version": 0
},
"neoslippi": {
"baseline": "1.0.3.18",
"port-version": 0
},
"netcdf-c": {
"baseline": "4.9.3",
"port-version": 0

View File

@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "b0c3b8d511cc5835218f0fd6f5ebf63580ec0059",
"version": "1.0.3.18",
"port-version": 0
}
]
}