50 lines
2.0 KiB
Bash
50 lines
2.0 KiB
Bash
# Template file for 'blender'
|
|
pkgname=blender
|
|
version=3.0.0
|
|
revision=4
|
|
archs="x86_64* ppc64*"
|
|
build_style="cmake"
|
|
pycompile_dirs="/usr/share/blender/${version%.*}/scripts"
|
|
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_EMBREE=OFF -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_ALEMBIC=ON
|
|
-DWITH_BUILDINFO=OFF -DPYTHON_VERSION=$py3_ver -DPYTHON_LIBPATH=/usr/lib
|
|
-DPYTHON_LIBRARY='python${py3_ver}${py3_abiver}'
|
|
-DPYTHON_INCLUDE_DIRS=/$py3_inc"
|
|
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 alembic-devel
|
|
pugixml-devel libXxf86vm-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="3D graphics creation suite"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.blender.org"
|
|
distfiles="https://download.blender.org/source/blender-${version}.tar.xz"
|
|
checksum=50f0f32bcdf8825a12ba5c8d853b6e6c6b2da65ef01e858ea5900a06cccbf1cb
|
|
python_version=3
|
|
CXXFLAGS="-DNDEBUG"
|
|
CFLAGS="$CXXFLAGS"
|
|
LDFLAGS="-Wl,-z,stack-size=2097152"
|
|
# Blender tests are executed against a system installation of blender. This
|
|
# is currently not supported by xbps-src.
|
|
make_check=no
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) ;;
|
|
*) 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
|