1 # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Contributor: XercesBlue (nullfied)
3 # Contributor: Mikael Eriksson (miffe)
4 # Maintainer: N30N <archlinux@alunamation.com>
5 # Contributor: miffe <mikael_eriksson@miffe.org>
7 pkgname="blender-cycles-svn"
10 arch=("i686" "x86_64")
11 url="http://blender.org/"
12 depends=("desktop-file-utils" "hicolor-icon-theme" "python" "ffmpeg" "fftw" \
13 "libsndfile" "openimageio-git")
14 makedepends=("subversion" "cmake" "sdl" "openal" "jack" "boost")
15 optdepends=("sdl: as your audio backend" \
16 "openal: as your audio backend" \
17 "jack: as your audio backend" \
18 "cuda-toolkit: for GPU rendering")
23 install="blender.install"
32 "blender-freestyle-svn")
33 _svnmod="soc-2008-mxcurioni"
36 pkgdesc="SVN version of Blender"
38 _svntrunk="https://svn.blender.org/svnroot/bf-blender/trunk/blender"
42 if [ -z "${_svntrunk}" ]; then
43 pkgdesc="${_svnmod} SVN branch of Blender"
44 _svntrunk="https://svn.blender.org/svnroot/bf-blender/branches/${_svnmod}"
48 msg "Connecting to SVN server..."
49 if [ -d "${_svnmod}/.svn" ]; then
50 (cd "${_svnmod}" && svn up -r "${pkgver}")
52 svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
54 msg "SVN checkout done or server timeout"
56 [ -d build ] && rm -rf build
60 if [ "${CC-gcc}" = "gcc" ]; then
62 CFLAGS="${CFLAGS} -ffast-math" \
63 CXXFLAGS="${CXXFLAGS} -ffast-math"
67 -DCMAKE_VERBOSE_MAKEFILE="OFF" \
68 -DCMAKE_INSTALL_PREFIX="/usr" \
69 -DPYTHON_VERSION="$(python3 -V 2>&1 | sed -r "s/^.+\s(3\.[0-9]).*$/\1/")" \
70 -DWITH_PYTHON_INSTALL="OFF" \
71 -DWITH_INSTALL_PORTABLE="OFF" \
73 -DWITH_CODEC_FFMPEG="ON" \
76 -DWITH_CODEC_SNDFILE="ON" \
77 -DWITH_OPENCOLLADA="OFF" \
78 -DWITH_MEM_JEMALLOC="OFF" \
79 -DWITH_CYCLES_CUDA_BINARIES="OFF" \
80 -DCUDA_TOOLKIT_INCLUDE="/usr/include/cuda" \
81 -DCYCLES_CUDA_BINARIES_ARCH="sm_10;sm_11;sm_12;sm_13;sm_20;sm_21" \
85 make DESTDIR="${pkgdir}" install
88 # vim: set noet ff=unix: