Browse Source

graphics/Blender: Use system glew & eigen3. Update README

Signed-off-by: Christoph Willing <chris.willing@linux.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/303/head
Christoph Willing 4 months ago
committed by Willy Sudiarto Raharjo
parent
commit
bfd857f40c
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 15
      graphics/Blender/Blender.SlackBuild
  2. 2
      graphics/Blender/Blender.info
  3. 14
      graphics/Blender/README
  4. 45
      graphics/Blender/README.Slackware

15
graphics/Blender/Blender.SlackBuild

@ -31,7 +31,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=Blender
VERSION=${VERSION:-3.3.10}
BUILD=${BUILD:-4}
BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -87,6 +87,12 @@ if [ -d /usr/include/embree3 -a "${EMBREE:-yes}" = "yes" ]; then
embree="-DWITH_CYCLES_EMBREE=ON"
fi
openusd=""
if [ -d opt/OpenUSD/bin ]; then
# Since OpenUSD is installed, assume we want to use it
openusd="-DUSD_INCLUDE_DIR:PATH=/opt/OpenUSD/include -DUSD_LIBRARY:PATH=/opt/OpenUSD/lib"
fi
set -e
rm -rf $PKG
@ -110,7 +116,7 @@ mkdir -p build
cd build
cmake ../ \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS $(pkg-config --cflags-only-I python-$PYTHON_VERSION)" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_INSTALL_PORTABLE:BOOL=OFF \
-DWITH_BUILDINFO:BOOL=ON \
@ -124,11 +130,12 @@ cd build
-DWITH_JACK:BOOL=ON \
-DWITH_JACK_DYNLOAD:BOOL=ON \
-DPYTHON_LIBPATH:PATH=/usr/lib${LIBDIRSUFFIX} \
$openusd \
-DWITH_CODEC_SNDFILE:BOOL=ON \
-DWITH_FFTW3:BOOL=ON \
-DWITH_IMAGE_OPENJPEG:BOOL=ON \
-DWITH_SYSTEM_EIGEN3:BOOL=OFF \
-DWITH_SYSTEM_GLEW:BOOL=OFF \
-DWITH_SYSTEM_EIGEN3:BOOL=ON \
-DWITH_SYSTEM_GLEW:BOOL=ON \
-DWITH_SYSTEM_LZO:BOOL=ON \
-DWITH_MEM_JEMALLOC:BOOL=ON \
-DWITH_MEM_VALGRIND:BOOL=ON \

2
graphics/Blender/Blender.info

@ -5,6 +5,6 @@ DOWNLOAD="https://download.blender.org/source/blender-3.3.10.tar.xz"
MD5SUM="a190dbfc5dfd490d737ee64ba68ce79c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="potrace OpenSubdiv pugixml jack opencollada valgrind python3-numpy openimageio freealut"
REQUIRES="freealut jack opencollada openimageio OpenSubdiv potrace pugixml python3-numpy valgrind"
MAINTAINER="Christoph Willing"
EMAIL="chris.willing@linux.com"

14
graphics/Blender/README

@ -7,6 +7,11 @@ range of essential tools for the creation of 3D content, including
modeling, uv-mapping, texturing, particle and other simulation,
scripting, rendering, compositing, post-production and game creation.
Installation of Blender and its dependent packages implies disk usage
approaching 750M. This can increase dramatically with the inclusion of
various optional dependencies. For instance, if libheif and openvdb
packages are added (see below) the installation size is 1,735.41 MB.
CUDA support is included if cudatoolkit is installed.
It may be disabled by passing CUDA=no when building:
CUDA=no bash ./Blender.SlackBuild
@ -35,6 +40,15 @@ it will be automatically detected and incorporated when Blender is built.
Due to an unresolved issue with the current OSL version, generation of
the blender manpage is suppressed when OSL is detected.
Support for HEIF and AVIF image file formats are available through
optional inclusion of the libheif package when building openimageio.
This adds approximately 775M to the size of the Blender installation.
Management and tools for manipulation and storage of "volumetric data",
such as fog, clouds and "point cloud" in scientific data are available
through optional inclusion of the openvdb package when building
openimagio. This adds just over 250M to the total size of the Blender
installation.
This SlackBuild builds Blender from source code. For Slackware 15.0,
due to its Python 3 version of 3.9.17, the Blender version to be built

45
graphics/Blender/README.Slackware

@ -3,20 +3,31 @@ an existing binary version. The process is therefore more complex and
time consuming but allows finer tuning of capabilities of the resulting
package. Working through the prerequisite packages from the REQUIRES field
of Blender.info results in the following basic build order:
libraries/libaec
development/python3-numpy
graphics/OpenSubdiv
graphics/opencollada
libraries/freealut
libraries/tbb
audio/jack
libraries/robin-map
libraries/hdf5
python/pybind11
graphics/opencolorio
development/valgrind
libraries/pugixml
graphics/potrace
libraries/dcmtk
graphics/openimageio
graphics/Blender
libraries/libaec
graphics/opencollada
libraries/yaml-cpp
libraries/ptex
graphics/potrace
libraries/tbb
libraries/dcmtk
development/valgrind
python/python3-flit_core
libraries/robin-map
python/python3-installer
libraries/freealut
libraries/hdf5
graphics/OpenSubdiv
python/python3-wheel
python/python3-pyproject-hooks
libraries/pugixml
python/python3-build
python/python3-pyproject-metadata
python/python3-meson-opt
python/python3-packaging-opt
python/pybind11
python/python3-mesonpy
audio/jack
graphics/opencolorio
development/python3-numpy
graphics/openimageio
graphics/Blender
Loading…
Cancel
Save