1DOLLY 82PACKAGE blender3REQUIRES HOST runtime@04REQUIRES HOST display@05REQUIRES HOST input@06REQUIRES HOST gpu@07REQUIRES HOST clipboard@08REQUIRES HOST dso@09REQUIRES HOST http@010REQUIRES HOST sockets@011REQUIRES HOST threads@01213# Blender 5.3.0 from upstream's release archive, built by its own CMake14# project inside Dolly: its window on the page, and `blender -b` with its15# Python (the python package's CPython 3.14) and Cycles on the CPU.16# blender-dolly.patch names Dolly's files to the build and adds their enum17# values; the archive places them (prepare-sources.sh).18# - blender_lite.cmake, upstream's configuration with every optional library19#   off, then Cycles and pugixml (OpenImageIO's static library needs it) on.20# - WITH_GHOST_DOLLY: the window system is ghost/GHOST_SystemDolly, on21#   display@0, input@0 and clipboard@0. WITH_WEBGPU_BACKEND: the GPU module22#   draws through webgpu/ on gpu@0, with the glslang and23#   spirv-wgsl packages; no OpenGL or Vulkan backend.24# - Dolly claims no x86 or ARM: Cycles builds its scalar kernel and its own25#   BVH (Embree off, as in the lite configuration).26# - PYTHON_LINKFLAGS, by default ELF's -Xlinker -export-dynamic: -rdynamic,27#   what libpython's built-in modules link, and cc --dolly-cast-emulation,28#   since Blender defines Python methods taking no arguments with one29#   parameter, which CPython calls with two. Such a program loads only30#   extension modules linked so too: Blender's NumPy (below).31# - Brotli for FreeType, which Blender puts on the link line only with its32#   precompiled libraries.33FROM /demos/blender/Dollyfile-blender-deps abcb411dbd674d4c64c224f8ab18f422d84fe090dd5ea92d54406f3007f9d81134INSTALL /demos/python/Dollyfile-python caf80d3cd27594e1ed0bc4bbd8d586359be411b6f5328e5d3fe89c4a6951576f35USE /demos/godot/Dollyfile-spirv-wgsl a61eb044758180b58a2f24b5563b5a3a1c5df282752bf6d065862132d873aab336USE /Dollyfile-libdolly-gpu e3d09def5ec1b5113da429c6165bc288646fbd48dda2bdb6471e22e2d8867b3f37USE /Dollyfile-libdolly-display afbf05e4d39eda376f6195f86762fb635a3effb3f2e5414ef1ffa70b298af91938USE /Dollyfile-libdolly-input 22d9db2a107fd5721f70d9662921b2e3fd9432549056e9e27e0ee36e6a898c8439USE /Dollyfile-libdolly-clipboard 99746a8bd9b9eb136098753ccc526ac94a14540e6d26082ae8748eb6e3fa08a640REQUIRES TOOL cmake41REQUIRES TOOL make42REQUIRES TOOL patch43REQUIRES TOOL pip44REQUIRES TOOL python345REQUIRES TOOL wasm-opt46REQUIRES TOOL mkdir4748# NumPy, which the glTF add-on and others import, as Blender's own releases49# carry it: built as the numpy package's (demos/python) and linked with cc50# --dolly-cast-emulation, into Blender's scripts/modules, which its Python51# searches before python's site-packages, where the numpy package serves python.52USE /demos/tools/Dollyfile-meson e388b70e271dd313d88f9ef1de369f9dde67e1598f77f56bb15fb89eaebb447f53SOURCE /dist/static/python-data/numpy-2.5.4.tar.gz 9a94cf751c9ad8ebaa835bcd3d40dacf8534ad086b88c38029b65123c7999d2a /tmp/numpy/numpy-2.5.4.tar.gz54SOURCE /dist/static/python-data/meson_python-0.22.1-py3-none-any.whl 258fde948cf45aab5df23fcc9e17a9050ee73d4e1002fe6cf86519f61c414778 /tmp/numpy/meson_python-0.22.1-py3-none-any.whl55SOURCE /dist/static/python-data/cython-3.3.1-py3-none-any.whl 61abc7feedd20dac6c4ff7ab3a30e17136a067b242ab9253e2b4a6d9a72c2b61 /tmp/numpy/cython-3.3.1-py3-none-any.whl56SOURCE /dist/static/python-data/pyproject_metadata-0.12.1-py3-none-any.whl f7162d580a96386a8eb096da06215f981f547d1490f03055ef99e323bc2da427 /tmp/numpy/pyproject_metadata-0.12.1-py3-none-any.whl57SOURCE /dist/static/python-data/packaging-26.3-py3-none-any.whl d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c /tmp/numpy/packaging-26.3-py3-none-any.whl58SLOP pip install --no-index --no-deps --no-compile --find-links /tmp/numpy meson-python cython pyproject-metadata packaging59SLOP LDFLAGS=--dolly-cast-emulation pip install --no-index --no-build-isolation --no-deps --no-compile --no-cache-dir \60  --root /tmp/numpy/root /tmp/numpy/numpy-2.5.4.tar.gz61SLOP mkdir -p /usr/share/blender/5.3/scripts/modules62SLOP CWD /tmp/numpy/root/usr/lib/python3.14/site-packages cp -R numpy numpy-2.5.4.dist-info /usr/share/blender/5.3/scripts/modules63SLOP rm -rf /tmp/numpy6465SOURCE /dist/static/blender/blender.tar.gz 5e7a49c109b58004f1361b6c88882114e4e0694842d68f3a9270733d42d03571 /tmp/blender.tar.gz66SLOP gzip -dc /tmp/blender.tar.gz | tar -xf - -C /67SLOP rm /tmp/blender.tar.gz68SLOP CWD /tmp/blender/source patch -p1 -i /tmp/blender/blender-dolly.patch69SLOP time cmake -S /tmp/blender/source -B /tmp/blender/build \70  -C /tmp/blender/source/build_files/cmake/config/blender_lite.cmake \71  -DCMAKE_SYSTEM_NAME=Dolly -DCMAKE_SYSTEM_PROCESSOR=wasm64 -DCMAKE_BUILD_TYPE=Release \72  -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \73  -DCMAKE_C_FLAGS=-pthread -DCMAKE_CXX_FLAGS=-pthread \74  "-DPYTHON_LINKFLAGS=-rdynamic --dolly-cast-emulation -lffi -llzma -lbz2 -lsqlite3 -lcurl -L/usr/lib/python3.14/embed -lpyexpat -lHacl_Hash_BLAKE2 -lHacl_Hash_MD5 -lHacl_Hash_SHA1 -lHacl_Hash_SHA2 -lHacl_Hash_SHA3" \75  "-DCMAKE_EXE_LINKER_FLAGS=-lbrotlidec -lbrotlicommon" \76  -DWITH_HEADLESS=OFF -DWITH_GHOST_DOLLY=ON -DWITH_GHOST_WAYLAND=OFF -DWITH_GHOST_X11=OFF -DWITH_GHOST_SDL=OFF \77  -DWITH_OPENGL_BACKEND=OFF -DWITH_VULKAN_BACKEND=OFF -DWITH_WEBGPU_BACKEND=ON \78  -DWITH_INPUT_NDOF=OFF -DWITH_INPUT_IME=OFF -DWITH_XR_OPENXR=OFF \79  -DWITH_CYCLES=ON -DWITH_TBB=ON -DWITH_PUGIXML=ON -DWITH_ASSERT_RELEASE=OFF \80  -DPYTHON_VERSION=3.14 -DWITH_PYTHON_INSTALL=OFF -DWITH_INSTALL_PORTABLE=OFF \81  -DWITH_LIBS_PRECOMPILED=OFF -DWITH_LINKER_LLD=OFF -DWITH_LINKER_MOLD=OFF -DWITH_COMPILER_CCACHE=OFF \82  -DWITH_DOC_MANPAGE=OFF -DWITH_CPU_CHECK=OFF -DWITH_GTESTS=OFF83SLOP time make -C /tmp/blender/build -j484SLOP cmake --install /tmp/blender/build8586# Its Python with NumPy, the default scene, and that scene rendered by Cycles to a PNG.87SLOP CWD /tmp test "$(blender -b --python-expr 'import bpy, sys, numpy; print("check", bpy.app.version_string, sys.platform, numpy.__version__, [o.name for o in bpy.data.objects])' | grep check)" = \88  "check 5.3.0 dolly 2.5.4 ['Camera', 'Cube', 'Light']"89FILE /tmp/blender/render.py90    import bpy91    scene = bpy.context.scene92    scene.render.engine = "CYCLES"93    scene.cycles.samples = 494    scene.render.resolution_percentage = 1095    scene.render.filepath = "/tmp/blender/render.png"96    bpy.ops.render.render(write_still=True)97SLOP CWD /tmp time blender -b --python /tmp/blender/render.py98SLOP test -s /tmp/blender/render.png99100EXPORTS TOOL blender101FOLDER /usr/share/blender102FOLDER /usr/share/doc/blender103# The licences of what is linked into the program: Blender's (its own notices104# are in /usr/share/doc/blender/license) and those of the packages it links.105# libpython's are the python package's.106SLOP mkdir -p /usr/share/licenses/blender107SLOP cp /tmp/blender/source/COPYING /usr/share/licenses/blender/COPYING108SLOP CWD /usr/share/licenses cp -R zlib libpng zstd freetype brotli libjpeg-turbo libtiff expat fmt imath libdeflate \109  openjph openexr robin-map pugixml yaml-cpp pystring minizip-ng opencolorio openimageio onetbb eigen libepoxy glslang \110  /usr/share/licenses/blender111FOLDER /usr/share/licenses/blender112SLOP blender --help > /usr/share/man/cat1/blender.1113FILE /usr/share/man/cat1/blender.1114