Files
haikuports/media-gfx/openvdb/openvdb-5.1.0.recipe
miqlas 76832cfa19 Openvdb 5.1.0 (#2451)
* OpenVDB: bump

* OpenVDB: bump

* SRC_URI

* Cleanup
2018-04-26 06:08:36 +02:00

107 lines
2.8 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="1"
SOURCE_URI="http://www.openvdb.org/download/openvdb_${portVersion//./_}_library.zip"
CHECKSUM_SHA256="915c7ee80e850d9963f96d22eaebff933f20470fbc4b92412a2a9564383feb32"
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
}
TEST()
{
cd build
make test
}