git: ec1d57da624b - main - graphics/Coin: switch build to cmake

From: Christoph Moench-Tegeder <cmt_at_FreeBSD.org>
Date: Thu, 26 Sep 2024 21:56:26 UTC
The branch main has been updated by cmt:

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

commit ec1d57da624bb53225e8a60feafe852cfc599ea5
Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2024-09-26 21:55:27 +0000
Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2024-09-26 21:55:27 +0000

    graphics/Coin: switch build to cmake
    
    this generates the cmake files, which are now required for
    soqt/pivy builds
---
 graphics/Coin/Makefile  | 20 ++++++++------------
 graphics/Coin/pkg-plist | 11 +++++++++--
 2 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/graphics/Coin/Makefile b/graphics/Coin/Makefile
index 06f5d645ca44..67d2e5e64009 100644
--- a/graphics/Coin/Makefile
+++ b/graphics/Coin/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	Coin
 PORTVERSION=	4.0.3
 DISTVERSIONPREFIX=	v
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 
 MAINTAINER=	cmt@FreeBSD.org
@@ -13,7 +13,7 @@ LICENSE=	BSD3CLAUSE
 BUILD_DEPENDS=	boost-libs>0:devel/boost-libs
 LIB_DEPENDS=	libsimage.so:graphics/simage
 
-USES=		gl openal:al libtool pathfix xorg
+USES=		cmake gl openal:al libtool pathfix xorg
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	coin3d
@@ -21,13 +21,13 @@ GH_PROJECT=	coin
 
 USE_GL=		gl glu
 USE_XORG=	ice sm x11 xext xt
-GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
-CONFIGURE_ARGS=	--with-pthread=yes --enable-threadsafe	\
-		--enable-3ds-import --enable-sound	\
-		--enable-javascript-api --enable-debug=no
+CMAKE_ARGS+=	-DCOIN_BUILD_SHARED_LIBS="ON" \
+		-DCOIN_THREADSAFE="ON" \
+		-DCOIN_HAVE_JAVASCRIPT="ON" \
+		-DHAVE_SOUND="ON" \
+		-DHAVE_3DS_IMPORT_CAPABILITIES="ON" \
+		-DUSE_EXTERNAL_EXPAT="ON"
 USE_LDCONFIG=	yes
-INSTALL_TARGET=	install-strip
 
 pre-configure:
 	@${REINPLACE_CMD} -e 's|DATA install-data-local|DATA|g' \
@@ -36,8 +36,4 @@ pre-configure:
 		-name expat.h \) -a -print0 | ${XARGS} -0 \
 		${REINPLACE_CMD} 's/<stdlib.h>/<cstdlib>/g'
 
-post-build:
-	@${REINPLACE_CMD} -e '/^ldflags=/s|-R|-Wl,-rpath,|' \
-		${WRKSRC}/coin-default.cfg
-
 .include <bsd.port.mk>
diff --git a/graphics/Coin/pkg-plist b/graphics/Coin/pkg-plist
index 845a10d593f8..8c1ecaaa1ad4 100644
--- a/graphics/Coin/pkg-plist
+++ b/graphics/Coin/pkg-plist
@@ -198,12 +198,14 @@ include/Inventor/actions/SoGLRenderAction.h
 include/Inventor/actions/SoGetBoundingBoxAction.h
 include/Inventor/actions/SoGetMatrixAction.h
 include/Inventor/actions/SoGetPrimitiveCountAction.h
+include/Inventor/actions/SoGlobalSimplifyAction.h
 include/Inventor/actions/SoHandleEventAction.h
 include/Inventor/actions/SoLineHighlightRenderAction.h
 include/Inventor/actions/SoPickAction.h
 include/Inventor/actions/SoRayPickAction.h
 include/Inventor/actions/SoReorganizeAction.h
 include/Inventor/actions/SoSearchAction.h
+include/Inventor/actions/SoShapeSimplifyAction.h
 include/Inventor/actions/SoSimplifyAction.h
 include/Inventor/actions/SoSubAction.h
 include/Inventor/actions/SoToVRML2Action.h
@@ -290,6 +292,7 @@ include/Inventor/elements/SoBBoxModelMatrixElement.h
 include/Inventor/elements/SoBumpMapCoordinateElement.h
 include/Inventor/elements/SoBumpMapElement.h
 include/Inventor/elements/SoBumpMapMatrixElement.h
+include/Inventor/elements/SoBumpMappingPropertyElement.h
 include/Inventor/elements/SoCacheElement.h
 include/Inventor/elements/SoCacheHintElement.h
 include/Inventor/elements/SoClipPlaneElement.h
@@ -650,6 +653,7 @@ include/Inventor/nodes/SoBlinker.h
 include/Inventor/nodes/SoBumpMap.h
 include/Inventor/nodes/SoBumpMapCoordinate.h
 include/Inventor/nodes/SoBumpMapTransform.h
+include/Inventor/nodes/SoBumpMappingProperty.h
 include/Inventor/nodes/SoCacheHint.h
 include/Inventor/nodes/SoCallback.h
 include/Inventor/nodes/SoCamera.h
@@ -871,6 +875,10 @@ include/Inventor/tools/SbPimplPtr.h
 include/SoDebug.h
 include/SoWinEnterScope.h
 include/SoWinLeaveScope.h
+lib/cmake/Coin-4.0.3/coin-config-version.cmake
+lib/cmake/Coin-4.0.3/coin-config.cmake
+lib/cmake/Coin-4.0.3/coin-export-release.cmake
+lib/cmake/Coin-4.0.3/coin-export.cmake
 lib/libCoin.so
 lib/libCoin.so.80
 lib/libCoin.so.80.0.3
@@ -897,6 +905,7 @@ libdata/pkgconfig/Coin.pc
 %%DATADIR%%/draggerDefaults/transformerDragger.iv
 %%DATADIR%%/draggerDefaults/translate1Dragger.iv
 %%DATADIR%%/draggerDefaults/translate2Dragger.iv
+@dir %%DATADIR%%/profiler
 %%DATADIR%%/scxml/navigation/common.xml
 %%DATADIR%%/scxml/navigation/examiner.xml
 %%DATADIR%%/scxml/navigation/plane.xml
@@ -905,5 +914,3 @@ libdata/pkgconfig/Coin.pc
 %%DATADIR%%/shaders/lights/PointLight.glsl
 %%DATADIR%%/shaders/lights/SpotLight.glsl
 %%DATADIR%%/shaders/vsm/VsmLookup.glsl
-share/aclocal/coin.m4
-share/man/man1/coin-config.1.gz