Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibras authored Dec 30, 2022
2 parents 238a4af + 88b757e commit 14062bf
Show file tree
Hide file tree
Showing 52 changed files with 451 additions and 262 deletions.
1 change: 1 addition & 0 deletions ports/ace/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ elseif(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/ace/bin/MakeProjectCreator")
file(REMOVE "${CURRENT_PACKAGES_DIR}/share/ace/ace-devel.sh")
file(REMOVE "${CURRENT_PACKAGES_DIR}/share/tao/tao-devel.sh")
endif()

vcpkg_fixup_pkgconfig()
2 changes: 1 addition & 1 deletion ports/ace/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ace",
"version": "7.0.11",
"port-version": 1,
"port-version": 2,
"maintainers": "Johnny Willemsen <[email protected]>",
"description": "The ADAPTIVE Communication Environment",
"homepage": "https://github.com/DOCGroup/ACE_TAO",
Expand Down
101 changes: 63 additions & 38 deletions ports/boost-locale/fix-dependencies.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,69 @@ index f1321db..b0e9283 100644
feature.feature boost.locale.icu : on off : optional propagated ;
feature.feature boost.locale.posix : on off : optional propagated ;
feature.feature boost.locale.std : on off : optional propagated ;
@@ -133,13 +133,7 @@ if $(ICU_ICUUC_NAME)
}
else
{
- lib icuuc : : <runtime-link>shared <conditional>@path_options ;
- lib icuuc : : <toolset>msvc <variant>debug <name>icuucd <runtime-link>shared <conditional>@path_options ;
- lib icuuc : : <toolset>intel <target-os>windows <variant>debug <name>icuucd <runtime-link>shared <conditional>@path_options ;
- lib icuuc : : <name>sicuuc <runtime-link>static <conditional>@path_options ;
- lib icuuc : : <toolset>msvc <variant>debug <name>sicuucd <runtime-link>static <conditional>@path_options ;
- lib icuuc : : <toolset>intel <target-os>windows <variant>debug <name>sicuucd <runtime-link>static <conditional>@path_options ;
- lib icuuc : : <name>this_is_an_invalid_library_name ;
+ alias icuuc : /user-config//icuuc ;
}

if $(ICU_ICUDT_NAME)
@@ -149,13 +143,7 @@ if $(ICU_ICUDT_NAME)
}
else
{
- lib icudt : : <name>icudata <runtime-link>shared <conditional>@path_options ;
- lib icudt : : <name>icudt <toolset>msvc <runtime-link>shared <conditional>@path_options ;
- lib icudt : : <name>icudt <toolset>intel <target-os>windows <runtime-link>shared <conditional>@path_options ;
- lib icudt : : <name>sicudata <runtime-link>static <conditional>@path_options ;
- lib icudt : : <name>sicudt <toolset>msvc <runtime-link>static <conditional>@path_options ;
- lib icudt : : <name>sicudt <toolset>intel <target-os>windows <runtime-link>static <conditional>@path_options ;
- lib icudt : : <name>this_is_an_invalid_library_name ;
+ alias icudt : /user-config//icudt ;
}

if $(ICU_ICUIN_NAME)
@@ -165,27 +153,15 @@ if $(ICU_ICUIN_NAME)
}
else
{
- lib icuin : : <name>icui18n <runtime-link>shared <conditional>@path_options ;
- lib icuin : : <toolset>msvc <variant>debug <name>icuind <runtime-link>shared <conditional>@path_options ;
- lib icuin : : <toolset>msvc <name>icuin <runtime-link>shared <conditional>@path_options ;
- lib icuin : : <toolset>intel <target-os>windows <variant>debug <name>icuind <runtime-link>shared <conditional>@path_options ;
- lib icuin : : <toolset>intel <target-os>windows <name>icuin <runtime-link>shared <conditional>@path_options ;
- lib icuin : : <name>sicui18n <runtime-link>static <conditional>@path_options ;
- lib icuin : : <toolset>msvc <variant>debug <name>sicuind <runtime-link>static <conditional>@path_options ;
- lib icuin : : <toolset>msvc <name>sicuin <runtime-link>static <conditional>@path_options ;
- lib icuin : : <toolset>intel <target-os>windows <variant>debug <name>sicuind <runtime-link>static <conditional>@path_options ;
- lib icuin : : <toolset>intel <target-os>windows <name>sicuin <runtime-link>static <conditional>@path_options ;
- lib icuin : : <name>this_is_an_invalid_library_name ;
+ alias icuin : /user-config//icuin ;
}
+explicit icuuc icuin icudt ;

