diff options
author | stephen <stephen@FreeBSD.org> | 2014-11-23 01:46:21 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2014-11-23 01:46:21 +0800 |
commit | bf5c5a69516705ec3f908b65c4e4f8298b5938fc (patch) | |
tree | 031bca341ef5ed9d76baeacaa6092ef4dc0638a7 /cad | |
parent | 6eeb76d6dc07bf316a9a6e6d85d3ceec69b206db (diff) | |
download | freebsd-ports-gnome-bf5c5a69516705ec3f908b65c4e4f8298b5938fc.tar.gz freebsd-ports-gnome-bf5c5a69516705ec3f908b65c4e4f8298b5938fc.tar.zst freebsd-ports-gnome-bf5c5a69516705ec3f908b65c4e4f8298b5938fc.zip |
- Update to 2.8.5 and chase cad/opencascade.
PR: ports/195173
Submitted by: Thierry Thomas <thierry@FreeBSD.org>
Diffstat (limited to 'cad')
-rw-r--r-- | cad/gmsh-occ/Makefile | 1 | ||||
-rw-r--r-- | cad/gmsh/Makefile | 7 | ||||
-rw-r--r-- | cad/gmsh/distinfo | 4 | ||||
-rw-r--r-- | cad/gmsh/files/patch-CMakeLists.txt | 21 | ||||
-rw-r--r-- | cad/gmsh/files/patch-Geo_OCCFace.cpp | 24 | ||||
-rw-r--r-- | cad/gmsh/pkg-plist | 5 |
6 files changed, 47 insertions, 15 deletions
diff --git a/cad/gmsh-occ/Makefile b/cad/gmsh-occ/Makefile index 77b7989efb6e..93e5fe54091f 100644 --- a/cad/gmsh-occ/Makefile +++ b/cad/gmsh-occ/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PORTNAME= gmsh -PORTREVISION= 3 CATEGORIES= cad PKGNAMESUFFIX= -occ diff --git a/cad/gmsh/Makefile b/cad/gmsh/Makefile index 2f3b86244991..388dd37f09ef 100644 --- a/cad/gmsh/Makefile +++ b/cad/gmsh/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= gmsh -PORTVERSION= 2.8.4 -PORTREVISION= 5 +PORTVERSION= 2.8.5 CATEGORIES= cad MASTER_SITES= http://www.geuz.org/gmsh/src/ \ http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ @@ -45,7 +44,7 @@ PLIST_SUB+= STATIC_LIB="@comment " .if !defined(WITHOUT_SHARED_LIB) CMAKE_ARGS+= -DENABLE_BUILD_SHARED=ON ALL_TARGET+= shared -PLIST_SUB+= SHARED_LIB="" +PLIST_SUB+= SHARED_LIB="" VER=${PORTVERSION} VE=${PORTVERSION:R} USE_LDCONFIG= yes .else PLIST_SUB+= SHARED_LIB="@comment " @@ -193,7 +192,7 @@ post-extract: @${ECHO} "because Taucs requires Metis." >> ${PKGMESSAGE} .endif -post-patch: +pre-configure: ${REINPLACE_CMD} -e s+share/doc/gmsh+${DOCSDIR_REL}+ \ -e s+share/man/man1+man/man1+ ${WRKSRC}/CMakeLists.txt diff --git a/cad/gmsh/distinfo b/cad/gmsh/distinfo index 39bea88d2500..32836de9c5ac 100644 --- a/cad/gmsh/distinfo +++ b/cad/gmsh/distinfo @@ -1,4 +1,4 @@ -SHA256 (gmsh/gmsh-2.8.4-source.tgz) = 199e27cba3258976eddfd7767560ec52382702076bca5d4bcf067124e6f6624b -SIZE (gmsh/gmsh-2.8.4-source.tgz) = 11866204 +SHA256 (gmsh/gmsh-2.8.5-source.tgz) = 0ea2fdbcc9ba44c90e03dbc553e7f0ddb2f9044173ac34db123db4fe65af3130 +SIZE (gmsh/gmsh-2.8.5-source.tgz) = 8665258 SHA256 (gmsh/manual.pdf) = 8a682ee7f02380f52d5efdde5f9f9d8e927a4f4eb29287a878c1016225568911 SIZE (gmsh/manual.pdf) = 206713 diff --git a/cad/gmsh/files/patch-CMakeLists.txt b/cad/gmsh/files/patch-CMakeLists.txt index 62e4fa276c5c..86b66d7e76b6 100644 --- a/cad/gmsh/files/patch-CMakeLists.txt +++ b/cad/gmsh/files/patch-CMakeLists.txt @@ -1,6 +1,6 @@ ---- CMakeLists.txt.orig 2013-09-27 12:59:06.000000000 +0000 -+++ CMakeLists.txt 2013-09-27 17:45:20.000000000 +0000 -@@ -84,6 +84,7 @@ +--- CMakeLists.txt.orig 2014-07-09 09:27:58.000000000 +0200 ++++ CMakeLists.txt 2014-11-17 23:45:13.000000000 +0100 +@@ -89,6 +89,7 @@ opt(VORO3D "Enable Voro3D (for hex meshing, experimental)" ${DEFAULT}) opt(WRAP_JAVA "Enable generation of Java wrappers (experimental)" OFF) opt(WRAP_PYTHON "Enable generation of Python wrappers" OFF) @@ -8,7 +8,16 @@ set(GMSH_MAJOR_VERSION 2) set(GMSH_MINOR_VERSION 8) -@@ -1318,7 +1319,7 @@ +@@ -1017,7 +1018,7 @@ + # ModelingData + TKBRep TKGeomBase TKG3d TKG2d + # FoundationClasses +- TKAdvTools TKMath TKernel) ++ TKMath TKernel) + if(ENABLE_SGEOM) + set(OCC_LIBS_REQUIRED ${OCC_LIBS_REQUIRED} + # For SGEOM +@@ -1450,7 +1451,7 @@ set(GMSH_BIN bin) set(GMSH_LIB lib) set(GMSH_DOC share/doc/gmsh) @@ -17,7 +26,7 @@ endif(ENABLE_OS_SPECIFIC_INSTALL) if(CYGWIN) unix2dos(GMSH_API) -@@ -1339,7 +1340,7 @@ +@@ -1471,7 +1472,7 @@ set(GMSH_BIN bin) set(GMSH_LIB lib) set(GMSH_DOC share/doc/gmsh) @@ -26,7 +35,7 @@ endif(WIN32 OR CYGWIN) # mark targets as optional so we can install them separately if needed -@@ -1394,11 +1395,13 @@ +@@ -1524,11 +1525,13 @@ if(ENABLE_BUILD_LIB OR ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC) install(FILES ${GMSH_API} DESTINATION include/gmsh) endif(ENABLE_BUILD_LIB OR ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC) diff --git a/cad/gmsh/files/patch-Geo_OCCFace.cpp b/cad/gmsh/files/patch-Geo_OCCFace.cpp new file mode 100644 index 000000000000..aedb1e5f1e2d --- /dev/null +++ b/cad/gmsh/files/patch-Geo_OCCFace.cpp @@ -0,0 +1,24 @@ +--- Geo/OCCFace.cpp.orig 2014-02-07 08:31:21.000000000 +0100 ++++ Geo/OCCFace.cpp 2014-11-18 23:35:55.000000000 +0100 +@@ -28,7 +28,11 @@ + #include <BRepMesh_FastDiscret.hxx> + + #if (OCC_VERSION_MAJOR == 6) && (OCC_VERSION_MINOR >= 6) +-#include <BOPInt_Context.hxx> ++# if (OCC_VERSION_MINOR < 8) ++# include <BOPInt_Context.hxx> ++# else ++# include <IntTools_Context.hxx> ++# endif + #include <BOPTools_AlgoTools2D.hxx> + #include <BOPTools_AlgoTools.hxx> + #else +@@ -455,7 +459,7 @@ + void OCCFace::replaceEdgesInternal(std::list<GEdge*> &new_edges) + { + +-#if (OCC_VERSION_MAJOR == 6) && (OCC_VERSION_MINOR >= 6) ++#if (OCC_VERSION_MAJOR == 6) && (OCC_VERSION_MINOR >= 6) && (OCC_VERSION_MINOR < 8) + Handle(BOPInt_Context) myContext = new BOPInt_Context; + #elif defined(OCC_VERSION_HEX) && OCC_VERSION_HEX >= 0x060503 + Handle(IntTools_Context) myContext = new IntTools_Context; diff --git a/cad/gmsh/pkg-plist b/cad/gmsh/pkg-plist index 86a0451a16b8..18b6894bc59b 100644 --- a/cad/gmsh/pkg-plist +++ b/cad/gmsh/pkg-plist @@ -2,8 +2,8 @@ bin/gmsh bin/onelab.py %%STATIC_LIB%%lib/libGmsh.a %%SHARED_LIB%%lib/libGmsh.so -%%SHARED_LIB%%lib/libGmsh.so.2.8 -%%SHARED_LIB%%lib/libGmsh.so.2.8.4 +%%SHARED_LIB%%lib/libGmsh.so.%%VE%% +%%SHARED_LIB%%lib/libGmsh.so.%%VER%% include/gmsh/CGNSOptions.h include/gmsh/Cell.h include/gmsh/CellComplex.h @@ -50,6 +50,7 @@ include/gmsh/MTetrahedron.h include/gmsh/MTriangle.h include/gmsh/MVertex.h include/gmsh/MVertexBoundaryLayerData.h +include/gmsh/MetricBasis.h include/gmsh/Numeric.h include/gmsh/OS.h include/gmsh/Octree.h |