graphics/Coin: switch build to cmake

this generates the cmake files, which are now required for
soqt/pivy builds
This commit is contained in:
Christoph Moench-Tegeder 2024-09-26 23:55:27 +02:00
parent 4f0fd2a975
commit ec1d57da62
2 changed files with 17 additions and 14 deletions

View file

@ -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>

View file

@ -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