2022-12-20 04:18:55 +00:00
|
|
|
PORTNAME= gmsh
|
2024-03-10 05:31:14 +00:00
|
|
|
DISTVERSION= 4.13.0
|
2022-12-20 04:18:55 +00:00
|
|
|
CATEGORIES= cad python
|
|
|
|
MASTER_SITES= https://gmsh.info/src/
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}-source
|
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Automatic 3D finite element mesh generator (gmsh's own binding)
|
|
|
|
WWW= https://gmsh.info/
|
|
|
|
|
|
|
|
LICENSE= AGPLv3+ APACHE20 GPLv3+ GPLv2+ LGPL21
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
|
|
|
BUILD_DEPENDS= swig:devel/swig
|
|
|
|
LIB_DEPENDS= libcgns.so:science/cgnslib \
|
|
|
|
libfltk_images.so:x11-toolkits/fltk \
|
2022-12-20 08:02:34 +00:00
|
|
|
libfreetype.so:print/freetype2 \
|
2022-12-20 04:18:55 +00:00
|
|
|
libgmp.so:math/gmp \
|
|
|
|
libhdf5.so:science/hdf5 \
|
|
|
|
libmedC.so:french/med \
|
|
|
|
libpng16.so:graphics/png \
|
2022-12-20 08:02:34 +00:00
|
|
|
libsz.so:science/libaec \
|
|
|
|
libTKV3d.so:cad/opencascade
|
2022-12-20 04:18:55 +00:00
|
|
|
|
2023-06-14 22:00:28 +00:00
|
|
|
USES= cmake gl gnome jpeg python tar:tgz xorg
|
2022-12-20 08:02:34 +00:00
|
|
|
USE_PYTHON= flavors
|
2022-12-20 04:18:55 +00:00
|
|
|
USE_GNOME= cairo
|
|
|
|
USE_GL= gl glu
|
|
|
|
USE_XORG= ice sm x11 xext
|
|
|
|
USE_LDCONFIG= ${PYTHON_SITELIBDIR}
|
|
|
|
|
2022-12-20 08:02:34 +00:00
|
|
|
CMAKE_ON= ENABLE_WRAP_PYTHON ENABLE_PRIVATE_API ENABLE_OCC
|
|
|
|
CMAKE_ARGS= -DOCC_INC=${LOCALBASE}/include/OpenCASCADE
|
2022-12-20 04:18:55 +00:00
|
|
|
|
2023-08-13 14:11:03 +00:00
|
|
|
CXXFLAGS_powerpc64= -mvsx
|
|
|
|
|
2022-12-20 04:18:55 +00:00
|
|
|
post-install: # remove all except for the python binding
|
|
|
|
@cd ${STAGEDIR}${PREFIX} && \
|
|
|
|
${RM} -r \
|
|
|
|
bin/* \
|
|
|
|
include/gmsh* \
|
|
|
|
lib/gmsh.jl \
|
|
|
|
share/doc/gmsh \
|
|
|
|
share/man/man1/gmsh.1
|
|
|
|
# move "private API" libs to the python folder
|
|
|
|
@cd ${STAGEDIR} && \
|
|
|
|
${MV} \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/gmsh* \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/lib* \
|
|
|
|
${STAGEDIR}${PYTHON_SITELIBDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|