1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

science/elmerfem: support opencascade-7.8.0

PR:		277307
This commit is contained in:
Henrik Gulbrandsen 2024-03-16 14:02:09 +01:00 committed by Thierry Thomas
parent 70f1bafe4d
commit d0646a9501
2 changed files with 19 additions and 4 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= elmerfem
DISTVERSIONPREFIX= release-
DISTVERSION= 9.0
PORTREVISION= 14
PORTREVISION= 15
CATEGORIES= science
PATCH_SITES= https://github.com/ElmerCSC/${PORTNAME}/commit/
@ -97,10 +97,10 @@ post-patch:
@${REINPLACE_CMD} -e 's,"metis.*/metis\.h",<metis.h>,' \
${WRKSRC}/elmergrid/src/egparallel.c
post-patch-OCC-on:
@${REINPLACE_CMD} -e "s|\$${VERSION}|`${PKG_QUERY} '%v' opencascade`|" \
pre-configure-OCC-on:
${REINPLACE_CMD} -e "s|\$${VERSION}|`${PKG_QUERY} '%v' opencascade`|" \
"${WRKSRC}/cmake/Modules/FindOCE.cmake"
@${REINPLACE_CMD} -e 's|$${INCLUDE}|${LOCALBASE}/include/OpenCASCADE|' \
${REINPLACE_CMD} -e 's|$${INCLUDE}|${LOCALBASE}/include/OpenCASCADE|' \
"${WRKSRC}/cmake/Modules/FindOCE.cmake"
post-configure:

View File

@ -0,0 +1,15 @@
--- ElmerGUI/CMakeLists.txt.orig 2020-11-10 19:52:44 UTC
+++ ElmerGUI/CMakeLists.txt
@@ -83,7 +83,11 @@ IF(WITH_OCC)
MESSAGE(STATUS " [ElmerGUI] OCE_VERSION: " ${OCE_VERSION})
MESSAGE(STATUS " [ElmerGUI] OCE_INCLUDE_DIRS: " ${OCE_INCLUDE_DIRS})
ENDIF()
- SET(ELMER_OCC_LIBS "TKernel;TKMath;TKG3d;TKG2d;TKBRep;TKSTEP;TKMesh;TKIGES;TKG2d;TKGeomBase;TKBool;TKBO;TKGeomAlgo;TKPrim;TKShHealing;TKSTEP209;TKSTEPAttr;TKSTEPBase;TKTopAlgo;TKXSBase" CACHE INTERNAL "")
+ IF(OCE_VERSION AND OCE_VERSION VERSION_GREATER_EQUAL "7.8.0")
+ SET(ELMER_OCC_LIBS "TKernel;TKMath;TKG3d;TKG2d;TKBRep;TKDESTEP;TKMesh;TKDEIGES;TKG2d;TKGeomBase;TKBool;TKBO;TKGeomAlgo;TKPrim;TKShHealing;TKTopAlgo;TKXSBase" CACHE INTERNAL "")
+ ELSE()
+ SET(ELMER_OCC_LIBS "TKernel;TKMath;TKG3d;TKG2d;TKBRep;TKSTEP;TKMesh;TKIGES;TKG2d;TKGeomBase;TKBool;TKBO;TKGeomAlgo;TKPrim;TKShHealing;TKSTEP209;TKSTEPAttr;TKSTEPBase;TKTopAlgo;TKXSBase" CACHE INTERNAL "")
+ ENDIF()
MESSAGE(STATUS " [ElmerGUI] ELMER_OCC_LIBS: " "${ELMER_OCC_LIBS}")
MESSAGE(STATUS "------------------------------------------------")
ENDIF()