summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-12-20 00:02:34 -0800
committerYuri Victorovich <yuri@FreeBSD.org>2022-12-20 00:13:24 -0800
commitf429ff827caad0247fc6b3f6491c5bc5348db9f2 (patch)
treedcc91bbdcc6296948460fac537ae6aa0b4dd5256
parentnet-im/libsignal-node: Fix powerpc64 patch. (diff)
cad/py-gmsh: Use OpenCASCADE for additional functionality; Add Python flavors
-rw-r--r--cad/py-gmsh/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/cad/py-gmsh/Makefile b/cad/py-gmsh/Makefile
index dbd5e32b003e..a9ee406b0f07 100644
--- a/cad/py-gmsh/Makefile
+++ b/cad/py-gmsh/Makefile
@@ -1,5 +1,6 @@
PORTNAME= gmsh
DISTVERSION= 4.11.0
+PORTREVISION= 1
CATEGORIES= cad python
MASTER_SITES= https://gmsh.info/src/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,19 +16,23 @@ LICENSE_COMB= multi
BUILD_DEPENDS= swig:devel/swig
LIB_DEPENDS= libcgns.so:science/cgnslib \
libfltk_images.so:x11-toolkits/fltk \
+ libfreetype.so:print/freetype2 \
libgmp.so:math/gmp \
libhdf5.so:science/hdf5 \
libmedC.so:french/med \
libpng16.so:graphics/png \
- libsz.so:science/libaec
+ libsz.so:science/libaec \
+ libTKV3d.so:cad/opencascade
USES= cmake gl gnome jpeg python:3.6+ tar:tgz xorg
+USE_PYTHON= flavors
USE_GNOME= cairo
USE_GL= gl glu
USE_XORG= ice sm x11 xext
USE_LDCONFIG= ${PYTHON_SITELIBDIR}
-CMAKE_ON= ENABLE_WRAP_PYTHON ENABLE_PRIVATE_API
+CMAKE_ON= ENABLE_WRAP_PYTHON ENABLE_PRIVATE_API ENABLE_OCC
+CMAKE_ARGS= -DOCC_INC=${LOCALBASE}/include/OpenCASCADE
post-install: # remove all except for the python binding
@cd ${STAGEDIR}${PREFIX} && \