mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
OpenSubdiv: bump (#4178)
This commit is contained in:
@@ -1,113 +0,0 @@
|
||||
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_FILENAME="opensubdiv-$portVersion.tar.gz"
|
||||
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:libglew$secondaryArchSuffix
|
||||
lib:libglu$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:libglew$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libgomp$secondaryArchSuffix
|
||||
devel:libtbb$secondaryArchSuffix
|
||||
devel:libtbbmalloc$secondaryArchSuffix
|
||||
devel:libtbbmalloc_proxy$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
defineDebugInfoPackage opensubdiv$secondaryArchSuffix \
|
||||
$libDir/libosdCPU.so.$libVersion \
|
||||
$libDir/libosdGPU.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
export GLEW_LOCATION="$portPackageLinksDir/devel~libglew/$relativeDevelopDir/"
|
||||
export GLEW_INC_LOCATION="$portPackageLinksDir/devel~libglew/$relativeIncludeDir/"
|
||||
|
||||
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
|
||||
}
|
||||
@@ -9,7 +9,7 @@ COPYRIGHT="2013-2018 Pixar"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${portVersion//\./_}.tar.gz"
|
||||
CHECKSUM_SHA256="2dc81b3a085e692cca3166ac88751e4674a9ddf5b5d7935adf677bb2bd3f2d2f"
|
||||
CHECKSUM_SHA256="d932b292f83371c7518960b2135c7a5b931efb43cdd8720e0b27268a698973e4"
|
||||
SOURCE_FILENAME="opensubdiv-$portVersion.tar.gz"
|
||||
SOURCE_DIR="OpenSubdiv-${portVersion//\./_}"
|
||||
PATCHES="opensubdiv-$portVersion.patchset"
|
||||
@@ -44,6 +44,19 @@ REQUIRES="
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_tools="
|
||||
opensubdiv${secondaryArchSuffix}_tools = $portVersion
|
||||
cmd:far_perf
|
||||
cmd:far_regression
|
||||
cmd:hbr_baseline
|
||||
cmd:hbr_regression
|
||||
cmd:stringify
|
||||
"
|
||||
REQUIRES_tools="
|
||||
opensubdiv$secondaryArchSuffix == $portVersion
|
||||
$REQUIRES
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
opensubdiv${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libosdCPU$secondaryArchSuffix = $libVersionCompat
|
||||
@@ -106,6 +119,7 @@ INSTALL()
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries tools $binDir
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
From 0bd024622a84da627e47b0fbc0da26359f7e2e79 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: Platform fixes
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3920896..254a4db 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -337,7 +337,7 @@ endif()
|
||||
if(NOT NO_CUDA)
|
||||
find_package(CUDA 4.0)
|
||||
endif()
|
||||
-if(NOT NO_GLFW AND NOT NO_OPENGL AND NOT ANDROID AND NOT IOS)
|
||||
+if(NOT NO_GLFW AND NOT NO_OPENGL AND NOT ANDROID AND NOT IOS AND NOT HAIKU)
|
||||
find_package(GLFW 3.0.0)
|
||||
endif()
|
||||
if(NOT NO_PTEX)
|
||||
--
|
||||
2.16.1
|
||||
|
||||
|
||||
From da6fa9031b56dada1b92902b38c50b90e2b5f4f8 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Sat, 30 Dec 2017 19:18:39 +0100
|
||||
Subject: GLEW detection
|
||||
|
||||
|
||||
diff --git a/cmake/FindGLEW.cmake b/cmake/FindGLEW.cmake
|
||||
index 6fa8e89..bcd5252 100644
|
||||
--- a/cmake/FindGLEW.cmake
|
||||
+++ b/cmake/FindGLEW.cmake
|
||||
@@ -73,6 +73,7 @@ if (${CMAKE_HOST_UNIX})
|
||||
HINTS
|
||||
"${GLEW_LOCATION}/include"
|
||||
"$ENV{GLEW_LOCATION}/include"
|
||||
+ "$ENV{GLEW_INC_LOCATION}"
|
||||
PATHS
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
--
|
||||
2.16.1
|
||||
|
||||
Reference in New Issue
Block a user