ICU_OPTS =
<include>$(.icu-path)/include
- <runtime-link>shared:<library>icuuc/<link>shared
- <runtime-link>shared:<library>icudt/<link>shared
- <runtime-link>shared:<library>icuin/<link>shared
- <runtime-link>static:<library>icuuc
- <runtime-link>static:<library>icudt
- <runtime-link>static:<library>icuin
+ <library>icuuc
+ <library>icudt
+ <library>icuin
<target-os>windows,<toolset>clang:<linkflags>"advapi32.lib"
<runtime-link>static:<define>U_STATIC_IMPLEMENTATION=1
;
@@ -204,6 +204,11 @@ rule configure-full ( properties * : flags-only )

local found-iconv ;
Expand All @@ -22,41 +85,3 @@ index f1321db..b0e9283 100644
# The system Iconv on Solaris may have bugs, while the GNU Iconv is fine.
# So enable by default only if not on Solaris.
if <boost.locale.iconv>on in $(properties)
@@ -384,23 +389,6 @@ rule configure-flags ( properties * )

alias build_flags : : : : <conditional>@configure-flags ;

-local cxx_requirements = [ requires
- cxx11_auto_declarations
- cxx11_decltype
- cxx11_defaulted_functions
- cxx11_defaulted_moves
- cxx11_hdr_functional
- cxx11_hdr_type_traits
- cxx11_noexcept
- cxx11_nullptr
- cxx11_override
- cxx11_range_based_for
- cxx11_rvalue_references
- cxx11_scoped_enums
- cxx11_smart_ptr
- cxx11_static_assert
- ] ;
-
boost-lib locale
:
encoding/codepage.cpp
@@ -417,7 +405,6 @@ boost-lib locale
util/info.cpp
util/locale_data.cpp
:
- $(cxx_requirements)
# Don't link explicitly, not required
<define>BOOST_THREAD_NO_LIB=1
<include>$(TOP)/src
@@ -426,5 +413,4 @@ boost-lib locale
<target-os>windows:<define>_SCL_SECURE_NO_WARNINGS
# Meanwhile remove this
<conditional>@configure
- : : $(cxx_requirements)
;
1 change: 1 addition & 0 deletions ports/boost-locale/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$comment": "When changing this file also update and run scripts/boost/generate-ports.ps1",
"name": "boost-locale",
"version": "1.81.0",
"port-version": 1,
"description": "Boost locale module",
"homepage": "https://github.com/boostorg/locale",
"license": "BSL-1.0",
Expand Down
6 changes: 4 additions & 2 deletions ports/celero/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DigitalInBlue/Celero
REF v2.8.3
SHA512 f6774f6076bae5d37d4f5bd12153bc99b97893f43fe9253fe805b5b0c2475ffe878e32f3fc7391544ea24020e59d5ae48e44e5b3a302f7280ad15b6a6820f70b
REF "v${VERSION}"
SHA512 7f2c22cd030ce59641636aa162b422694f79860c8a76d2227c706af9959d2c5269ae861c123e656ed3ae91835eb7e2b22501bca20fcd6ad0223ae95f312e73aa
HEAD_REF master
PATCHES
fix-bin-install-path.patch
Expand Down
4 changes: 2 additions & 2 deletions ports/celero/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "celero",
"version": "2.8.3",
"description": "Celero is a modern cross-platform (Windows, Linux, MacOS) Microbenchmarking library for C++.",
"version": "2.8.5",
"description": "Celero is a modern cross-platform (Windows, Linux, MacOS) Microbenchmarking library for C++ 11 and later.",
"homepage": "https://github.com/DigitalInBlue/Celero",
"license": "Apache-2.0",
"dependencies": [
Expand Down
21 changes: 0 additions & 21 deletions ports/freeglut/macOS_Xquartz.patch

This file was deleted.

20 changes: 14 additions & 6 deletions ports/freeglut/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO FreeGLUTProject/freeglut
REF v3.2.2
SHA512 caaed8af95c2d0ecbc785229e26433978a0f606ae2b9f0b3cd794bb5bb70a1cc54d21f941a1a03e20c7e0fa3eba9d54a21d6e23e44f243899c0fdf146066cf29
REF "v${VERSION}"
SHA512 4bb6d6c086bac7a9c0ec78062dce58987555785abe6375f462ee249f65210a964a28fb10ba7ee8a42d7fafb00eb8d196eb403d65d255f02f88467369c187228b
HEAD_REF master
PATCHES
x11-dependencies-export.patch
macOS_Xquartz.patch
fix-debug-macro.patch
no_x64_enforcement.patch
windows-static-output-name.patch
windows-output-name.patch
)

