mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-24 17:18:51 +02:00
blender: added WIP recipe for version 2.74
* missing: malloc_usable_size().
This commit is contained in:
69
media-gfx/blender/blender-2.74.recipe
Normal file
69
media-gfx/blender/blender-2.74.recipe
Normal file
@@ -0,0 +1,69 @@
|
||||
SUMMARY="3D Creation/Animation/Publishing System"
|
||||
DESCRIPTION="
|
||||
Blender is the free and open source 3D creation suite. It supports the entirety \
|
||||
of the 3D pipeline—modeling, rigging, animation, simulation, rendering, \
|
||||
compositing and motion tracking, even video editing and game creation. \
|
||||
Advanced users employ Blender’s API for Python scripting to customize the \
|
||||
application and write specialized tools; often these are included in Blender’s \
|
||||
future releases. Blender is well suited to individuals and small studios who \
|
||||
benefit from its unified pipeline and responsive development process.
|
||||
"
|
||||
HOMEPAGE="http://www.blender.org"
|
||||
SRC_URI="http://download.blender.org/source/blender-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0ca3ceb6c656ae7c556f81ab0994e6aa7a6c64324824cbc94a87caf36f0a119d"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2002-2009 Blender Foundation"
|
||||
ARCHITECTURES="!x86 !x86_64"
|
||||
|
||||
PATCHES="blender-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
blender = $portVersion compat >= 2
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libglew$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libgl$secondaryArchSuffix
|
||||
devel:libglew$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python3
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build_haiku
|
||||
make $jobArgs BUILD_DIR=`pwd`/build_haiku \
|
||||
BUILD_CMAKE_ARGS="-DPYTHON_INCLUDE_DIR=/system/develop/headers/python3.4m/ \
|
||||
-DPYTHON_LIBRARY=/system/lib/python3.4/ -DWITH_CYCLES=OFF \
|
||||
-DWITH_BOOST=OFF"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
47
media-gfx/blender/patches/blender-2.74.patchset
Normal file
47
media-gfx/blender/patches/blender-2.74.patchset
Normal file
@@ -0,0 +1,47 @@
|
||||
From fef1204371b16fcaec1a2e3563910e38b036b104 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sat, 6 Jun 2015 10:06:04 +0000
|
||||
Subject: Haiku patch
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b52dd05..382c8a9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -183,7 +183,7 @@ endif()
|
||||
# Options
|
||||
|
||||
# First platform spesific non-cached vars
|
||||
-if(UNIX AND NOT APPLE)
|
||||
+if(UNIX AND NOT (APPLE OR HAIKU))
|
||||
set(WITH_X11 ON)
|
||||
endif()
|
||||
|
||||
diff --git a/extern/libmv/third_party/glog/src/config.h b/extern/libmv/third_party/glog/src/config.h
|
||||
index f5c9c0b..2703b7b 100644
|
||||
--- a/extern/libmv/third_party/glog/src/config.h
|
||||
+++ b/extern/libmv/third_party/glog/src/config.h
|
||||
@@ -14,4 +14,6 @@
|
||||
#include "windows/config.h"
|
||||
#elif defined(__GNU__)
|
||||
#include "config_hurd.h"
|
||||
+#elif defined(__HAIKU__)
|
||||
+ #include "config_haiku.h"
|
||||
#endif
|
||||
diff --git a/intern/guardedalloc/intern/mallocn_intern.h b/intern/guardedalloc/intern/mallocn_intern.h
|
||||
index 6cab1f0..95dcf55 100644
|
||||
--- a/intern/guardedalloc/intern/mallocn_intern.h
|
||||
+++ b/intern/guardedalloc/intern/mallocn_intern.h
|
||||
@@ -62,6 +62,9 @@
|
||||
#elif defined(WIN32)
|
||||
# include <malloc.h>
|
||||
# define malloc_usable_size _msize
|
||||
+#elif defined(__HAIKU__)
|
||||
+# include <malloc.h>
|
||||
+size_t malloc_usable_size(void *ptr);
|
||||
#else
|
||||
# error "We don't know how to use malloc_usable_size on your platform"
|
||||
#endif
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user