From 1ec302de281083f093443086fcf7eb3793c7e620 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Mon, 7 Oct 2024 14:22:47 +0300 Subject: [PATCH 1/4] freeglut: explicitly list xorg components to avoid overlinking --- recipes/freeglut/all/conanfile.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes/freeglut/all/conanfile.py b/recipes/freeglut/all/conanfile.py index dc8ac66bf9e42..de6494ff183f9 100644 --- a/recipes/freeglut/all/conanfile.py +++ b/recipes/freeglut/all/conanfile.py @@ -203,7 +203,13 @@ def package_info(self): else: self.cpp_info.components["freeglut_"].requires.append("opengl::opengl") if self._with_x11: - self.cpp_info.components["freeglut_"].requires.append("xorg::xorg") + # https://github.com/freeglut/freeglut/blob/v3.4.0/CMakeLists.txt#L261-L278 + self.cpp_info.components["freeglut_"].requires.extend([ + "xorg::x11", + "xorg::xrandr", + "xorg::xxf86vm", + "xorg::xinput", + ]) if self.options.get_safe("with_wayland"): self.cpp_info.components["freeglut_"].requires.extend(["wayland::wayland-client", "wayland::wayland-cursor", "wayland::wayland-egl", "xkbcommon::xkbcommon"]) if is_apple_os(self) or self.settings.os == "Windows": From a8a447a323a7eb53d0894544c7ed09e96745baa6 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Mon, 7 Oct 2024 14:26:32 +0300 Subject: [PATCH 2/4] freeglut: set CMP0077 since CMake policy version is 3.1 in the project --- recipes/freeglut/all/conanfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/freeglut/all/conanfile.py b/recipes/freeglut/all/conanfile.py index de6494ff183f9..30a6d034bc07a 100644 --- a/recipes/freeglut/all/conanfile.py +++ b/recipes/freeglut/all/conanfile.py @@ -142,6 +142,7 @@ def generate(self): tc.variables["INSTALL_PDB"] = False tc.variables["FREEGLUT_REPLACE_GLUT"] = self.options.replace_glut tc.preprocessor_definitions["FREEGLUT_LIB_PRAGMAS"] = "0" + tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0077"] = "NEW" tc.generate() cmake_deps = CMakeDeps(self) cmake_deps.generate() From 3b278777b72480b8fb7d37e1c596988ba67c03a3 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Mon, 7 Oct 2024 14:28:30 +0300 Subject: [PATCH 3/4] freeglut: add v3.6.0 --- recipes/freeglut/all/conandata.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/freeglut/all/conandata.yml b/recipes/freeglut/all/conandata.yml index 964de8ca2d213..44ca346f193eb 100644 --- a/recipes/freeglut/all/conandata.yml +++ b/recipes/freeglut/all/conandata.yml @@ -1,4 +1,7 @@ sources: + "3.6.0": + url: "https://github.com/FreeGLUTProject/freeglut/archive/v3.6.0.tar.gz" + sha256: "16de4f51dc1efd663a1a58ba5552e54f8783b77478289c95dca474a4d39ddd02" "3.4.0": url: "https://github.com/FreeGLUTProject/freeglut/archive/v3.4.0.tar.gz" sha256: "3c0bcb915d9b180a97edaebd011b7a1de54583a838644dcd42bb0ea0c6f3eaec" From a2a89f259aca92b35b0065ce0f710ee9ee2f61a1 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Mon, 7 Oct 2024 16:07:41 +0300 Subject: [PATCH 4/4] freeglut: update config.yml --- recipes/freeglut/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/freeglut/config.yml b/recipes/freeglut/config.yml index dc897e491fcb6..e41ce2c1d0b1f 100644 --- a/recipes/freeglut/config.yml +++ b/recipes/freeglut/config.yml @@ -1,4 +1,6 @@ versions: + "3.6.0": + folder: all "3.4.0": folder: all "3.2.2":