homebrew-freecad
homebrew-freecad copied to clipboard
Fix macapp build with homebrew (needs a FreeCAD fix)
This is fixing the creation of the MacApp when using homebrew. Needs currently some fixes into freecad tree into src/MacAppBundle/CMakeLists.txt which is lacking a few includes to build the bundle.
For pure testing you can use https://github.com/vejmarie/FreeCAD -> branch macbundle
It will successfully create the FreeCAD.app which can be copied into /Applications (it is rellocatable) and then successfully used.
Let me know your thoughts !
Signed-off-by: vejmarie [email protected]
I don't understand the icu4-stuff of this PR.
1. Set env PKG_CONFIG_PATH
The result of this line
ENV["PKG_CONFIG_PATH"] = Formula["[email protected]"].opt_prefix + "/lib/pkgconfig"
should be every time '/lib/pgkconfig'.
Better way:
ENV['PKG_CONFIG_PATH'] = Formula["#{@tap}/[email protected]"].lib/'pkgconfig'
2. In CMakeLists.txt the relevant source code is comment out in your branch
#set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CONFIG_ICU}")
Inreplace solution. Testing welcome. :-)