blob: 3f55276cde95d7f6f71d2bf2743f1f01b340b38d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
PORTNAME= glvis
DISTVERSION= 4.2
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= https://glvis.github.io/releases/
PKGNAMESUFFIX= -mesh-visualizer # other software also has the name glvis
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Lightweight tool for accurate & flexible finite element visualization
WWW= https://glvis.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= glm>0:math/glm \
xxd:editors/vim
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libHYPRE.so:science/hypre \
libmetis.so:math/metis \
libmfem.so:math/mfem \
libpng.so:graphics/png
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-image>0:graphics/py-scikit-image@${PY_FLAVOR}
USES= cmake:testing gl python:test sdl tar:tgz
USE_GL= gl glew
USE_SDL= sdl2
USE_GITHUB= nodefault
GH_TUPLE= GLVis:data:1fc2954:data/tests/data
CMAKE_TESTING_ON= ENABLE_TESTS # 5 tests fail, likely because test baseline is for ubuntu
CMAKE_ARGS= -DGLVIS_BASELINE_SYS=ubuntu-20.04 # baseline for tests
PLIST_FILES= bin/${PORTNAME}
BINARY_ALIAS= python3=${PYTHON_CMD}
do-install: # workaround for https://github.com/GLVis/glvis/issues/234
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/glvis ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
|