mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
OpenSubDiv: bump (#2750)
This commit is contained in:
113
media-libs/opensubdiv/opensubdiv-3.3.2.recipe
Normal file
113
media-libs/opensubdiv/opensubdiv-3.3.2.recipe
Normal file
@@ -0,0 +1,113 @@
|
||||
SUMMARY="An open-source subdivision surface library"
|
||||
DESCRIPTION="OpenSubdiv is a set of open source libraries that implement high \
|
||||
performance subdivision surface (subdiv) evaluation on massively parallel CPU \
|
||||
and GPU architectures. This codepath is optimized for drawing deforming \
|
||||
subdivs with static topology at interactive framerates. The resulting limit \
|
||||
surface matches Pixar's Renderman to numerical precision."
|
||||
HOMEPAGE="http://graphics.pixar.com/opensubdiv/"
|
||||
COPYRIGHT="2013-2018 Pixar"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${portVersion//\./_}.tar.gz"
|
||||
CHECKSUM_SHA256="d11a0f21bcf21156f9071ea49050ec6675b77776b9dba33b8e30b072d82a8b05"
|
||||
SOURCE_DIR="OpenSubdiv-${portVersion//\./_}"
|
||||
PATCHES="opensubdiv-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
opensubdiv$secondaryArchSuffix = $portVersion
|
||||
cmd:far_perf = $portVersion
|
||||
cmd:far_regression = $portVersion
|
||||
cmd:hbr_baseline = $portVersion
|
||||
cmd:hbr_regression = $portVersion
|
||||
cmd:stringify = $portVersion
|
||||
lib:libosdCPU$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libosdGPU$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:python2
|
||||
lib:libGl$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libglew$secondaryArchSuffix
|
||||
lib:libgomp$secondaryArchSuffix
|
||||
lib:libtbb$secondaryArchSuffix
|
||||
lib:libtbbmalloc$secondaryArchSuffix
|
||||
lib:libtbbmalloc_proxy$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
opensubdiv${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libosdCPU$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libosdGPU$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
opensubdiv$secondaryArchSuffix == $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libGl$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libglew$secondaryArchSuffix
|
||||
devel:libgomp$secondaryArchSuffix
|
||||
devel:libtbb$secondaryArchSuffix
|
||||
devel:libtbbmalloc$secondaryArchSuffix
|
||||
devel:libtbbmalloc_proxy$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
defineDebugInfoPackage opensubdiv$secondaryArchSuffix \
|
||||
$libDir/libosdCPU.so.$libVersion \
|
||||
$libDir/libosdGPU.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
export GLEW_LOCATION="`finddir B_SYSTEM_DEVELOP_DIRECTORY`"
|
||||
export GLEW_INC_LOCATION="`finddir B_SYSTEM_HEADERS_DIRECTORY`"
|
||||
|
||||
cmake .. \
|
||||
-DNO_EXAMPLES=ON \
|
||||
-DNO_TUTORIALS=ON \
|
||||
$cmakeDirArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mkdir -p $includeDir
|
||||
mv $prefix/include/* $includeDir
|
||||
rmdir $prefix/include/
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libosdCPU \
|
||||
libosdGPU
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user