aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/moos-core
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/moos-core
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/moos-core')
-rw-r--r--vcpkg/ports/moos-core/cmake_fix.patch48
-rw-r--r--vcpkg/ports/moos-core/include_functional.patch12
-rw-r--r--vcpkg/ports/moos-core/portfile.cmake28
-rw-r--r--vcpkg/ports/moos-core/vcpkg.json19
4 files changed, 107 insertions, 0 deletions
diff --git a/vcpkg/ports/moos-core/cmake_fix.patch b/vcpkg/ports/moos-core/cmake_fix.patch
new file mode 100644
index 0000000..96c569c
--- /dev/null
+++ b/vcpkg/ports/moos-core/cmake_fix.patch
@@ -0,0 +1,48 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 75f367f..6ef3dc2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -190,7 +190,7 @@ add_subdirectory(Core)
+ export(
+ TARGETS MOOS
+ NAMESPACE MOOS::
+- FILE UseMOOS.cmake
++ FILE UseMOOSTargets.cmake
+ )
+
+ # Support existing projects that expect to find MOOS_LIBRARIES and
+@@ -222,7 +222,7 @@ set(PROJECT_CONFIG_PATH "lib/cmake/MOOS")
+ install(
+ EXPORT MOOS
+ NAMESPACE MOOS::
+- FILE UseMOOS.cmake
++ FILE UseMOOSTargets.cmake
+ DESTINATION ${PROJECT_CONFIG_PATH}
+ )
+
+diff --git a/Core/libMOOS/CMakeLists.txt b/Core/libMOOS/CMakeLists.txt
+index b74a30f..492df50 100644
+--- a/Core/libMOOS/CMakeLists.txt
++++ b/Core/libMOOS/CMakeLists.txt
+@@ -196,7 +196,7 @@ mark_as_advanced(TIME_WARP_AGGLOMERATION_CONSTANT)
+ install(
+ DIRECTORY ${INCLUDE_ROOTS}
+ DESTINATION .
+- FILES_MATCHING PATTERN "*.h" PATTERN "*.hxx"
++ FILES_MATCHING PATTERN "*.h" PATTERN "*.hxx" PATTERN "*.hpp"
+ )
+
+ # install libraries
+diff --git a/MOOSConfig.cmake.in b/MOOSConfig.cmake.in
+index 10af599..dff769a 100644
+--- a/MOOSConfig.cmake.in
++++ b/MOOSConfig.cmake.in
+@@ -2,7 +2,7 @@
+
+ # Pick up the auto-generated file which knows how to add the imported library
+ # targets for the libraries that MOOS exports.
+-set(exports_file "${CMAKE_CURRENT_LIST_DIR}/UseMOOS.cmake")
++set(exports_file "${CMAKE_CURRENT_LIST_DIR}/UseMOOSTargets.cmake")
+ include(${exports_file})
+
+ include(FindPackageHandleStandardArgs)
diff --git a/vcpkg/ports/moos-core/include_functional.patch b/vcpkg/ports/moos-core/include_functional.patch
new file mode 100644
index 0000000..1245ca8
--- /dev/null
+++ b/vcpkg/ports/moos-core/include_functional.patch
@@ -0,0 +1,12 @@
+diff --git a/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp b/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp
+index 9d4473f..3f91018 100644
+--- a/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp
++++ b/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp
+@@ -47,6 +47,7 @@
+ #include <time.h>
+ #include <stdarg.h>
+ #include <math.h>
++#include <functional>
+
+ #ifndef _WIN32
+ #include <unistd.h>
diff --git a/vcpkg/ports/moos-core/portfile.cmake b/vcpkg/ports/moos-core/portfile.cmake
new file mode 100644
index 0000000..3bd8a62
--- /dev/null
+++ b/vcpkg/ports/moos-core/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO themoos/core-moos
+ REF "v${VERSION}"
+ SHA512 8a82074bd219bbedbe56c2187afe74a55a252b0654a675c64d1f75e62353b0874e7b405d9f677fadb297e955d11aea50a07e8f5f3546be3c4ddab76fe356a51e
+ HEAD_REF master
+ PATCHES
+ cmake_fix.patch
+ include_functional.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ DISABLE_PARALLEL_CONFIGURE
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/MOOS)
+
+# Stage tools
+file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools")
+file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Core/GPLCore.txt")
diff --git a/vcpkg/ports/moos-core/vcpkg.json b/vcpkg/ports/moos-core/vcpkg.json
new file mode 100644
index 0000000..2fc2564
--- /dev/null
+++ b/vcpkg/ports/moos-core/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "moos-core",
+ "version": "10.4.0",
+ "port-version": 10,
+ "description": "A very light weight, easy to use middleware.",
+ "homepage": "https://sites.google.com/site/moossoftware/",
+ "license": "GPL-2.0-or-later",
+ "supports": "!xbox & !uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}