From 931a6ee1ff15c02796a9ec5f9832b9c107af6804 Mon Sep 17 00:00:00 2001 From: chris Date: Sun, 22 Dec 2024 18:01:18 -0600 Subject: [PATCH 1/3] freecad@1.0.0_py312: add llvm to the cmake_prefix_path when building on gnu+linux --- Formula/freecad@1.0.0_py312.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/freecad@1.0.0_py312.rb b/Formula/freecad@1.0.0_py312.rb index 4da9434..8c06dc2 100644 --- a/Formula/freecad@1.0.0_py312.rb +++ b/Formula/freecad@1.0.0_py312.rb @@ -216,6 +216,7 @@ def install cmake_prefix_paths << Formula["mesa"].prefix cmake_prefix_paths << Formula["libx11"].prefix cmake_prefix_paths << Formula["libxcb"].prefix + cmake_prefix_paths << Formula["llvm"].prefix end cmake_prefix_path_string = cmake_prefix_paths.join(";") From 671c0752aeff205641184d3217c8b4225d511f89 Mon Sep 17 00:00:00 2001 From: chris Date: Sun, 22 Dec 2024 21:21:55 -0600 Subject: [PATCH 2/3] freecad@1.0.0_py312: set llvm as not a build dep --- Formula/freecad@1.0.0_py312.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/freecad@1.0.0_py312.rb b/Formula/freecad@1.0.0_py312.rb index 8c06dc2..b5774c3 100644 --- a/Formula/freecad@1.0.0_py312.rb +++ b/Formula/freecad@1.0.0_py312.rb @@ -84,7 +84,6 @@ class FreecadAT100Py312 < Formula depends_on "freecad/freecad/swig@4.2.1" => :build depends_on "gcc" => :build # gfortran req for FEM WB depends_on "lld" => :build if OS.linux? - depends_on "llvm" => :build if OS.linux? depends_on "mesa" => :build if OS.linux? depends_on "ninja" => :build if OS.linux? depends_on "pkg-config" => :build @@ -104,6 +103,7 @@ class FreecadAT100Py312 < Formula depends_on "glew" depends_on "hdf5" depends_on "icu4c" + depends_on "llvm" if OS.linux? depends_on macos: :high_sierra depends_on "mesa-glu" if OS.linux? depends_on "nlohmann-json" From 2a0e3b5c8190691fac779b7b65ad7fdd53661290 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 23 Dec 2024 13:01:04 -0600 Subject: [PATCH 3/3] freecad@1.0.0_py312: add libomp as a runtime dep for linux and add to cmake_prefix_path --- Formula/freecad@1.0.0_py312.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/freecad@1.0.0_py312.rb b/Formula/freecad@1.0.0_py312.rb index b5774c3..1d804ed 100644 --- a/Formula/freecad@1.0.0_py312.rb +++ b/Formula/freecad@1.0.0_py312.rb @@ -103,6 +103,7 @@ class FreecadAT100Py312 < Formula depends_on "glew" depends_on "hdf5" depends_on "icu4c" + depends_on "libomp" if OS.linux? depends_on "llvm" if OS.linux? depends_on macos: :high_sierra depends_on "mesa-glu" if OS.linux? @@ -191,6 +192,7 @@ def install cmake_prefix_paths << Formula["hdf5"].prefix cmake_prefix_paths << Formula["icu4c"].prefix cmake_prefix_paths << Formula["libjpeg-turbo"].prefix + cmake_prefix_paths << Formula["libomp"].prefix cmake_prefix_paths << Formula["libpng"].prefix cmake_prefix_paths << Formula["libtiff"].prefix cmake_prefix_paths << Formula["lz4"].prefix