aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/neoslippi
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/neoslippi')
-rw-r--r--vcpkg/ports/neoslippi/portfile.cmake21
-rw-r--r--vcpkg/ports/neoslippi/usage5
-rw-r--r--vcpkg/ports/neoslippi/vcpkg.json18
3 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/neoslippi/portfile.cmake b/vcpkg/ports/neoslippi/portfile.cmake
new file mode 100644
index 0000000..5f45c4c
--- /dev/null
+++ b/vcpkg/ports/neoslippi/portfile.cmake
@@ -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")
diff --git a/vcpkg/ports/neoslippi/usage b/vcpkg/ports/neoslippi/usage
new file mode 100644
index 0000000..0bf03e4
--- /dev/null
+++ b/vcpkg/ports/neoslippi/usage
@@ -0,0 +1,5 @@
+neoslippi provides CMake targets:
+
+ find_package(NeoSlippi CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE NeoSlippi::NeoSlippi)
+
diff --git a/vcpkg/ports/neoslippi/vcpkg.json b/vcpkg/ports/neoslippi/vcpkg.json
new file mode 100644
index 0000000..f23ee7a
--- /dev/null
+++ b/vcpkg/ports/neoslippi/vcpkg.json
@@ -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
+ }
+ ]
+}