aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbeach <jason.m.beach@gmail.com>2019-03-06 00:28:35 +0000
committerPhil Christensen <philc@microsoft.com>2019-03-05 16:28:35 -0800
commit6a5056773a938daa1195698839074a8b57bb0b80 (patch)
tree1fee76a9cd3a231747822ccf20fcf9393098ace5
parente8f643f11a7e8be219d4271a56606722968f0a56 (diff)
downloadvcpkg-6a5056773a938daa1195698839074a8b57bb0b80.tar.gz
vcpkg-6a5056773a938daa1195698839074a8b57bb0b80.zip
add MOOS V10 (#4742)
* add MOOS V10 * finished adding moos-core, moos-essential, and moos-ui
-rw-r--r--ports/moos-core/CONTROL4
-rw-r--r--ports/moos-core/cmake_fix.patch48
-rw-r--r--ports/moos-core/portfile.cmake60
-rw-r--r--ports/moos-essential/CONTROL4
-rw-r--r--ports/moos-essential/fix.patch23
-rw-r--r--ports/moos-essential/portfile.cmake47
-rw-r--r--ports/moos-ui/CONTROL6
-rw-r--r--ports/moos-ui/portfile.cmake55
8 files changed, 247 insertions, 0 deletions
diff --git a/ports/moos-core/CONTROL b/ports/moos-core/CONTROL
new file mode 100644
index 000000000..2aadbb9e4
--- /dev/null
+++ b/ports/moos-core/CONTROL
@@ -0,0 +1,4 @@
+Source: moos-core
+Version: 10.4.0
+Description: A very light weight, easy to use middleware. See the MOOS homepage at https://sites.google.com/site/moossoftware/ for more information and documentation.
+Build-Depends:
diff --git a/ports/moos-core/cmake_fix.patch b/ports/moos-core/cmake_fix.patch
new file mode 100644
index 000000000..96c569c2c
--- /dev/null
+++ b/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/ports/moos-core/portfile.cmake b/ports/moos-core/portfile.cmake
new file mode 100644
index 000000000..d6eab11f7
--- /dev/null
+++ b/ports/moos-core/portfile.cmake
@@ -0,0 +1,60 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO themoos/core-moos
+ REF v10.4.0
+ SHA512 8a82074bd219bbedbe56c2187afe74a55a252b0654a675c64d1f75e62353b0874e7b405d9f677fadb297e955d11aea50a07e8f5f3546be3c4ddab76fe356a51e
+ HEAD_REF master
+)
+
+vcpkg_apply_patches(
+ SOURCE_PATH ${SOURCE_PATH}
+ PATCHES ${CMAKE_CURRENT_LIST_DIR}/cmake_fix.patch
+)
+
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
+
+message(STATUS "MOOS VCPKG SOURCE_PATH ${SOURCE_PATH}")
+message(STATUS "MOOS INSTALL -DCMAKE_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}")
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_SHARED_LIBS=${BUILD_SHARED}
+ -DCMAKE_ENABLE_EXPORT=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/MOOS")
+
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/MOOS)
+if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/MOOSDB")
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/MOOSDB ${CURRENT_PACKAGES_DIR}/tools/MOOS/MOOSDB)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/atm ${CURRENT_PACKAGES_DIR}/tools/MOOS/atm)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/gtm ${CURRENT_PACKAGES_DIR}/tools/MOOS/gtm)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/ktm ${CURRENT_PACKAGES_DIR}/tools/MOOS/ktm)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/mqos ${CURRENT_PACKAGES_DIR}/tools/MOOS/mqos)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/mtm ${CURRENT_PACKAGES_DIR}/tools/MOOS/mtm)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/umm ${CURRENT_PACKAGES_DIR}/tools/MOOS/umm)
+endif()
+
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Put the licence file where vcpkg expects it
+file(COPY
+ ${SOURCE_PATH}/Core/GPLCore.txt
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(RENAME
+ ${CURRENT_PACKAGES_DIR}/share/${PORT}/GPLCore.txt
+ ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
+
+
diff --git a/ports/moos-essential/CONTROL b/ports/moos-essential/CONTROL
new file mode 100644
index 000000000..311b9d480
--- /dev/null
+++ b/ports/moos-essential/CONTROL
@@ -0,0 +1,4 @@
+Source: moos-essential
+Version: 10.0.1
+Description: a set of useful applications that leverage the core-moos communications layer See the MOOS homepage at https://sites.google.com/site/moossoftware/ for more information and documentation.
+Build-Depends: moos-core
diff --git a/ports/moos-essential/fix.patch b/ports/moos-essential/fix.patch
new file mode 100644
index 000000000..0020c6a71
--- /dev/null
+++ b/ports/moos-essential/fix.patch
@@ -0,0 +1,23 @@
+diff --git a/Essentials/pShare/CMakeLists.txt b/Essentials/pShare/CMakeLists.txt
+index 5128a50..7fee919 100644
+--- a/Essentials/pShare/CMakeLists.txt
++++ b/Essentials/pShare/CMakeLists.txt
+@@ -20,4 +20,4 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/pshare_test_scripts DESTINATION ${CMAKE_RU
+
+ add_custom_command(TARGET pShare POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy_directory
+- ${CMAKE_SOURCE_DIR}/pshare_test_scripts ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
++ ${CMAKE_SOURCE_DIR}/Essentials/pShare/pshare_test_scripts ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
+diff --git a/Essentials/pShare/Share.cpp b/Essentials/pShare/Share.cpp
+index 7825e00..756a760 100644
+--- a/Essentials/pShare/Share.cpp
++++ b/Essentials/pShare/Share.cpp
+@@ -17,7 +17,7 @@
+
+ #include "MOOS/libMOOS/Utils/MOOSUtilityFunctions.h"
+ #include "MOOS/libMOOS/Utils/IPV4Address.h"
+-#include "MOOS/libMOOS/Thirdparty/getpot/GetPot"
++#include "MOOS/libMOOS/Thirdparty/getpot/GetPot.hpp"
+ #include "MOOS/libMOOS/Utils/SafeList.h"
+ #include "MOOS/libMOOS/Utils/ConsoleColours.h"
+ #include "MOOS/libMOOS/Utils/KeyboardCapture.h"
diff --git a/ports/moos-essential/portfile.cmake b/ports/moos-essential/portfile.cmake
new file mode 100644
index 000000000..3f26a4e86
--- /dev/null
+++ b/ports/moos-essential/portfile.cmake
@@ -0,0 +1,47 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO themoos/essential-moos
+ REF b897ea86dba8b61412dc48ac0cfb5ff34cdaf5f6
+ SHA512 7284744d211dcdcb0cd321eec96f3632ccda690e8894261f4f09a06bc8faefb2de68f4f2f755f4eeef5bb586044e98ac65cdd18c15193a1a4632bd2f4208c52f
+ HEAD_REF master
+)
+
+message(STATUS "MOOS Essential Source Path: ${SOURCE_PATH}")
+message(STATUS "MOOS Essential CMAKE_CURRENT_LIST_DIR: ${CMAKE_CURRENT_LIST_DIR}")
+
+vcpkg_apply_patches(
+ SOURCE_PATH ${SOURCE_PATH}
+ PATCHES ${CMAKE_CURRENT_LIST_DIR}/fix.patch
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_SHARED_LIBS=${BUILD_SHARED}
+)
+
+vcpkg_install_cmake()
+
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/MOOS)
+if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/pAntler")
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pAntler ${CURRENT_PACKAGES_DIR}/tools/MOOS/pAntler)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pLogger ${CURRENT_PACKAGES_DIR}/tools/MOOS/pLoggers)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pMOOSBridge ${CURRENT_PACKAGES_DIR}/tools/MOOS/pMOOSBridge)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pScheduler ${CURRENT_PACKAGES_DIR}/tools/MOOS/pScheduler)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pShare ${CURRENT_PACKAGES_DIR}/tools/MOOS/pShare)
+endif()
+
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug)
+endif()
+
+file(WRITE ${CURRENT_PACKAGES_DIR}/include/fake_header.h "// fake header to pass vcpkg post install check \n")
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "see moos-core for copyright\n" )
+#
+#
diff --git a/ports/moos-ui/CONTROL b/ports/moos-ui/CONTROL
new file mode 100644
index 000000000..28ee5e664
--- /dev/null
+++ b/ports/moos-ui/CONTROL
@@ -0,0 +1,6 @@
+Source: moos-ui
+Version: 10.0.1
+Description: set of user interface tools to use and leverage the MOOS project. See the MOOS homepage at https://sites.google.com/site/moossoftware/ for more information and documentation.
+Build-Depends: moos-core
+
+
diff --git a/ports/moos-ui/portfile.cmake b/ports/moos-ui/portfile.cmake
new file mode 100644
index 000000000..5229c8855
--- /dev/null
+++ b/ports/moos-ui/portfile.cmake
@@ -0,0 +1,55 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO themoos/ui-moos
+ REF ba7dd1db7db1848acb3e68b9e54d3da9d7014684
+ SHA512 96225216973656a9029d4e8ac8a8b69df15db5c160bcbd02755cd291bfe5817dbde3a6a5f46b71a138ddf4a389c3c702d4d502ade91ad88554042d7b9d75f843
+ HEAD_REF master
+)
+
+#vcpkg_apply_patches(
+# SOURCE_PATH ${SOURCE_PATH}
+# PATCHES ${CMAKE_CURRENT_LIST_DIR}/fltk.patch
+#)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
+
+
+#if ("gui" IN_LIST FEATURES)
+# set(BUILD_GRAPHICAL_TOOLS ON )
+# message(STATUS "Building graphical tools")
+#else()
+# set(BUILD_GRAPHICAL_TOOLS OFF )
+# message(STATUS "Not building graphical tools")
+#endif()
+
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_SHARED_LIBS=${BUILD_SHARED}
+ -DBUILD_CONSOLE_TOOLS=ON
+ -DBUILD_GRAPHICAL_TOOLS=OFF #${BUILD_GRAPHICAL_TOOLS}
+)
+
+vcpkg_install_cmake()
+
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/MOOS)
+if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/uPoke")
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/uPoke ${CURRENT_PACKAGES_DIR}/tools/MOOS/uPoke)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/iRemoteLite ${CURRENT_PACKAGES_DIR}/tools/MOOS/iRemoteLite)
+endif()
+
+# file(RENAME ${CURRENT_PACKAGES_DIR}/bin/uMS ${CURRENT_PACKAGES_DIR}/tools/uMS)
+# file(RENAME ${CURRENT_PACKAGES_DIR}/bin/uPlayback ${CURRENT_PACKAGES_DIR}/tools/uPlayback)
+# file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pShare ${CURRENT_PACKAGES_DIR}/tools/pShare)
+#endif()
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug)
+endif()
+
+file(WRITE ${CURRENT_PACKAGES_DIR}/include/fake_header_ui.h "// fake header to pass vcpkg post install check \n")
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "see moos-core for copyright\n" )