Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= gmsh |
4 |
PORTNAME= gmsh |
5 |
DISTVERSION= 4.6.0 |
5 |
DISTVERSION= 4.6.0 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= cad |
7 |
CATEGORIES= cad |
7 |
MASTER_SITES= LOCAL/wen \ |
8 |
MASTER_SITES= LOCAL/wen \ |
8 |
http://gmsh.info/src/ |
9 |
http://gmsh.info/src/ |
Lines 31-37
USE_XORG= x11 xcursor xext xinerama xfixes xft xrender
Link Here
|
31 |
|
32 |
|
32 |
CMAKE_ARGS= -DCMAKE_SKIP_RPATH:BOOL=YES |
33 |
CMAKE_ARGS= -DCMAKE_SKIP_RPATH:BOOL=YES |
33 |
|
34 |
|
34 |
OPTIONS_DEFINE= CGNS DOCS MED OCC SHARED STATIC |
35 |
OPTIONS_DEFINE= CGNS DOCS MED OCC SHARED STATIC PYMOD |
35 |
OPTIONS_DEFAULT= CGNS MED OCC |
36 |
OPTIONS_DEFAULT= CGNS MED OCC |
36 |
OPTIONS_SUB= yes |
37 |
OPTIONS_SUB= yes |
37 |
|
38 |
|
Lines 40-45
MED_DESC= Enable MED mesh and post file formats
Link Here
|
40 |
OCC_DESC= Enable OpenCASCADE geometrical models |
41 |
OCC_DESC= Enable OpenCASCADE geometrical models |
41 |
SHARED_DESC= Build shared library and install header files |
42 |
SHARED_DESC= Build shared library and install header files |
42 |
STATIC_DESC= Build static library |
43 |
STATIC_DESC= Build static library |
|
|
44 |
PYMOD_DESC= Install Python module (implies SHARED). |
43 |
|
45 |
|
44 |
PLIST_SUB= VER=${PORTVERSION} VE=${PORTVERSION:R} |
46 |
PLIST_SUB= VER=${PORTVERSION} VE=${PORTVERSION:R} |
45 |
|
47 |
|
Lines 61-68
OCC_USE= gnome=cairo
Link Here
|
61 |
SHARED_CMAKE_BOOL= ENABLE_BUILD_SHARED |
63 |
SHARED_CMAKE_BOOL= ENABLE_BUILD_SHARED |
62 |
SHARED_USE= LDCONFIG=yes |
64 |
SHARED_USE= LDCONFIG=yes |
63 |
STATIC_CMAKE_BOOL= ENABLE_BUILD_LIB |
65 |
STATIC_CMAKE_BOOL= ENABLE_BUILD_LIB |
|
|
66 |
PYMOD_USES= python |
67 |
PYMOD_IMPLIES= SHARED |
68 |
|
69 |
post-patch-PYMOD-on: |
70 |
@${REINPLACE_CMD} -e "s|PREFIX|${LOCALBASE}|" -e "s|DISTVERSION|${DISTVERSION}|" \ |
71 |
${WRKSRC}/api/gmsh.py |
72 |
|
73 |
post-install-PYMOD-on: |
74 |
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} |
75 |
${INSTALL_DATA} ${WRKSRC}/api/gmsh.py ${STAGEDIR}${PYTHON_SITELIBDIR}/ |
64 |
|
76 |
|
65 |
post-install-SHARED-on: |
77 |
post-install-SHARED-on: |
66 |
${RM} -r ${STAGEDIR}/wrkdirs |
78 |
@${RM} -r ${STAGEDIR}/wrkdirs |
|
|
79 |
@${RM} ${STAGEDIR}${PREFIX}/include/gmsh.h_cwrap |
80 |
|
81 |
post-install: |
82 |
@${RMDIR} ${STAGEDIR}${PREFIX}/lib/debug |
83 |
@${RM} ${STAGEDIR}${PREFIX}/lib/gmsh.jl |
67 |
|
84 |
|
68 |
.include <bsd.port.mk> |
85 |
.include <bsd.port.mk> |