opencascade: enable draco support (#9823)

This commit is contained in:
Joachim Mairböck
2023-12-05 07:31:57 +01:00
committed by GitHub
parent 5c6eb63a2f
commit d2066f8b5c

View File

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