mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
OpenSubdiv: new recipe (#1877)
* OpenSubdiv: new recipe * Whitespace cleanup
This commit is contained in:
97
media-libs/opensubdiv/opensubdiv-3.3.0.recipe
Normal file
97
media-libs/opensubdiv/opensubdiv-3.3.0.recipe
Normal file
@@ -0,0 +1,97 @@
|
||||
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-2017 Pixar"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v3_3_0.tar.gz"
|
||||
CHECKSUM_SHA256="93d364340518515129fe199c80c4030f666ff71414d9c543e1526f14b5ffc8d0"
|
||||
SOURCE_DIR="OpenSubdiv-3_3_0"
|
||||
PATCHES="opensubdiv-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
opensubdiv$secondaryArchSuffix = $portVersion
|
||||
cmd:far_perf = $portVersion
|
||||
cmd:far_regression = $portVersion
|
||||
cmd:hbr_baseline = $portVersion
|
||||
cmd:hbr_regression = $portVersion
|
||||
lib:libosdCPU$secondaryArchSuffix = 3.3.0 compat >= 3
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
# cmd:python2
|
||||
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 = 3.3.0 compat >= 3
|
||||
"
|
||||
REQUIRES_devel="
|
||||
opensubdiv$secondaryArchSuffix == $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
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.$portVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. \
|
||||
-DNO_CUDA=ON \
|
||||
-DNO_OPENCL=OFF \
|
||||
-DNO_OPENGL=ON \
|
||||
-DNO_TUTORIALS=ON \
|
||||
-DNO_EXAMPLES=ON \
|
||||
$cmakeDirArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mkdir -p $includeDir
|
||||
mv $prefix/include/* $includeDir
|
||||
rmdir $prefix/include/
|
||||
|
||||
prepareInstalledDevelLib libosdCPU
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
25
media-libs/opensubdiv/patches/opensubdiv-3.3.0.patchset
Normal file
25
media-libs/opensubdiv/patches/opensubdiv-3.3.0.patchset
Normal file
@@ -0,0 +1,25 @@
|
||||
From d81e3fc27521b9b0e5bd9bf2ff1abbbcc25a3c8d Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Sun, 10 Dec 2017 11:27:28 +0100
|
||||
Subject: [PATCH] Platform fixes
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4f3cd9d..84aafb6 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -335,7 +335,7 @@ endif()
|
||||
if(NOT NO_CUDA)
|
||||
find_package(CUDA 4.0)
|
||||
endif()
|
||||
-if(NOT NO_OPENGL AND NOT ANDROID AND NOT IOS)
|
||||
+if(NOT NO_OPENGL AND NOT ANDROID AND NOT IOS AND NOT HAIKU)
|
||||
find_package(GLFW 3.0.0)
|
||||
endif()
|
||||
if(NOT NO_PTEX)
|
||||
--
|
||||
2.15.0
|
||||
|
||||
Reference in New Issue
Block a user