if(NOT VCPKG_TARGET_IS_WINDOWS)
Expand All @@ -24,15 +25,22 @@ vcpkg_cmake_configure(
OPTIONS
-DFREEGLUT_BUILD_STATIC_LIBS=${FREEGLUT_STATIC}
-DFREEGLUT_BUILD_SHARED_LIBS=${FREEGLUT_DYNAMIC}
-DFREEGLUT_REPLACE_GLUT=ON
-DFREEGLUT_BUILD_DEMOS=OFF
-DINSTALL_PDB=OFF # Installing pdbs failed on debug static. So, disable it and let vcpkg_copy_pdbs() do it
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FreeGLUT)
vcpkg_fixup_pkgconfig()
file(COPY_FILE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/glut.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/freeglut.pc")
if(NOT VCPKG_BUILD_TYPE)
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/glut.pc" " -lfreeglut" " -lfreeglutd")
endif()
file(COPY_FILE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/glut.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/freeglut.pc")
endif()

# Rename static lib (otherwise it's incompatible with FindGLUT.cmake)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string(
"${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h"
Expand All @@ -42,7 +50,7 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
endif()

# Clean
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/glut")

Expand Down
7 changes: 6 additions & 1 deletion ports/freeglut/usage
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
The package freeglut is compatible with built-in CMake targets:
freeglut provides CMake targets:

find_package(FreeGLUT CONFIG REQUIRED)
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:FreeGLUT::freeglut>,FreeGLUT::freeglut,FreeGLUT::freeglut_static>)

freeglut is compatible with built-in CMake targets:

find_package(GLUT REQUIRED)
target_link_libraries(main PRIVATE GLUT::GLUT)
6 changes: 5 additions & 1 deletion ports/freeglut/vcpkg-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ if(GLUT_FOUND AND UNIX AND NOT ANDROID)
# Before CMake 3.14, FindX11.cmake doesn't create imported targets.
# For X11, we simply assume shared linkage of system libs,
# so order and transitive usage requirements don't matter.
if(X11_FOUND AND NOT "X11" IN_LIST GLUT_LIBRARIES)
list(APPEND GLUT_LIBRARIES "${X11_X11_LIB}")
set_property(TARGET GLUT::GLUT APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${X11_X11_LIB}")
endif()
if(X11_Xrandr_FOUND AND NOT "Xrandr" IN_LIST GLUT_LIBRARIES)
list(APPEND GLUT_LIBRARIES "${X11_Xrandr_LIB}")
set_property(TARGET GLUT::GLUT APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${X11_Xrandr_LIB}")
endif()
# X11_xf86vmode_FOUND for CMake < 3.14
if((X11_xf86vm_FOUND OR X11_xf86vmode_FOUND) AND NOT "Xxf86vm" IN_LIST GLUT_LIBRARIES)
if((X11_Xxf86vm_FOUND OR X11_xf86vmode_FOUND) AND NOT "Xxf86vm" IN_LIST GLUT_LIBRARIES)
list(APPEND GLUT_LIBRARIES "${X11_Xxf86vm_LIB}")
set_property(TARGET GLUT::GLUT APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${X11_Xxf86vm_LIB}")
endif()
Expand Down
5 changes: 3 additions & 2 deletions ports/freeglut/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "freeglut",
"version": "3.2.2",
"description": "Open source implementation of GLUT with source and binary backwards compatibility.",
"version": "3.4.0",
"description": "A free OpenGL utility toolkit, the open-sourced alternative to the GLUT library.",
"homepage": "https://sourceforge.net/projects/freeglut/",
"license": null,
"dependencies": [
"opengl",
{
"name": "vcpkg-cmake",
"host": true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aec0a27..73ccbdb 100644
index 98d07c9..5b79f06 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -429,7 +429,7 @@ IF(WIN32)
@@ -436,12 +436,12 @@ IF(WIN32)
LIST(APPEND LIBS winmm gdi32)
IF(FREEGLUT_BUILD_SHARED_LIBS)
TARGET_COMPILE_DEFINITIONS(freeglut PRIVATE FREEGLUT_EXPORTS)
- SET_TARGET_PROPERTIES(freeglut PROPERTIES OUTPUT_NAME ${LIBNAME})
+ SET_TARGET_PROPERTIES(freeglut PROPERTIES OUTPUT_NAME freeglut)
ENDIF()
IF(FREEGLUT_BUILD_STATIC_LIBS)
TARGET_COMPILE_DEFINITIONS(freeglut_static PUBLIC FREEGLUT_STATIC)
- IF(FREEGLUT_REPLACE_GLUT)
+ IF(1)
SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME ${LIBNAME})
IF(FREEGLUT_REPLACE_GLUT)
- SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME ${LIBNAME})
+ SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME freeglut)
ENDIF()
ENDIF()
ELSE()
diff --git a/include/GL/freeglut_std.h b/include/GL/freeglut_std.h
index a5efb3b..6bdcdfb 100644
--- a/include/GL/freeglut_std.h
Expand Down
71 changes: 14 additions & 57 deletions ports/freeglut/x11-dependencies-export.patch
Original file line number Diff line number Diff line change
@@ -1,63 +1,20 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f403af..4ced28a 100644
index 5568b63..bec3de5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,7 +72,7 @@ SET(FREEGLUT_HEADERS
include/GL/freeglut_ext.h
include/GL/freeglut_std.h
)
-IF(FREEGLUT_REPLACE_GLUT)
+IF(TRUE)
LIST(APPEND FREEGLUT_HEADERS
include/GL/glut.h
)
@@ -319,23 +319,27 @@ IF(CMAKE_COMPILER_IS_GNUCC)
ENDIF()
ENDIF(CMAKE_COMPILER_IS_GNUCC)

+SET(xlibs_private "")
INCLUDE(CheckIncludeFiles)
IF(UNIX AND NOT(ANDROID OR BLACKBERRY OR FREEGLUT_WAYLAND))
FIND_PACKAGE(X11 REQUIRED)
- INCLUDE_DIRECTORIES(${X11_X11_INCLUDE_PATH})
- LIST(APPEND LIBS ${X11_X11_LIB})
+ LIST(APPEND LIBS X11::X11)
+ set(xlibs_private "-lX11")
IF(X11_Xrandr_FOUND)
SET(HAVE_X11_EXTENSIONS_XRANDR_H TRUE)
- LIST(APPEND LIBS ${X11_Xrandr_LIB})
+ LIST(APPEND LIBS X11::Xrandr)
+ STRING(APPEND xlibs_private " -lXrandr")
ENDIF()
- IF(X11_xf86vmode_FOUND)
+ IF(X11_Xxf86vm_FOUND)
SET(HAVE_X11_EXTENSIONS_XF86VMODE_H TRUE)
- LIST(APPEND LIBS ${X11_Xxf86vm_LIB})
+ LIST(APPEND LIBS X11::Xxf86vm)
+ STRING(APPEND xlibs_private " -lXxf86vm")
ENDIF()
IF(X11_Xinput_FOUND)
# Needed for multi-touch:
CHECK_INCLUDE_FILES("${X11_Xinput_INCLUDE_PATH}/X11/extensions/XInput2.h" HAVE_X11_EXTENSIONS_XINPUT2_H)
- LIST(APPEND LIBS ${X11_Xinput_LIB})
+ LIST(APPEND LIBS X11::Xi)
+ STRING(APPEND xlibs_private " -lXi")
ELSE()
MESSAGE(FATAL_ERROR "Missing X11's XInput.h (X11/extensions/XInput.h)")
ENDIF()
@@ -586,13 +590,13 @@ ELSEIF(FREEGLUT_GLES)
ELSEIF(FREEGLUT_WAYLAND)
SET(PC_LIBS_PRIVATE "-lwayland-client -lwayland-cursor -lwayland-egl -lGLESv2 -lGLESv1_CM -lEGL -lxkbcommon -lm")
ELSE()
- SET(PC_LIBS_PRIVATE "-lX11 -lXxf86vm -lXrandr -lGLESv2 -lGLESv1_CM -lEGL -lm")
+ SET(PC_LIBS_PRIVATE "${xlibs_private} -lGLESv2 -lGLESv1_CM -lEGL -lm")
ENDIF()
ELSE()
IF(FREEGLUT_WAYLAND)
SET(PC_LIBS_PRIVATE "-lwayland-client -lwayland-cursor -lwayland-egl -lGL -lxkbcommon -lm")
ELSE()
- SET(PC_LIBS_PRIVATE "-lX11 -lXxf86vm -lXrandr -lGL -lm")
+ SET(PC_LIBS_PRIVATE "${xlibs_private} -lGL -lm")
@@ -620,6 +620,15 @@ ELSE()
SET(PC_LIBS_PRIVATE "-lX11 -lXxf86vm -lXrandr -lGL -lm")
ENDIF()
ENDIF()
+if(NOT X11_Xrandr_FOUND)
+ string(REPLACE " -lXrandr" "" PC_LIBS_PRIVATE "${PC_LIBS_PRIVATE}")
+endif()
+if(NOT X11_xf86vmode_FOUND)
+ string(REPLACE " -lXxf86vm" "" PC_LIBS_PRIVATE "${PC_LIBS_PRIVATE}")
+endif()
+if(X11_Xinput_FOUND)
+ string(REPLACE "-lX11 " "-lX11 -lXi " PC_LIBS_PRIVATE "${PC_LIBS_PRIVATE}")
+endif()
# Client applications need to define FreeGLUT GLES version to
# bootstrap headers inclusion in freeglut_std.h:
SET(PC_LIBNAME ${LIBNAME})
12 changes: 12 additions & 0 deletions ports/gamenetworkingsockets/fix-depend-protobuf.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/cmake/GameNetworkingSocketsConfig.cmake.in b/cmake/GameNetworkingSocketsConfig.cmake.in
index 1a27988..5076a6e 100644
--- a/cmake/GameNetworkingSocketsConfig.cmake.in
+++ b/cmake/GameNetworkingSocketsConfig.cmake.in
@@ -3,6 +3,7 @@
include(CMakeFindDependencyMacro)

find_dependency(Threads)
+find_dependency(Protobuf)

if(@USE_CRYPTO@ STREQUAL "OpenSSL")
find_dependency(OpenSSL)
Loading

0 comments on commit 14062bf

Please sign in to comment.