void-packages/srcpkgs/blender/template
2020-06-11 14:44:33 +02:00

62 lines
1.8 KiB
Bash

# Template file for 'blender'
pkgname=blender
version=2.83.0
revision=1
build_style="cmake"
makedepends="
libgomp-devel libpng-devel tiff-devel python3-devel glu-devel
glew-devel freetype-devel jack-devel libopenal-devel libsndfile-devel
libsamplerate-devel ffmpeg-devel fftw-devel boost-devel pcre-devel llvm
libopenexr-devel libopenjpeg2-devel libXi-devel openimageio-devel
opencolorio-devel opencollada-devel python3-numpy libXrender-devel
OpenSubdiv-devel tbb-devel libxml2-devel openvdb-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="3D graphics creation suite"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.blender.org"
distfiles="http://download.blender.org/source/${pkgname}-${version}.tar.xz"
checksum=14e2bc85e076b12ae94438ff3c1dd417eba642840ed32d7c979724a93aa93f1f
patch_args="-Np1"
python_version=3
pycompile_dirs="/usr/share/blender/$version/scripts"
archs="x86_64* i686* ppc64*"
configure_args="
-DWITH_INSTALL_PORTABLE=OFF
-DWITH_PYTHON_INSTALL=OFF
-DWITH_JACK=ON
-DWITH_CODEC_FFMPEG=ON
-DWITH_CODEC_SNDFILE=ON
-DWITH_OPENMP=ON
-DWITH_FFTW3=ON
-DWITH_MOD_OCEANSIM=ON
-DWITH_CYCLES=ON
-DWITH_OPENCOLORIO=ON
-DWITH_IMAGE_OPENEXR=ON
-DWITH_IMAGE_OPENJPEG=ON
-DWITH_OPENSUBDIV=ON
-DWITH_OPENCOLLADA=ON
-DWITH_SYSTEM_GLEW=ON
-DWITH_OPENVDB=ON
-DWITH_BUILDINFO=OFF
-DPYTHON_VERSION=$py3_ver
-DPYTHON_LIBPATH=/usr/lib
-DPYTHON_LIBRARY='python${py3_ver}${py3_abiver}'
-DPYTHON_INCLUDE_DIRS=$py3_inc"
case "$XBPS_TARGET_MACHINE" in
*-musl) # crashes at startup in jemallocs free()
;;
*) makedepends+=" jemalloc-devel"
;;
esac
case "$XBPS_TARGET_MACHINE" in
x86_64*)
# Enable Intel Open Image Denoise on x86_64
makedepends+=" openimagedenoise-devel"
configure_args+=" -DWITH_OPENIMAGEDENOISE=ON"
;;
esac