Skip to content

Commit

Permalink
Fix Relocatable of nglib
Browse files Browse the repository at this point in the history
  • Loading branch information
ageeye committed Nov 4, 2021
1 parent ce45459 commit 1c16d45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Formula/freecad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def install
inreplace cmakelist do |ln|
ln.gsub! '/usr/local', '${HOMEBREW_PREFIX}' # similar HOMEBREW_PREFIX.to_s
ln.gsub! 'Cellar/icu4c', 'Cellar/icu4c@69.1' # formula is renamed with version
ln.gsub! '${CONFIG_NGLIB}', ('${CONFIG_NGLIB} ' + Formula['./nglib@6.2.2105'].opt_prefix/'Contents/MacOS/')
ln.gsub! '${WEBKIT_FRAMEWORK_DIR}', '' if Hardware::CPU.arm? # do not need for apple silicon, see below
ln.gsub! 'pkg_check_modules(ICU icu-uc)', "pkg_check_modules(ICU icu-uc)\n\nfind_package(OpenCasCade)\nfind_package(llvm)\n" # from other PR stolen
ln.gsub! '${MACPORTS_PREFIX}/lib', '/lib ${LLVM_LIBRARY_DIR} ${OCC_LIBRARY_DIR} ' + gcctxt # from other PR + gcc lib path
Expand Down

0 comments on commit 1c16d45

Please sign in to comment.