template 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Template file for 'blender'
  2. pkgname=blender
  3. version=2.90.1
  4. revision=1
  5. archs="x86_64* ppc64*"
  6. build_style="cmake"
  7. pycompile_dirs="/usr/share/blender/${version%.*}/scripts"
  8. configure_args="-DWITH_INSTALL_PORTABLE=OFF -DWITH_PYTHON_INSTALL=OFF
  9. -DWITH_JACK=ON -DWITH_CODEC_FFMPEG=ON -DWITH_CODEC_SNDFILE=ON -DWITH_OPENMP=ON
  10. -DWITH_FFTW3=ON -DWITH_MOD_OCEANSIM=ON -DWITH_CYCLES_EMBREE=OFF -DWITH_OPENCOLORIO=ON
  11. -DWITH_IMAGE_OPENEXR=ON -DWITH_IMAGE_OPENJPEG=ON -DWITH_OPENSUBDIV=ON
  12. -DWITH_OPENCOLLADA=ON -DWITH_SYSTEM_GLEW=ON -DWITH_OPENVDB=ON -DWITH_ALEMBIC=ON
  13. -DWITH_BUILDINFO=OFF -DPYTHON_VERSION=$py3_ver -DPYTHON_LIBPATH=/usr/lib
  14. -DPYTHON_LIBRARY='python${py3_ver}${py3_abiver}'
  15. -DPYTHON_INCLUDE_DIRS=/$py3_inc"
  16. makedepends="libgomp-devel libpng-devel tiff-devel python3-devel glu-devel
  17. glew-devel freetype-devel jack-devel libopenal-devel libsndfile-devel
  18. libsamplerate-devel ffmpeg-devel fftw-devel boost-devel pcre-devel llvm
  19. libopenexr-devel libopenjpeg2-devel libXi-devel openimageio-devel
  20. opencolorio-devel opencollada-devel python3-numpy libXrender-devel
  21. OpenSubdiv-devel tbb-devel libxml2-devel openvdb-devel alembic-devel"
  22. depends="desktop-file-utils hicolor-icon-theme"
  23. short_desc="3D graphics creation suite"
  24. maintainer="Enno Boland <gottox@voidlinux.org>"
  25. license="GPL-2.0-or-later"
  26. homepage="http://www.blender.org"
  27. distfiles="http://download.blender.org/source/${pkgname}-${version}.tar.xz"
  28. checksum=e78dcc946c823ad1bd89bcc6938fc6b375540ec3eff58649586acf1f6a653d99
  29. python_version=3
  30. patch_args="-Np1"
  31. case "$XBPS_TARGET_MACHINE" in
  32. *-musl) ;;
  33. *) makedepends+=" jemalloc-devel" ;;
  34. esac
  35. case "$XBPS_TARGET_MACHINE" in
  36. x86_64*)
  37. # Enable Intel Open Image Denoise on x86_64
  38. makedepends+=" openimagedenoise-devel"
  39. configure_args+=" -DWITH_OPENIMAGEDENOISE=ON"
  40. ;;
  41. esac
  42. # Liberation: Change BUILD_PLATFORM value
  43. # Some code has been taken from:
  44. # https://git.parabola.nu/abslibre.git/tree/libre/blender/PKGBUILD
  45. post_patch() {
  46. # fix OS Name (pedantic, I know)
  47. sed -i 's|BUILD_PLATFORM;|"GNU/Linux-libre";|' 'source/creator/buildinfo.c'
  48. }