OpenVDB: bump, packagelinksdir, cleanup (#2938)

This commit is contained in:
miqlas
2018-09-12 19:05:14 +02:00
committed by Scott McCreary
parent b3339e6b21
commit ce5432ebfd
2 changed files with 112 additions and 5 deletions

View File

@@ -77,8 +77,8 @@ BUILD()
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`" \
SYS_LIB_DIR="$portPackageLinksDir/devel~libblosc/$relativeDevelopDir/" \
SYS_INC_DIR="$portPackageLinksDir/devel~libblosc/$relativeIncludeDir/" \
lib $jobArgs
}
@@ -88,8 +88,8 @@ INSTALL()
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`" \
SYS_LIB_DIR="$portPackageLinksDir/devel~libblosc/$relativeDevelopDir/" \
SYS_INC_DIR="$portPackageLinksDir/devel~libblosc/$relativeIncludeDir/" \
install_lib
prepareInstalledDevelLib libopenvdb
@@ -100,6 +100,5 @@ INSTALL()
TEST()
{
cd build
make test
}

View File

@@ -0,0 +1,108 @@
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="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:cppunit_config$secondaryArchSuffix
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
}