mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
95 lines
2.8 KiB
Bash
95 lines
2.8 KiB
Bash
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"
|
||
SOURCE_URI="http://download.blender.org/source/blender-$portVersion.tar.gz"
|
||
CHECKSUM_SHA256="5b99649a89bdcd53bef8e668fbf2be5b3e9611f52f9e9c5f7e7c814c778e5835"
|
||
REVISION="1"
|
||
LICENSE="GNU GPL v2"
|
||
COPYRIGHT="2002-2009 Blender Foundation"
|
||
ARCHITECTURES="!x86 x86_64"
|
||
PYTHON_VERSION="3.5"
|
||
|
||
PATCHES="blender-$portVersion.patchset"
|
||
|
||
PROVIDES="
|
||
blender = $portVersion compat >= 2
|
||
cmd:blender
|
||
cmd:blender_thumbnailer.py
|
||
"
|
||
|
||
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
|
||
lib:libopenimageio$secondaryArchSuffix
|
||
lib:libpython${PYTHON_VERSION}m$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
|
||
devel:libopenimageio$secondaryArchSuffix
|
||
devel:libpython${PYTHON_VERSION}m$secondaryArchSuffix
|
||
"
|
||
|
||
BUILD_PREREQUIRES="
|
||
python3_numpy
|
||
python3_requests
|
||
cmd:python${PYTHON_VERSION}
|
||
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/python${PYTHON_VERSION}m/ \
|
||
-DPYTHON_LIBRARY=/system/lib/libpython${PYTHON_VERSION}m.so.1.0 \
|
||
-DPYTHON_EXECUTABLE=/bin/python${PYTHON_VERSION} \
|
||
-DWITH_CYCLES=OFF \
|
||
-DWITH_BOOST=OFF \
|
||
-DWITH_PYTHON_INSTALL=OFF \
|
||
-DWITH_PYTHON_INSTALL_NUMPY=OFF \
|
||
-DWITH_PYTHON_INSTALL_REQUESTS=OFF \
|
||
-DCMAKE_INSTALL_PREFIX:PATH=$prefix"
|
||
}
|
||
|
||
INSTALL()
|
||
{
|
||
cd build_haiku
|
||
make install
|
||
|
||
mkdir -p $binDir $dataDir $docDir $appsDir
|
||
mv $prefix/blender $prefix/blender-thumbnailer.py $binDir/
|
||
mv $prefix/GPL-license.txt $prefix/LICENSE-bfont.ttf.txt \
|
||
$prefix/Python-license.txt $prefix/copyright.txt $prefix/readme.html \
|
||
$prefix/blender.svg $docDir
|
||
mv $prefix/$portVersion/* $dataDir/
|
||
mv $prefix/blender.desktop $appsDir/
|
||
rmdir $prefix/$portVersion
|
||
}
|