From 91aea74ea4178c6af1be8a8f1b48cefcfd4ae847 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 19 Nov 2024 16:27:28 -0600 Subject: [PATCH] freecad@0.21.2_py310: checkin patch for opengl-glu --- Formula/freecad@0.21.2_py310.rb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Formula/freecad@0.21.2_py310.rb b/Formula/freecad@0.21.2_py310.rb index ea213ec4..f1bc64de 100644 --- a/Formula/freecad@0.21.2_py310.rb +++ b/Formula/freecad@0.21.2_py310.rb @@ -43,6 +43,11 @@ class FreecadAT0212Py310 < Formula url "https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/b510bf8a0feba8b3d75e121a2fe32fa697a6fef5/patches/freecad%400.21.2_py310-boost-dep-errors.patch" sha256 "535316c559a1fb1bd6fab0287c12fcc6ccd6c5b065bbe339207c2bb98fa600b6" end + + patch do + url "https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/8c794052eb381c69da39af94dabafcc72549e70f/patches/freecad%400.21.2_py310-fix-opengl-glu.patch" + sha256 "a787e132b0421e1f33532d4a3278a94a5488e73f7dd204ae913e0dc5e240b37a" + end end bottle do @@ -69,6 +74,11 @@ class FreecadAT0212Py310 < Formula url "https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/6ed12911b87a1d89727c172131bed35be22c4137/patches/freecad%400.21.2_py310-HEAD-toposhape.h-fix.patch" sha256 "47f78a3838790b8fe7c41801cbecbc3f85cdc81ace48476dc79b319d5097e195" end + + patch do + url "https://raw.githubusercontent.com/FreeCAD/homebrew-freecad/8c794052eb381c69da39af94dabafcc72549e70f/patches/freecad%400.21.2_py310-fix-opengl-glu.patch" + sha256 "a787e132b0421e1f33532d4a3278a94a5488e73f7dd204ae913e0dc5e240b37a" + end end keg_only :versioned_formula @@ -265,11 +275,6 @@ def install clang_cxx = Formula["llvm"].opt_bin/"clang++" clang_ld = Formula["llvm"].opt_bin/"lld" clang_ar = Formula["llvm"].opt_bin/"llvm-ar" - openglu_inc_dir = Formula["mesa"].opt_include - - puts "----------------------------------------------------" - puts openglu_inc_dir - puts "----------------------------------------------------" args_linux_only = %W[ -GNinja @@ -279,7 +284,6 @@ def install -DCMAKE_CXX_COMPILER=#{clang_cxx} -DCMAKE_LINKER=#{clang_ld} -DCMAKE_AR=#{clang_ar} - -DOPENGL_GLU_INCLUDE_DIR=#{openglu_inc_dir} ] end