From d2066f8b5c464cf408fefb9a4b3ae464fb389ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Tue, 5 Dec 2023 07:31:57 +0100 Subject: [PATCH] opencascade: enable draco support (#9823) --- sci-libs/opencascade/opencascade-7.7.2.recipe | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sci-libs/opencascade/opencascade-7.7.2.recipe b/sci-libs/opencascade/opencascade-7.7.2.recipe index 75a2666b9..920bc4d6b 100644 --- a/sci-libs/opencascade/opencascade-7.7.2.recipe +++ b/sci-libs/opencascade/opencascade-7.7.2.recipe @@ -7,7 +7,7 @@ COPYRIGHT="1993-1999 Matra Datavision 1999-2020 OPEN CASCADE SAS" LICENSE="GNU LGPL v2.1 Open CASCADE exception v1.0" -REVISION="3" +REVISION="4" SOURCE_URI="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V${portVersion//./_};sf=tgz" CHECKSUM_SHA256="2fb23c8d67a7b72061b4f7a6875861e17d412d524527b2a96151ead1d9cfa2c1" SOURCE_DIR="occt-V${portVersion//./_}" @@ -96,6 +96,7 @@ REQUIRES=" lib:libavcodec$secondaryArchSuffix lib:libavformat$secondaryArchSuffix lib:libavutil$secondaryArchSuffix + lib:libdraco$secondaryArchSuffix # lib:libEGL$secondaryArchSuffix lib:libexecinfo$secondaryArchSuffix lib:libfontconfig$secondaryArchSuffix @@ -299,6 +300,7 @@ BUILD_REQUIRES=" devel:libavcodec$secondaryArchSuffix >= 58 devel:libavformat$secondaryArchSuffix >= 58 devel:libavutil$secondaryArchSuffix >= 56 + devel:libdraco$secondaryArchSuffix devel:libexecinfo$secondaryArchSuffix # devel:libEGL$secondaryArchSuffix devel:libfontconfig$secondaryArchSuffix @@ -328,6 +330,8 @@ BUILD_PREREQUIRES=" BUILD() { cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ + -D3RDPARTY_DRACO_INCLUDE_DIR=/boot/system/$relativeIncludeDir \ + -D3RDPARTY_DRACO_LIBRARY=/boot/system/$relativeDevelopLibDir/libdraco.so \ -D3RDPARTY_QT_DIR=$portPackageLinksDir/devel~libqt5 \ -D3RDPARTY_SKIP_DOT_EXECUTABLE=OFF \ -DBUILD_Inspector=ON \ @@ -346,7 +350,7 @@ BUILD() -DINSTALL_DOC_Overview=ON \ -DINSTALL_SAMPLES=ON \ -DINSTALL_TEST_CASES=OFF \ - -DUSE_DRACO=OFF \ + -DUSE_DRACO=ON \ -DUSE_FFMPEG=ON \ -DUSE_FREEIMAGE=ON \ -DUSE_OPENGL=OFF \ @@ -356,7 +360,7 @@ BUILD() -DUSE_TK=OFF \ -DUSE_VTK=OFF \ -DUSE_XLIB=ON - # Draco, OpenVR and VTK are not available, TBB is too old, (SDL)Tk hangs on opening a + # OpenVR and VTK are not available, TBB is too old, (SDL)Tk hangs on opening a # window, OpenGL has no native implementation and EGL is broken make -C build $jobArgs