OpenVDB : new recipe (#2017)

* WIP

* OpenVDB : new recipe

* Cleanup
This commit is contained in:
miqlas
2018-01-05 10:09:05 +01:00
committed by GitHub
parent 3ecbe4e152
commit e7628b32b7
2 changed files with 1114 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,100 @@
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-2017 DreamWorks Animation LLC"
LICENSE="MPL v2.0"
REVISION="1"
SOURCE_URI="http://www.openvdb.org/download/openvdb_5_0_0_library.zip"
CHECKSUM_SHA256="3931b81d4c61fddaa656212f991c743f4c095838492975f58f94f02429fbe86d"
SOURCE_DIR="openvdb"
ADDITIONAL_FILES="Makefile.HAIKU"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
openvdb$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:libIlmImf$secondaryArchSuffix
lib:libIlmThread$secondaryArchSuffix
lib:libIex$secondaryArchSuffix
lib:libImath$secondaryArchSuffix
lib:libtbb$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
openvdb${secondaryArchSuffix}_devel = $portVersion
devel:libopenvdb$secondaryArchSuffix = $libVersion
"
REQUIRES_devel="
openvdb$secondaryArchSuffix == $portVersion base
"
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:libIlmImf$secondaryArchSuffix
devel:libIlmThread$secondaryArchSuffix
devel:libIex$secondaryArchSuffix
devel:libImath$secondaryArchSuffix
devel:libtbb$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage openvdb$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="`finddir B_SYSTEM_LIB_DIRECTORY`" \
SYS_INC_DIR="`finddir B_SYSTEM_HEADERS_DIRECTORY`" \
lib $jobArgs
}
INSTALL()
{
make -f Makefile.HAIKU \
DESTDIR=$prefix \
DESTDIR_LIB_DIR=$libDir \
DESTDIR_INC_DIR=$includeDir \
SYS_LIB_DIR="`finddir B_SYSTEM_LIB_DIRECTORY`" \
SYS_INC_DIR="`finddir B_SYSTEM_HEADERS_DIRECTORY`" \
install_lib
prepareInstalledDevelLib libopenvdb
packageEntries devel \
$developDir
}