git: 503e872fc250 - main - science/chrono: Enable the OpenGL module.

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 30 Jan 2022 18:40:01 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=503e872fc2506f1e1e70bea4b43d76cda0823817

commit 503e872fc2506f1e1e70bea4b43d76cda0823817
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-30 18:39:22 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-30 18:39:57 +0000

    science/chrono: Enable the OpenGL module.
---
 science/chrono/Makefile  |  5 ++++-
 science/chrono/pkg-plist | 27 +++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/science/chrono/Makefile b/science/chrono/Makefile
index 0eb147cafa61..038114eb4a3a 100644
--- a/science/chrono/Makefile
+++ b/science/chrono/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	chrono
 DISTVERSION=	7.0.1
+PORTREVISION=	1
 CATEGORIES=	science devel
 PKGNAMESUFFIX=	-physics-simulation-engine
 
@@ -64,8 +65,10 @@ SYNCHRONO_BUILD_DEPENDS=	flatbuffers>0:devel/flatbuffers
 SYNCHRONO_LIB_DEPENDS=		libmpi.so:net/mpich
 SYNCHRONO_IMPLIES=		VEHICLE
 
+OPENGL_USES=			gl
+OPENGL_USE=			GL=gl,glu,glew
+OPENGL_BUILD_DEPENDS=		${LOCALBASE}/include/glm/glm.hpp:math/glm
 OPENGL_LIB_DEPENDS=		libglfw.so:graphics/glfw
-OPENGL_BROKEN=			clang-12 crashes
 
 VEHICLE_LIB_DEPENDS=		libsz.so:science/szip \
 				libmpi.so:net/openmpi
diff --git a/science/chrono/pkg-plist b/science/chrono/pkg-plist
index d9b033f3dce8..e5e8d71c5ecc 100644
--- a/science/chrono/pkg-plist
+++ b/science/chrono/pkg-plist
@@ -992,6 +992,32 @@ include/chrono_models/robot/viper/Viper.h
 %%MUMPS%%include/chrono_mumps/ChApiMumps.h
 %%MUMPS%%include/chrono_mumps/ChMumpsEngine.h
 %%MUMPS%%include/chrono_mumps/ChSolverMumps.h
+%%OPENGL%%include/chrono_opengl/ChOpenGLCamera.h
+%%OPENGL%%include/chrono_opengl/ChOpenGLMaterials.h
+%%OPENGL%%include/chrono_opengl/ChOpenGLViewer.h
+%%OPENGL%%include/chrono_opengl/ChOpenGLWindow.h
+%%OPENGL%%include/chrono_opengl/FontData.h
+%%OPENGL%%include/chrono_opengl/FontData_1.h
+%%OPENGL%%include/chrono_opengl/FontData_2.h
+%%OPENGL%%include/chrono_opengl/FontData_3.h
+%%OPENGL%%include/chrono_opengl/FontData_4.h
+%%OPENGL%%include/chrono_opengl/FontData_5.h
+%%OPENGL%%include/chrono_opengl/UI/ChOpenGLContacts.h
+%%OPENGL%%include/chrono_opengl/UI/ChOpenGLGraphs.h
+%%OPENGL%%include/chrono_opengl/UI/ChOpenGLHUD.h
+%%OPENGL%%include/chrono_opengl/core/ChApiOpenGL.h
+%%OPENGL%%include/chrono_opengl/core/ChOpenGLBase.h
+%%OPENGL%%include/chrono_opengl/core/ChOpenGLMaterial.h
+%%OPENGL%%include/chrono_opengl/core/ChOpenGLObject.h
+%%OPENGL%%include/chrono_opengl/core/ChOpenGLShader.h
+%%OPENGL%%include/chrono_opengl/core/ChOpenGLVertexAttributes.h
+%%OPENGL%%include/chrono_opengl/shapes/ChOpenGLBars.h
+%%OPENGL%%include/chrono_opengl/shapes/ChOpenGLCloud.h
+%%OPENGL%%include/chrono_opengl/shapes/ChOpenGLMesh.h
+%%OPENGL%%include/chrono_opengl/shapes/ChOpenGLOBJ.h
+%%OPENGL%%include/chrono_opengl/shapes/ChOpenGLText.h
+%%OPENGL%%include/chrono_opengl/shapes/ChOpenGLWires.h
+%%OPENGL%%include/chrono_opengl/shapes/obj/ChOpenGLOBJLoader.h
 %%POSTPROCESS%%include/chrono_postprocess/ChApiPostProcess.h
 %%POSTPROCESS%%include/chrono_postprocess/ChGnuPlot.h
 %%POSTPROCESS%%include/chrono_postprocess/ChPostProcessBase.h
@@ -1385,6 +1411,7 @@ lib/libChronoEngine.so
 %%COSIMULATION%%lib/libChronoEngine_cosimulation.so
 %%IRRLICHT%%lib/libChronoEngine_irrlicht.so
 %%MUMPS%%lib/libChronoEngine_mumps.so
+%%OPENGL%%lib/libChronoEngine_opengl.so
 %%POSTPROCESS%%lib/libChronoEngine_postprocess.so
 %%SYNCHRONO%%lib/libChronoEngine_synchrono.so
 %%VEHICLE%%lib/libChronoEngine_vehicle.so