mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
108 lines
3.0 KiB
Bash
108 lines
3.0 KiB
Bash
SUMMARY="Libs for the efficient manipulation of volumetric data"
|
|
DESCRIPTION="The OpenVDB library comprises a hierarchical data structure and \
|
|
a suite of tools for the efficient manipulation of sparse, possibly \
|
|
time-varying, volumetric data discretized on a three-dimensional grid."
|
|
HOMEPAGE="http://www.openvdb.org/"
|
|
COPYRIGHT="2012-2018 DreamWorks Animation LLC"
|
|
LICENSE="MPL v2.0"
|
|
REVISION="2"
|
|
SOURCE_URI="http://www.openvdb.org/download/openvdb_${portVersion//./_}_library.zip"
|
|
CHECKSUM_SHA256="ee660dfd4b60d11e775a20d9dbd455513dcbead7f26cea1088506ac8550c86a6"
|
|
SOURCE_DIR="openvdb"
|
|
ADDITIONAL_FILES="Makefile.HAIKU"
|
|
|
|
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
openvdb520$secondaryArchSuffix = $portVersion
|
|
lib:libopenvdb$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libblosc$secondaryArchSuffix
|
|
lib:libboost_iostreams$secondaryArchSuffix
|
|
lib:libboost_system$secondaryArchSuffix
|
|
lib:libboost_thread$secondaryArchSuffix
|
|
lib:libcppunit$secondaryArchSuffix
|
|
lib:libHalf$secondaryArchSuffix
|
|
lib:libIex$secondaryArchSuffix
|
|
lib:libIlmImf$secondaryArchSuffix
|
|
lib:libIlmThread$secondaryArchSuffix
|
|
lib:libImath$secondaryArchSuffix
|
|
lib:libtbb$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
openvdb520${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libopenvdb$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES_devel="
|
|
openvdb520$secondaryArchSuffix == $portVersion base
|
|
"
|
|
CONFLICTS_devel="
|
|
openvdb${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libblosc$secondaryArchSuffix
|
|
devel:libboost_iostreams$secondaryArchSuffix
|
|
devel:libboost_system$secondaryArchSuffix
|
|
devel:libboost_thread$secondaryArchSuffix
|
|
devel:libcppunit$secondaryArchSuffix
|
|
devel:libHalf$secondaryArchSuffix
|
|
devel:libIex$secondaryArchSuffix
|
|
devel:libIlmImf$secondaryArchSuffix
|
|
devel:libIlmThread$secondaryArchSuffix
|
|
devel:libImath$secondaryArchSuffix
|
|
devel:libtbb$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage openvdb520$secondaryArchSuffix \
|
|
$libDir/libopenvdb.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cp $portDir/additional-files/Makefile.HAIKU Makefile.HAIKU
|
|
|
|
make -f Makefile.HAIKU \
|
|
DESTDIR=$prefix \
|
|
DESTDIR_LIB_DIR=$libDir \
|
|
DESTDIR_INC_DIR=$includeDir \
|
|
SYS_LIB_DIR="$portPackageLinksDir/devel~libblosc/$relativeDevelopDir/" \
|
|
SYS_INC_DIR="$portPackageLinksDir/devel~libblosc/$relativeIncludeDir/" \
|
|
lib $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -f Makefile.HAIKU \
|
|
DESTDIR=$prefix \
|
|
DESTDIR_LIB_DIR=$libDir \
|
|
DESTDIR_INC_DIR=$includeDir \
|
|
SYS_LIB_DIR="$portPackageLinksDir/devel~libblosc/$relativeDevelopDir/" \
|
|
SYS_INC_DIR="$portPackageLinksDir/devel~libblosc/$relativeIncludeDir/" \
|
|
install_lib
|
|
|
|
prepareInstalledDevelLib libopenvdb
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test
|
|
}
|