aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Pospelov <pospelovlm@yandex.ru>2021-07-23 08:15:49 +0300
committerGitHub <noreply@github.com>2021-07-22 22:15:49 -0700
commit05177765880ad317c9589dc87717ac8755fefaa2 (patch)
tree8e82f2a6a17067f05e7848623fc21c950cda5616
parent549d7cd66492d65f5947127b3e0911206006ead7 (diff)
downloadvcpkg-05177765880ad317c9589dc87717ac8755fefaa2.tar.gz
vcpkg-05177765880ad317c9589dc87717ac8755fefaa2.zip
[SLikeNet] Update and fix building with x64-mingw-static (#18358)
* SLikeNet now builds under MinGW Use vcpkg.json instead of CONTROL Fix Run x-add-version Fix deprecation warning Update ports/slikenet/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/slikenet/vcpkg.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Run vcpkg x-add-version Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: Billy Robert ONeal III <bion@microsoft.com>
-rw-r--r--ports/slikenet/CONTROL6
-rw-r--r--ports/slikenet/portfile.cmake13
-rw-r--r--ports/slikenet/vcpkg.json10
-rw-r--r--versions/baseline.json2
-rw-r--r--versions/s-/slikenet.json5
5 files changed, 20 insertions, 16 deletions
diff --git a/ports/slikenet/CONTROL b/ports/slikenet/CONTROL
deleted file mode 100644
index 5753ce9aa..000000000
--- a/ports/slikenet/CONTROL
+++ /dev/null
@@ -1,6 +0,0 @@
-Source: slikenet
-Version: 2019-10-22-2
-Homepage: https://github.com/SLikeSoft/SLikeNet
-Description: SLikeNetT is an Open Source/Free Software cross-platform network engine written in C++ and specifially designed for games (and applications which have comparable requirements on a network engine like games) building upon the discontinued RakNet network engine which had more than 13 years of active development.
-Build-Depends: openssl
-Supports: !uwp
diff --git a/ports/slikenet/portfile.cmake b/ports/slikenet/portfile.cmake
index c321f653c..ba5ef493f 100644
--- a/ports/slikenet/portfile.cmake
+++ b/ports/slikenet/portfile.cmake
@@ -3,8 +3,8 @@ vcpkg_fail_port_install(ON_TARGET "UWP")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SLikeSoft/SLikeNet
- REF cca394f05e9e9e3e315a85539e648f267d3f2fcc
- SHA512 410954bda5a7be309eb71c3078f8ea67ff21aae2ce923f01db77b09265969f1350afb45b90194118bfad274f0a36a2d3bbc38d86a15507fdfc4bc8edc4a0204c
+ REF 358462052fce7e585fc1cce0a17a7042ba724c08
+ SHA512 2c932b0a7910ec36dd6a340dd841cefcf259fbdadadff220747d13752181ea14e3c5f05331beb36dea21c0de360edc270ff4c55375bbea23ee2149828f07e9ab
HEAD_REF master
PATCHES
fix-install.patch
@@ -12,13 +12,8 @@ vcpkg_from_github(
#Uses an outdated OpenSSL version and is in an experimental namespace any way. As such we delete it here
file(REMOVE_RECURSE "${SOURCE_PATH}/Source/src/crypto" "${SOURCE_PATH}/Source/include/slikenet/crypto")
-if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
- set(SLIKENET_ENABLE_STATIC TRUE)
- set(SLIKENET_ENABLE_DLL FALSE)
-else()
- set(SLIKENET_ENABLE_STATIC FALSE)
- set(SLIKENET_ENABLE_DLL TRUE)
-endif()
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SLIKENET_ENABLE_STATIC)
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SLIKENET_ENABLE_DLL)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
diff --git a/ports/slikenet/vcpkg.json b/ports/slikenet/vcpkg.json
new file mode 100644
index 000000000..158a28c48
--- /dev/null
+++ b/ports/slikenet/vcpkg.json
@@ -0,0 +1,10 @@
+{
+ "name": "slikenet",
+ "version-date": "2021-06-07",
+ "description": "SLikeNetT is an Open Source/Free Software cross-platform network engine written in C++ and specifially designed for games (and applications which have comparable requirements on a network engine like games) building upon the discontinued RakNet network engine which had more than 13 years of active development.",
+ "homepage": "https://github.com/SLikeSoft/SLikeNet",
+ "supports": "!uwp",
+ "dependencies": [
+ "openssl"
+ ]
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index c8f0e4c45..6bddefd81 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5857,7 +5857,7 @@
"port-version": 0
},
"slikenet": {
- "baseline": "2019-10-22-2",
+ "baseline": "2021-06-07",
"port-version": 0
},
"sltbench": {
diff --git a/versions/s-/slikenet.json b/versions/s-/slikenet.json
index 5bb738ff0..ee83f0113 100644
--- a/versions/s-/slikenet.json
+++ b/versions/s-/slikenet.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "ac7b0f3e2e112489c1d66b390c22e050bd410783",
+ "version-date": "2021-06-07",
+ "port-version": 0
+ },
+ {
"git-tree": "fd99081ecbebc7fe7639cc9a61899ff6fb977d04",
"version-string": "2019-10-22-2",
"port-version": 0