openvdb, disable static library, cleanup (#8245)

This commit is contained in:
Schrijvers Luc
2023-04-03 08:12:55 +02:00
committed by GitHub
parent 360122eee8
commit 5b04fe0b23

View File

@@ -5,13 +5,20 @@ time-varying, volumetric data discretized on a three-dimensional grid."
HOMEPAGE="https://www.openvdb.org/"
COPYRIGHT="2012-2019 DreamWorks Animation LLC"
LICENSE="MPL v2.0"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/AcademySoftwareFoundation/openvdb/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="0c3588c1ca6e647610738654ec2c6aaf41a203fd797f609fbeab1c9f7c3dc116"
ARCHITECTURES="all ?x86_gcc2"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
@@ -33,7 +40,7 @@ REQUIRES="
PROVIDES_tools="
openvdb${secondaryArchSuffix}_tools = $portVersion
cmd:vdb_print
cmd:vdb_print$commandSuffix
"
REQUIRES_tools="
haiku$secondaryArchSuffix
@@ -80,24 +87,20 @@ defineDebugInfoPackage openvdb$secondaryArchSuffix \
BUILD()
{
mkdir -p haiku_build
cd haiku_build
cmake .. \
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
-DTBB_ROOT="$portPackageLinksDir/devel~libtbb$secondaryArchSuffix/$relativeDevelopDir/" \
-DTBB_INCLUDEDIR="$portPackageLinksDir/devel~libtbb$secondaryArchSuffix/$relativeIncludeDir/" \
-DTBB_LIBRARYDIR="$portPackageLinksDir/devel~libtbb$secondaryArchSuffix/$relativeDevelopLibDir/" \
-DOPENVDB_BUILD_PYTHON_MODULE=OFF \
$cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=$prefix/bin
make $jobArgs
-DOPENVDB_CORE_STATIC=OFF
make -C build $jobArgs
}
INSTALL()
{
cd haiku_build
make install
make -C build install
prepareInstalledDevelLib libopenvdb