mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
Add missing patch for TK on MacOS, add .gitignore file
This commit is contained in:
parent
2d63931130
commit
d91127832a
58
cmake_modules/tk_macosx.patch
Normal file
58
cmake_modules/tk_macosx.patch
Normal file
@ -0,0 +1,58 @@
|
||||
diff --git a/macosx/GNUmakefile b/macosx/GNUmakefile
|
||||
index 02240ed..aac1d4c 100644
|
||||
--- a/macosx/GNUmakefile
|
||||
+++ b/macosx/GNUmakefile
|
||||
@@ -133,9 +133,7 @@ override EMBEDDED_BUILD :=
|
||||
endif
|
||||
|
||||
INSTALL_TARGETS = install-binaries install-libraries
|
||||
-ifeq (${EMBEDDED_BUILD},)
|
||||
INSTALL_TARGETS += install-private-headers install-headers install-demos
|
||||
-endif
|
||||
ifeq (${INSTALL_BUILD}_${EMBEDDED_BUILD}_${BUILD_STYLE},1__Deployment)
|
||||
INSTALL_TARGETS += html-tk
|
||||
ifneq (${INSTALL_MANPAGES},)
|
||||
@@ -253,43 +251,6 @@ ifeq (${BUILD_STYLE}_${EMBEDDED_BUILD},Development_)
|
||||
@cd "${INSTALL_ROOT}${LIBDIR}/${PRODUCT_NAME}.framework/Versions/${VERSION}" && \
|
||||
ln -f "${PRODUCT_NAME}" "${PRODUCT_NAME}_debug"
|
||||
endif
|
||||
-ifeq (${TK_X11},)
|
||||
-ifeq (${EMBEDDED_BUILD},)
|
||||
-# install Wish.app link in APPLICATION_INSTALL_PATH and setup 'Wish Shell' compatibility links
|
||||
- @cd "${TOP_DIR}" && if [ -n "${APP_DIR}" ]; then mkdir -p "./${APP_DIR}" && rm -rf "./${APP_DIR}/Wish.app" && \
|
||||
- ln -fsh "./$$(echo "${APP_DIR}" | sed -e 's#/[^/][^/]*#/..#g')/${FMWK_DIR}/${PRODUCT_NAME}.framework/Resources/Wish.app" "./${APP_DIR}" && \
|
||||
- ln -fsh Wish.app "./${APP_DIR}/Wish Shell.app"; fi && \
|
||||
- ln -fsh Wish.app "./${TK_FMWK_DIR}/Resources/Wish Shell.app" && \
|
||||
- ln -fsh Wish "./${TK_FMWK_DIR}/Resources/Wish.app/Contents/MacOS/Wish Shell"
|
||||
-else
|
||||
-# if we are embedding frameworks, move them into the app and fix their install names
|
||||
- @cd "${TOP_DIR}" && \
|
||||
- rm -rf "./${APP_DIR}/Wish.app" && mkdir -p "./${APP_DIR}" && \
|
||||
- mv -f "./${TK_FMWK_DIR}/Resources/Wish.app" "./${APP_DIR}" && \
|
||||
- ln -fsh Wish.app "./${APP_DIR}/Wish Shell.app" && \
|
||||
- rm -rf "./${APP_DIR}/Wish.app/Contents/Frameworks" && \
|
||||
- mkdir -p "./${APP_DIR}/Wish.app/Contents/Frameworks" && \
|
||||
- ${CPPROG} -RH "./${FMWK_DIR}"/T{cl,k}.framework "./${APP_DIR}/Wish.app/Contents/Frameworks" && \
|
||||
- cd "./${APP_DIR}/Wish.app/Contents" && \
|
||||
- rm -rf Frameworks/Tcl.framework/{,/Versions/${TCL_VERSION}}/{Headers,PrivateHeaders,*_debug,lib*.a,*Config.sh} && \
|
||||
- rm -rf Frameworks/Tk.framework/{,/Versions/${VERSION}}/{Headers,PrivateHeaders,*_debug,lib*.a,*Config.sh} && \
|
||||
- fix_install_id ( ) { \
|
||||
- chmod -RH a+w "$$1"; \
|
||||
- install_name_tool -id $$(otool -L "$$1" | awk "/$$2\.framework.*[^:]\$$/ {sub(\"^.*/Frameworks\",\"@executable_path/../Frameworks\",\$$1); print \$$1}") "$$1"; \
|
||||
- chmod -RH a-w "$$1"; \
|
||||
- } && \
|
||||
- fix_install_name ( ) { \
|
||||
- chmod -RH a+w "$$1"; \
|
||||
- install_name_tool -change $$(otool -L "$$1" | awk "/$$2\.framework.*[^:]\$$/ {print \$$1; sub(\"^.*/Frameworks\",\"@executable_path/../Frameworks\",\$$1); print \$$1}") "$$1"; \
|
||||
- chmod -RH a-w "$$1"; \
|
||||
- } && \
|
||||
- fix_install_id Frameworks/Tcl.framework/Tcl Tcl && fix_install_id Frameworks/Tk.framework/Tk Tk && \
|
||||
- fix_install_name MacOS/Wish Tcl && fix_install_name MacOS/Wish Tk
|
||||
-ifeq (${INSTALL_BUILD},1)
|
||||
- @cd "${TOP_DIR}" && rm -rf "./${FMWK_DIR}"/T{cl,k}.framework && rmdir -p "./${FMWK_DIR}" 2>&- || true
|
||||
-endif
|
||||
-endif
|
||||
-endif
|
||||
|
||||
clean-${PROJECT}: %-${PROJECT}:
|
||||
${DO_MAKE}
|
1
external_dependencies/.gitignore
vendored
Normal file
1
external_dependencies/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.tar.gz
|
Loading…
Reference in New Issue
Block a user