<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f50f9e44d2abb16979254cc89e11829c06b132fe">https://github.com/macports/macports-ports/commit/f50f9e44d2abb16979254cc89e11829c06b132fe</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new f50f9e44d2a blender: new port
</span>f50f9e44d2a is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f50f9e44d2abb16979254cc89e11829c06b132fe
</span>Author: Jason Liu <jasonliu--@users.noreply.github.com>
AuthorDate: Wed Aug 26 11:43:08 2020 -0400
<span style='display:block; white-space:pre;color:#404040;'> blender: new port
</span>---
graphics/blender/Portfile | 274 +++++++++++++++++
.../files/old_appkit_compat/AppKit/AppKit.h | 273 +++++++++++++++++
.../blender/files/patch-macports-libs-creator.diff | 49 ++++
.../files/patch-macports-libs-platform_apple.diff | 324 +++++++++++++++++++++
.../blender/files/patch-manpage-for-apple.diff | 24 ++
graphics/blender/files/patch-unix-or-apple.diff | 69 +++++
6 files changed, 1013 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/blender/Portfile b/graphics/blender/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8d5fe088ac3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/blender/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,274 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name blender
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.82a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories graphics multimedia
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers @jasonliu--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.blender.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description 3-D computer graphics creation suite
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Blender is a ${description}. It contains a set of \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tools that can be used for all phases of the 3-D \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ computer graphics pipeline, including modeling, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sculpting, texturing, rigging, animation, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ simulation, rendering, compositing, motion \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tracking, and video editing. It can be used for \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ creating animated films, visual effects, art, 3-D \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ printing, motion graphics, interactive 3-D \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ applications, and computer games.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://download.blender.org/source/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_xz yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 477b18c4d51ed6e5214158f1438c2c9a4317b2e7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 4de00030201d14e98cce3d3ed61b3c72267fb07dbd46ba779dc261a3d56beba3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 39890216
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# We need to blacklist Xcode Clang/LLVM, because Blender needs to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# use tools such as llvm-config, which are not included in Xcode.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# (llvm-config is needed because Blender links to libLLVM. libLLVM is
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# also not included in Xcode.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# (Reference: https://stackoverflow.com/questions/32959627/where-is-the-system-llvm-config-on-macos)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist clang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Even though we need to blacklist Xcode Clang/LLVM, we still need to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# make the rest of Xcode available to the build system. If we don't set
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# use_xcode to yes, then the build will fail, because Blender's CMake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# scripts still need to use other parts of Xcode (e.g., the xcodebuild
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# command) besides just Xcode Clang.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_xcode yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.install_prefix ${applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver 3.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver_nodot [string map {. {}} ${py_ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:python${py_ver_nodot} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openal-soft \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:alembic \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:opensubdiv \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:jack \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsndfile \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:fftw-3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:freetype \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openexr \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:ffmpeg \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:opencollada \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pcre \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsdl2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libpng \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openjpeg \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:tiff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:boost \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openimageio \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:opencolorio \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openvdb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:osl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:embree \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:oidn \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:tbb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libomp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:glew \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:eigen3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:lzo2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Get the version number of Clang that the MacPorts build system is
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# using. We will be telling CMake to use the same version of LLVM.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+regexp {clang-mp-([0-9]+(?:\.[0-9]+)*)} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${configure.cc} result llvm_version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Blender links to libLLVM, so we need to add port:llvm as a dependency
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:llvm-$llvm_version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-macports-libs-creator.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-macports-libs-platform_apple.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-unix-or-apple.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Don't really know why Blender does things this way, but if
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # these directories don't exist ahead of time, MacPorts'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # configure phase will fail.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${workpath}/lib/tests/render/shader
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${workpath}/build/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/release/darwin/Blender.app \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/build/bin/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Make it so that Blender is able to build Ceres Solver using the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # MacPorts eigen3 library.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Note: Even though Ceres Solver is available through MacPorts, we
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # probably can't use it when building Blender. Unlike the other
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # third-party libraries that Blender uses, where Blender provides a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # relatively convenient way in its various CMake files to specify a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # path pointing to where those libraries live (thus making them
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # re-targetable), one very noticeable absence is Ceres Solver.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Examining the compilation options specified by the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # add_definitions() in the file 'extern/ceres/CMakeLists.txt', it's
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # possible that Blender's own libmv library requires a Ceres Solver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # that has been compiled using a very specific set of options.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fs-traverse f ${worksrcpath}/extern/ceres {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file isfile $f]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q -E {s|(#include )"(Eigen/.*)"|\1<\2>|} $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use dynamic linking instead of static linking
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/intern/cycles/CMakeLists.txt \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/source/blender/compositor/CMakeLists.txt \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/_STATIC_/s/^/#/g" $f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Make it so that Blender is able to see the MacPorts libraries
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E {s|(include <SD)L.h|\1L2/SDL.h|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/extern/audaspace/plugins/sdl/SDLDevice.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E {s|(include )"(SDL2.*)"|\1<\2>|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/extern/sdlew/src/sdlew.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E {s|(include )"(SDL.h)"|\1<SDL2/\2>|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/source/blender/python/intern/bpy_app_sdl.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E {s|(include )"(openjpeg.h)"|\1<openjpeg-2.3/\2>|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/source/blender/imbuf/intern/jp2.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We already patch 'llvm-config' to be 'llvm-config-mp' using our
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # patchfiles. Here we are just adding a version number on the end.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach re [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|\(llvm-config-mp\)|\\1-$llvm_version|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|\(-lLLVM-\).*\"|\\1$llvm_version\"|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E $re \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/build_files/cmake/platform/platform_apple.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set platform_apple_xcode.cmake \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/build_files/cmake/platform/platform_apple_xcode.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Prevent Blender's CMake scripts from attempting to find the Xcode
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # version number using the xcodebuild command, since we are passing
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the Xcode version number to CMake using XCODE_VERSION below.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace {/unix makefile/,/unset.XCODE_VERS_BUILD_NR/s/^/#/g} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${platform_apple_xcode.cmake}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Prevent Blender's CMake scripts from attempting to set the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # MACOSX_DEPLOYMENT_TARGET. MacPorts base already sets this.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace {/if.CMAKE_OSX_DEPLOYMENT_TARGET/,$s/^/#/g} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${platform_apple_xcode.cmake}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} >= 18} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Prevent Blender's CMake scripts from setting a value for
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # CMAKE_OSX_SYSROOT. The MacPorts build system already sets a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # value for CMAKE_OSX_SYSROOT based on the value of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ${configure.sdkroot}. Prior to macOS 10.14, MacPorts base
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # leaves the value of ${configure.sdkroot} empty, which results
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # in MacPorts setting CMAKE_OSX_SYSROOT to have a value of '/'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Starting in macOS 10.14, Apple removed many headers from '/'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # This meant that MacPorts base had to generate a non-empty
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # value for ${configure.sdkroot}, because a CMAKE_OSX_SYSROOT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # pointing to '/' would now be an error.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Because MacPorts already sets a value for CMAKE_OSX_SYSROOT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # based on the value of ${configure.sdkroot}, and Blender's
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # CMake scripts are also setting a value for CMAKE_OSX_SYSROOT,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # this is causing the build phase to have compile commands with
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # two '-isysroot' flags. Even worse, the paths for the SDKs will
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # likely be different; e.g., MacPorts uses a path pointing to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the Command Line Tools with an SDK version of 10.14, while
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Blender's CMake scripts use a path pointing to Xcode.app with
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # an SDK version of 10.15. This will cause the build to fail,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # because it's quite common to have a situation where the SDK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # version of the Command Line Tools is different than the SDK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # version in Xcode.app. Using one set of tools or the other for
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the entirety of a build is fine, but trying to use pieces from
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # both will virtually guarantee a build to fail.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace {/set.CMAKE_OSX_SYSROOT.*OSX_SYSROOT_PREFIX/s/^/#/} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${platform_apple_xcode.cmake}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} < 16} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Add AppKit wrapper header to compiler library paths
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cflags-prepend -isystem ${filespath}/old_appkit_compat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-prepend -isystem ${filespath}/old_appkit_compat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.objcflags-prepend -isystem ${filespath}/old_appkit_compat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.objcxxflags-prepend -isystem ${filespath}/old_appkit_compat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Use of the name LIBDIR in the Blender source is not a very good one,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# since it doesn't actually point to the lib directory.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# vvvvvv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DLIBDIR=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DFRAMEWORK_SEARCH_PATHS=${frameworks_dir} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DXCODE_VERSION=${xcodeversion}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Tell CMake to generate more verbose output during the build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DCMAKE_VERBOSE_MAKEFILE=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Don't copy system Python into the blender install folder
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DWITH_PYTHON_INSTALL=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Build Blender using the "system" (or in our case,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# MacPorts) Python framework
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DWITH_PYTHON_FRAMEWORK=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Build Blender with support for runtime dynamic JACK libraries loading
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# (Note: We currently can't use this, because the port:jack port doesn't
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# generate a framework bundle, and in order to use runtime loading,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Blender needs to be compiled using -weak_framework or -weak_library.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#configure.args-append -DWITH_JACK_DYNLOAD=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Build Blender with support for runtime dynamic SDL libraries loading
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# (Note: This option apparently has a different meaning than the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# JACK_DYNLOAD option above, and has nothing to do with framework
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# bundles. Instead, it appears to enable an internal piece of Blender
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# that's referred to as the SDL extension wrangler (sdlew).)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DWITH_SDL_DYNLOAD=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Tell Blender to use these "system" (in our case, MacPorts) libraries
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DWITH_SYSTEM_GLEW=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_SYSTEM_EIGEN3=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_SYSTEM_LZO=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_SYSTEM_GFLAGS=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Make sure that an addons_contrib folder makes it into the final
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # distribution, even if it is empty.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set version.major [lindex [split ${version} .] 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ regexp {[0-9]+} [lindex [split ${version} .] 1] version.minor
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set addons_contrib_dir \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${applications_dir}/Blender.app/Contents/Resources/${version.major}.${version.minor}/scripts/addons_contrib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists $addons_contrib_dir]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d $addons_contrib_dir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.keepdirs-append $addons_contrib_dir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Create a symlink for command line use
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set blender_cli ${destroot}${prefix}/bin/blender
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists $blender_cli]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${applications_dir}/Blender.app/Contents/MacOS/Blender \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $blender_cli
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url https://www.blender.org/download/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex Download Blender (\\d+.\\d+(?:\[a-z\]+)*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant manpage description {Build manpage} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-manpage-for-apple.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PREFIX@@|${prefix}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/source/creator/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s/\(env python\)3/\\1${py_ver}/" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/doc/manpage/blender.1.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DWITH_DOC_MANPAGE=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants +manpage
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/blender/files/old_appkit_compat/AppKit/AppKit.h b/graphics/blender/files/old_appkit_compat/AppKit/AppKit.h
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..634e0575340
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/blender/files/old_appkit_compat/AppKit/AppKit.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,273 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Copyright (c) 2020 Jason Liu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Permission to use, copy, modify, and distribute this software for any
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * purpose with or without fee is hereby granted, provided that the above
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * copyright notice and this permission notice appear in all copies.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#ifndef _MACPORTS_APPKIT_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define _MACPORTS_APPKIT_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Compatibility mapping for old versions of AppKit. By using the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * mapping in this file, we can still compile newer versions of software
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * using older versions of Mac OS X.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Many AppKit enum constants were deprecated/renamed in macOS 10.12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Sierra in order to make naming more consistent. The directives in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * this wrapper file replace the old enum names in the system AppKit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * header files with the new ones, so that code that has been written
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * for newer versions of AppKit will still be able to be compiled on a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * system with a pre-10.12 AppKit SDK.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * References:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * * https://stackoverflow.com/a/44322273
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * * https://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00358.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * * https://github.com/qemu/qemu/commit/4ba967ad7454c08d7e01b047d34d0c3d98f2a10d#diff-1fdc5419bda303ee3f720fb8ccdab2c3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * * https://patchwork.kernel.org/patch/9697563/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Note that in the references cited above, the #define directives map
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * the new enum names to the old names. This is because their directives
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * are located in their own applications' source code files. However,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * our wrapper file performs the mapping in the opposite direction, and
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * replaces the old enum names with the new names. This is because our
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * file is patching the system AppKit header, instead of changing the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * application's source code to conform to an old system AppKit header.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Also, note that our file only fixes the Objective-C header file. It
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * does not affect the bridge metadata file (a.k.a. bridge support
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * file), so any software that uses RubyCocoa or PyObjC to access AppKit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * will likely still be broken. This is despite the fact that gathering
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * the list of enum names in our wrapper file was done by comparing the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * bridge metadata files taken from a macOS 10.11 and 10.12 machine,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * located at
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * /System/Library/Frameworks/AppKit.framework/Resources/BridgeSupport/AppKit.bridgesupport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Theoretically, you could use the 'gen_bridge_metadata' command to try
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * to generate a new bridge support file, but this would only work if
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * you went through and actually replaced the old enum names in ALL of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * AppKit's header files (not just AppKit.h, which is simply a top-level
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * header that #includes a bunch of other headers), and our wrapper
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * would not help in this regard. In addition, it's probably not a good
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * idea to be using the 'gen_bridge_metadata' tool to replace the bridge
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * support file in a system framework; it is really intended to be used
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * by software authors who want to provide bridge support for RubyCocoa
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * and PyObjC in frameworks generated by their own projects. In the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * future, if someone tries to create a MacPorts package for some piece
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * of software that does use RubyCocoa or PyObjC to access AppKit, then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * a different sort of solution than this wrapper file may be needed for
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * that scenario.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * References:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * * https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/RubyPythonCocoa/Articles/GenerateFrameworkMetadata.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * * https://bugs.eclipse.org/bugs/show_bug.cgi?id=502090
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * * Execute 'man gen_bridge_metadata' in a terminal window.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/********************************************************************
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * IMPORTANT NOTE *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * This wrapper file is currently being used by two ports: Blender *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * and MaterialX. This file will eventually be added to the *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * MacPorts legacy support package. After it gets added, we will be *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * able to remove this file from the ports and simply add the *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * MacPorts legacy support package as a dependency in the portfiles *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * for Blender and MaterialX. *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ********************************************************************/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Note: A small number of the #defines below are commented out because
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * they cause compile errors when building Blender. MaterialX doesn't
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * use them in its source, so they can be safely commented out without
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * causing any ill effects.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NS16BitBigEndianBitmapFormat NSBitmapFormatSixteenBitBigEndian
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NS16BitLittleEndianBitmapFormat NSBitmapFormatSixteenBitLittleEndian
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NS32BitBigEndianBitmapFormat NSBitmapFormatThirtyTwoBitBigEndian
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NS32BitLittleEndianBitmapFormat NSBitmapFormatThirtyTwoBitLittleEndian
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSAlphaFirstBitmapFormat NSBitmapFormatAlphaFirst
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSAlphaNonpremultipliedBitmapFormat NSBitmapFormatAlphaNonpremultiplied
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSAlternateKeyMask NSEventModifierFlagOption
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSAnyEventMask NSEventMaskAny
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSAppKitDefined NSEventTypeAppKitDefined
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSAppKitDefinedMask NSEventMaskAppKitDefined
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSApplicationActivatedEventType NSEventSubtypeApplicationActivated
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSApplicationDeactivatedEventType NSEventSubtypeApplicationDeactivated
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSApplicationDefined NSEventTypeApplicationDefined
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSApplicationDefinedMask NSEventMaskApplicationDefined
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSBMPFileType NSBitmapImageFileTypeBMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSBorderlessWindowMask NSWindowStyleMaskBorderless
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCMYKColorSpaceModel NSColorSpaceModelCMYK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCMYKModeColorPanel NSColorPanelModeCMYK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define NSCenterTextAlignment NSTextAlignmentCenter */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCircularBezelStyle NSBezelStyleCircular
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCircularSlider NSSliderTypeCircular
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSClosableWindowMask NSWindowStyleMaskClosable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSColorListModeColorPanel NSColorPanelModeColorList
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCommandKeyMask NSEventModifierFlagCommand
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeClear NSCompositingOperationClear
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeCopy NSCompositingOperationCopy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeDestinationAtop NSCompositingOperationDestinationAtop
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeDestinationIn NSCompositingOperationDestinationIn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeDestinationOut NSCompositingOperationDestinationOut
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeDestinationOver NSCompositingOperationDestinationOver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeHighlight NSCompositingOperationHighlight
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositePlusDarker NSCompositingOperationPlusDarker
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeSourceAtop NSCompositingOperationSourceAtop
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeSourceIn NSCompositingOperationSourceIn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeSourceOut NSCompositingOperationSourceOut
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeSourceOver NSCompositingOperationSourceOver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCompositeXOR NSCompositingOperationXOR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSControlKeyMask NSEventModifierFlagControl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCrayonModeColorPanel NSColorPanelModeCrayon
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCriticalAlertStyle NSAlertStyleCritical
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCursorPointingDevice NSPointingDeviceTypeCursor
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCursorUpdate NSEventTypeCursorUpdate
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCursorUpdateMask NSEventMaskCursorUpdate
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSCustomPaletteModeColorPanel NSColorPanelModeCustomPalette
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define NSDefaultTokenStyle NSTokenStyleDefault */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSDeviceIndependentModifierFlagsMask NSEventModifierFlagDeviceIndependentFlagsMask
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSDeviceNColorSpaceModel NSColorSpaceModelDeviceN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSDisclosureBezelStyle NSBezelStyleDisclosure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSDocModalWindowMask NSWindowStyleMaskDocModalWindow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSEraserPointingDevice NSPointingDeviceTypeEraser
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSFlagsChanged NSEventTypeFlagsChanged
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSFlagsChangedMask NSEventMaskFlagsChanged
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSFloatingPointSamplesBitmapFormat NSBitmapFormatFloatingPointSamples
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSFullScreenWindowMask NSWindowStyleMaskFullScreen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSFullSizeContentViewWindowMask NSWindowStyleMaskFullSizeContentView
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSFunctionKeyMask NSEventModifierFlagFunction
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSGIFFileType NSBitmapImageFileTypeGIF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSGrayColorSpaceModel NSColorSpaceModelGray
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSGrayModeColorPanel NSColorPanelModeGray
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSHSBModeColorPanel NSColorPanelModeHSB
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSHUDWindowMask NSWindowStyleMaskHUDWindow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSHelpButtonBezelStyle NSBezelStyleHelpButton
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSHelpKeyMask NSEventModifierFlagHelp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSIndexedColorSpaceModel NSColorSpaceModelIndexed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSInformationalAlertStyle NSAlertStyleInformational
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSInlineBezelStyle NSBezelStyleInline
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSJPEG2000FileType NSBitmapImageFileTypeJPEG2000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSJPEGFileType NSBitmapImageFileTypeJPEG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define NSJustifiedTextAlignment NSTextAlignmentJustified */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSKeyDown NSEventTypeKeyDown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSKeyDownMask NSEventMaskKeyDown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSKeyUp NSEventTypeKeyUp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSKeyUpMask NSEventMaskKeyUp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSLABColorSpaceModel NSColorSpaceModelLAB
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSLeftMouseDown NSEventTypeLeftMouseDown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSLeftMouseDownMask NSEventMaskLeftMouseDown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSLeftMouseDragged NSEventTypeLeftMouseDragged
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSLeftMouseDraggedMask NSEventMaskLeftMouseDragged
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSLeftMouseUp NSEventTypeLeftMouseUp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSLeftMouseUpMask NSEventMaskLeftMouseUp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define NSLeftTextAlignment NSTextAlignmentLeft */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSLinearSlider NSSliderTypeLinear
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSMiniControlSize NSControlSizeMini
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSMiniaturizableWindowMask NSWindowStyleMaskMiniaturizable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define NSMomentaryPushButton NSMomentaryLightButton */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSMouseEntered NSEventTypeMouseEntered
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSMouseEnteredMask NSEventMaskMouseEntered
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSMouseEventSubtype NSEventSubtypeMouseEvent
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSMouseExited NSEventTypeMouseExited
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSMouseExitedMask NSEventMaskMouseExited
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSMouseMoved NSEventTypeMouseMoved
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSMouseMovedMask NSEventMaskMouseMoved
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define NSNaturalTextAlignment NSTextAlignmentNatural */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSNoModeColorPanel NSColorPanelModeNone
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSNonactivatingPanelMask NSWindowStyleMaskNonactivatingPanel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSNumericPadKeyMask NSEventModifierFlagNumericPad
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSOtherMouseDown NSEventTypeOtherMouseDown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSOtherMouseDownMask NSEventMaskOtherMouseDown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSOtherMouseDragged NSEventTypeOtherMouseDragged
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSOtherMouseDraggedMask NSEventMaskOtherMouseDragged
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSOtherMouseUp NSEventTypeOtherMouseUp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSOtherMouseUpMask NSEventMaskOtherMouseUp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSPNGFileType NSBitmapImageFileTypePNG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSPatternColorSpaceModel NSColorSpaceModelPatterned
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSPenLowerSideMask NSEventButtonMaskPenLowerSide
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSPenPointingDevice NSPointingDeviceTypePen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSPenTipMask NSEventButtonMaskPenTip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSPenUpperSideMask NSEventButtonMaskPenUpperSide
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSPeriodic NSEventTypePeriodic
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSPowerOffEventType NSEventSubtypePowerOff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRGBColorSpaceModel NSColorSpaceModelRGB
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRGBModeColorPanel NSColorPanelModeRGB
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRecessedBezelStyle NSBezelStyleRecessed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRegularControlSize NSControlSizeRegular
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRegularSquareBezelStyle NSBezelStyleRegularSquare
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSResizableWindowMask NSWindowStyleMaskResizable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRightMouseDown NSEventTypeRightMouseDown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRightMouseDownMask NSEventMaskRightMouseDown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRightMouseDragged NSEventTypeRightMouseDragged
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRightMouseDraggedMask NSEventMaskRightMouseDragged
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRightMouseUp NSEventTypeRightMouseUp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRightMouseUpMask NSEventMaskRightMouseUp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define NSRightTextAlignment NSTextAlignmentRight */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRoundRectBezelStyle NSBezelStyleRoundRect
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRoundedBezelStyle NSBezelStyleRounded
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSRoundedDisclosureBezelStyle NSBezelStyleRoundedDisclosure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define NSRoundedTokenStyle NSTokenStyleRounded */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSScreenChangedEventType NSEventSubtypeScreenChanged
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSScrollWheel NSEventTypeScrollWheel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSShadowlessSquareBezelStyle NSBezelStyleShadowlessSquare
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSShiftKeyMask NSEventModifierFlagShift
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSSmallControlSize NSControlSizeSmall
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSSmallSquareBezelStyle NSBezelStyleSmallSquare
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSSystemDefined NSEventTypeSystemDefined
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSSystemDefinedMask NSEventMaskSystemDefined
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTIFFFileType NSBitmapImageFileTypeTIFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTabletPoint NSEventTypeTabletPoint
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTabletPointEventSubtype NSEventSubtypeTabletPoint
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTabletPointMask NSEventMaskTabletPoint
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTabletProximity NSEventTypeTabletProximity
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTabletProximityEventSubtype NSEventSubtypeTabletProximity
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTabletProximityMask NSEventMaskTabletProximity
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTexturedBackgroundWindowMask NSWindowStyleMaskTexturedBackground
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTexturedRoundedBezelStyle NSBezelStyleTexturedRounded
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTexturedSquareBezelStyle NSBezelStyleTexturedSquare
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTickMarkAbove NSTickMarkPositionAbove
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTickMarkBelow NSTickMarkPositionBelow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTickMarkLeft NSTickMarkPositionLeading
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTickMarkRight NSTickMarkPositionTrailing
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTitledWindowMask NSWindowStyleMaskTitled
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSTouchEventSubtype NSEventSubtypeTouch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSUnifiedTitleAndToolbarWindowMask NSWindowStyleMaskUnifiedTitleAndToolbar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSUnknownColorSpaceModel NSColorSpaceModelUnknown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSUnknownPointingDevice NSPointingDeviceTypeUnknown
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSUtilityWindowMask NSWindowStyleMaskUtilityWindow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSWarningAlertStyle NSAlertStyleWarning
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSWheelModeColorPanel NSColorPanelModeWheel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSWindowExposedEventType NSEventSubtypeWindowExposed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSWindowMovedEventType NSEventSubtypeWindowMoved
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * New enum: NSWindowStyleMask is an enumerated type that was introduced
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * starting in macOS 10.12; there is no pre-existing equivalent enum
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * type in macOS 10.11 and earlier. However, since this enum's typedef
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * is essentially equivalent to that of an unsigned integer, we can
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * substitute NSUInteger in older versions of macOS and things should
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * still work.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Reference: https://developer.apple.com/documentation/appkit/nswindowstylemask
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define NSWindowStyleMask NSUInteger
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200 */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system AppKit.h */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#include_next <AppKit/AppKit.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* _MACPORTS_APPKIT_H_ */
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/blender/files/patch-macports-libs-creator.diff b/graphics/blender/files/patch-macports-libs-creator.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..442d636eebc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/blender/files/patch-macports-libs-creator.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,49 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- source/creator/CMakeLists.txt.orig 2020-04-27 21:19:23.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ source/creator/CMakeLists.txt 2020-05-01 09:58:35.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -76,9 +76,28 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_TBB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ blender_include_dirs(${TBB_INCLUDE_DIRS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- link_directories(${LIBDIR}/tbb/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ link_directories(${LIBDIR}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(WITH_LZO)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(WITH_SYSTEM_LZO)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND INC_SYS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${LZO_INCLUDE_DIR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND LIB
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${LZO_LIBRARIES}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ add_definitions(-DWITH_SYSTEM_LZO)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND INC_SYS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ../../extern/lzo/minilzo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ list(APPEND LIB
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ extern_minilzo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ add_definitions(-DWITH_LZO)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_PYTHON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ blender_include_dirs(../blender/python)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -939,14 +958,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_OPENMP AND OPENMP_CUSTOM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- FILES ${LIBDIR}/openmp/lib/libomp.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ FILES ${LIBDIR}/lib/libomp/libomp.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DESTINATION Blender.app/Contents/Resources/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_LLVM AND NOT LLVM_STATIC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- FILES ${LIBDIR}/llvm/lib/libLLVM-3.4.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ FILES ${LIBDIR}/libexec/llvm-3.7/lib/libLLVM-3.7.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DESTINATION Blender.app/Contents/MacOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/blender/files/patch-macports-libs-platform_apple.diff b/graphics/blender/files/patch-macports-libs-platform_apple.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4596abebc80
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/blender/files/patch-macports-libs-platform_apple.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,324 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- build_files/cmake/platform/platform_apple.cmake.orig 2020-04-22 22:22:46.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ build_files/cmake/platform/platform_apple.cmake 2020-07-21 20:56:00.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -38,6 +38,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ message(FATAL_ERROR "Mac OSX requires pre-compiled libs at: '${LIBDIR}'")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(NOT DEFINED FRAMEWORK_SEARCH_PATHS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(FRAMEWORK_SEARCH_PATHS /Library/Frameworks)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_OPENAL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_package(OpenAL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(OPENAL_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -48,7 +52,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_ALEMBIC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(ALEMBIC ${LIBDIR}/alembic)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(ALEMBIC ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(ALEMBIC_INCLUDE_DIR ${ALEMBIC}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(ALEMBIC_INCLUDE_DIRS ${ALEMBIC_INCLUDE_DIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(ALEMBIC_LIBPATH ${ALEMBIC}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -64,7 +68,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_OPENSUBDIV)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENSUBDIV ${LIBDIR}/opensubdiv)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENSUBDIV ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENSUBDIV_LIBPATH ${OPENSUBDIV}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library(OSD_LIB_CPU NAMES osdCPU PATHS ${OPENSUBDIV_LIBPATH})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library(OSD_LIB_GPU NAMES osdGPU PATHS ${OPENSUBDIV_LIBPATH})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -75,38 +79,38 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_JACK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library(JACK_FRAMEWORK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- NAMES jackmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ NAMES jack PATHS ${LIBDIR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(JACK_INCLUDE_DIRS ${JACK_FRAMEWORK}/headers)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(JACK_INCLUDE_DIRS ${JACK_FRAMEWORK}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(NOT JACK_FRAMEWORK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(WITH_JACK OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_CODEC_SNDFILE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(LIBSNDFILE ${LIBDIR}/sndfile)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(LIBSNDFILE ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(LIBSNDFILE_INCLUDE_DIRS ${LIBSNDFILE}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(LIBSNDFILE_LIBRARIES sndfile FLAC ogg vorbis vorbisenc)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(LIBSNDFILE_LIBPATH ${LIBSNDFILE}/lib ${LIBDIR}/ffmpeg/lib) # TODO, deprecate
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(LIBSNDFILE_LIBPATH ${LIBSNDFILE}/lib) # TODO, deprecate
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_PYTHON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # we use precompiled libraries for py 3.7 and up by default
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(PYTHON_VERSION 3.7)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PYTHON_VERSION 3.8)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(NOT WITH_PYTHON_MODULE AND NOT WITH_PYTHON_FRAMEWORK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # normally cached but not since we include them with blender
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(PYTHON_INCLUDE_DIR "${LIBDIR}/python/include/python${PYTHON_VERSION}m")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(PYTHON_EXECUTABLE "${LIBDIR}/python/bin/python${PYTHON_VERSION}m")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}m.a)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PYTHON_INCLUDE_DIR "${LIBDIR}/python/include/python${PYTHON_VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PYTHON_EXECUTABLE "${LIBDIR}/python/bin/python${PYTHON_VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}.a)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(PYTHON_LIBPATH "${LIBDIR}/python/lib/python${PYTHON_VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # set(PYTHON_LINKFLAGS "-u _PyMac_Error") # won't build with this enabled
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # module must be compiled against Python framework
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(_py_framework "/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(_py_framework "${FRAMEWORK_SEARCH_PATHS}/Python.framework/Versions/${PYTHON_VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(PYTHON_INCLUDE_DIR "${_py_framework}/include/python${PYTHON_VERSION}m")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(PYTHON_EXECUTABLE "${_py_framework}/bin/python${PYTHON_VERSION}m")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(PYTHON_LIBPATH "${_py_framework}/lib/python${PYTHON_VERSION}/config-${PYTHON_VERSION}m")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PYTHON_INCLUDE_DIR "${_py_framework}/include/python${PYTHON_VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PYTHON_EXECUTABLE "${_py_framework}/bin/python${PYTHON_VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PYTHON_LIBPATH "${_py_framework}/lib/python${PYTHON_VERSION}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # set(PYTHON_LIBRARY python${PYTHON_VERSION})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # set(PYTHON_LINKFLAGS "-u _PyMac_Error -framework Python") # won't build with this enabled
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -126,26 +130,40 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_FFTW3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(FFTW3 ${LIBDIR}/fftw3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(FFTW3 ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(FFTW3_INCLUDE_DIRS ${FFTW3}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(FFTW3_LIBRARIES fftw3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(FFTW3_LIBPATH ${FFTW3}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-set(ZLIB /usr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(ZLIB ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(ZLIB_INCLUDE_DIRS "${ZLIB}/include")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(ZLIB_LIBRARIES z bz2)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(PNG_LIBRARIES png ${ZLIB_LIBRARIES})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(JPEG_LIBRARIES jpeg)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-set(FREETYPE ${LIBDIR}/freetype)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(FREETYPE ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(FREETYPE_INCLUDE_DIRS ${FREETYPE}/include ${FREETYPE}/include/freetype2)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(FREETYPE_LIBPATH ${FREETYPE}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(FREETYPE_LIBRARY freetype)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(WITH_LZO AND WITH_SYSTEM_LZO)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(LZO ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(LZO_INCLUDE_DIR ${LZO}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(LZO_LIBRARY lzo2)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(LZO_LIBRARIES ${LZO_LIBRARY})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(WITH_SYSTEM_EIGEN3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(EIGEN3 ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(EIGEN3_INCLUDE_DIR ${EIGEN3}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR} ${EIGEN3}/include/eigen3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(EIGEN3_LIBRARY eigen3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_IMAGE_OPENEXR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENEXR ${LIBDIR}/openexr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENEXR ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENEXR_INCLUDE_DIR ${OPENEXR}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENEXR_INCLUDE_DIRS ${OPENEXR_INCLUDE_DIR} ${OPENEXR}/include/OpenEXR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENEXR_LIBRARIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -158,7 +176,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_CODEC_FFMPEG)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(FFMPEG ${LIBDIR}/ffmpeg)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(FFMPEG ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(FFMPEG_INCLUDE_DIRS ${FFMPEG}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(FFMPEG_LIBRARIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ avcodec avdevice avformat avutil
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -171,9 +189,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_IMAGE_OPENJPEG OR WITH_CODEC_FFMPEG)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # use openjpeg from libdir that is linked into ffmpeg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENJPEG ${LIBDIR}/openjpeg)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENJPEG ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENJPEG_INCLUDE_DIRS ${OPENJPEG}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENJPEG_LIBRARIES ${OPENJPEG}/lib/libopenjp2.a)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENJPEG_LIBRARIES ${OPENJPEG}/lib/libopenjp2.dylib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library(SYSTEMSTUBS_LIBRARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -194,69 +212,70 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ list(APPEND PLATFORM_LINKLIBS c++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_JACK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -F/Library/Frameworks -weak_framework jackmp")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -F${FRAMEWORK_SEARCH_PATHS} -ljack")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_PYTHON_MODULE OR WITH_PYTHON_FRAMEWORK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # force cmake to link right framework
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} /Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/Python")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} ${FRAMEWORK_SEARCH_PATHS}/Python.framework/Versions/${PYTHON_VERSION}/Python")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_OPENCOLLADA)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENCOLLADA ${LIBDIR}/opencollada)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENCOLLADA ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENCOLLADA_INCLUDE_DIRS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${LIBDIR}/opencollada/include/COLLADAStreamWriter
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${LIBDIR}/opencollada/include/COLLADABaseUtils
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${LIBDIR}/opencollada/include/COLLADAFramework
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${LIBDIR}/opencollada/include/COLLADASaxFrameworkLoader
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${LIBDIR}/opencollada/include/GeneratedSaxParser
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${LIBDIR}/include/opencollada/COLLADAStreamWriter
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${LIBDIR}/include/opencollada/COLLADABaseUtils
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${LIBDIR}/include/opencollada/COLLADAFramework
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${LIBDIR}/include/opencollada/COLLADASaxFrameworkLoader
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${LIBDIR}/include/opencollada/GeneratedSaxParser
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENCOLLADA_LIBPATH ${OPENCOLLADA}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENCOLLADA_LIBRARIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- OpenCOLLADASaxFrameworkLoader
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -L${OPENCOLLADA_LIBPATH}/opencollada
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ -lOpenCOLLADASaxFrameworkLoader
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lOpenCOLLADAFramework
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lOpenCOLLADABaseUtils
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lOpenCOLLADAStreamWriter
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lMathMLSolver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lGeneratedSaxParser
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lbuffer -lftoa -lUTF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${OPENCOLLADA_LIBPATH}/libxml2.a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${OPENCOLLADA_LIBPATH}/libxml2.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # PCRE is bundled with openCollada
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # set(PCRE ${LIBDIR}/pcre)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # set(PCRE_LIBPATH ${PCRE}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PCRE ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(PCRE_LIBPATH ${PCRE}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(PCRE_LIBRARIES pcre)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_SDL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(SDL ${LIBDIR}/sdl)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(SDL ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(SDL_INCLUDE_DIR ${SDL}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(SDL_LIBRARY SDL2)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(SDL_LIBPATH ${SDL}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -framework ForceFeedback")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-set(PNG "${LIBDIR}/png")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(PNG "${LIBDIR}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(PNG_INCLUDE_DIRS "${PNG}/include")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(PNG_LIBPATH ${PNG}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-set(JPEG "${LIBDIR}/jpeg")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(JPEG "${LIBDIR}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(JPEG_INCLUDE_DIR "${JPEG}/include")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(JPEG_LIBPATH ${JPEG}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_IMAGE_TIFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(TIFF ${LIBDIR}/tiff)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(TIFF ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(TIFF_INCLUDE_DIR ${TIFF}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(TIFF_LIBRARY tiff)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(TIFF_LIBPATH ${TIFF}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_BOOST)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(BOOST ${LIBDIR}/boost)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(BOOST ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(BOOST_INCLUDE_DIR ${BOOST}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(BOOST_POSTFIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(BOOST_POSTFIX "-mt")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(BOOST_LIBRARIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ boost_date_time${BOOST_POSTFIX}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ boost_filesystem${BOOST_POSTFIX}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -283,10 +302,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_OPENIMAGEIO)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENIMAGEIO ${LIBDIR}/openimageio)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENIMAGEIO ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENIMAGEIO_INCLUDE_DIRS ${OPENIMAGEIO}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENIMAGEIO_LIBRARIES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ${OPENIMAGEIO}/lib/libOpenImageIO.a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${OPENIMAGEIO}/lib/libOpenImageIO.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${PNG_LIBRARIES}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${JPEG_LIBRARIES}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${TIFF_LIBRARY}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -302,29 +321,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${OPENEXR_LIBPATH}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${ZLIB_LIBPATH}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENIMAGEIO_DEFINITIONS "-DOIIO_STATIC_BUILD")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENIMAGEIO_IDIFF "${LIBDIR}/openimageio/bin/idiff")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# set(OPENIMAGEIO_DEFINITIONS "-DOIIO_STATIC_BUILD")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENIMAGEIO_IDIFF "${LIBDIR}/bin/idiff")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_OPENCOLORIO)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENCOLORIO ${LIBDIR}/opencolorio)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENCOLORIO ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENCOLORIO_INCLUDE_DIRS ${OPENCOLORIO}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENCOLORIO_LIBRARIES OpenColorIO tinyxml yaml-cpp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENCOLORIO_LIBPATH ${OPENCOLORIO}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_OPENVDB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENVDB ${LIBDIR}/openvdb)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENVDB ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENVDB_INCLUDE_DIRS ${OPENVDB}/include)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENVDB_LIBRARIES openvdb blosc)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OPENVDB_LIBPATH ${LIBDIR}/openvdb/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OPENVDB_LIBPATH ${LIBDIR}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENVDB_DEFINITIONS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_LLVM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(LLVM_ROOT_DIR ${LIBDIR}/llvm)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(EXISTS "${LLVM_ROOT_DIR}/bin/llvm-config")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(LLVM_CONFIG "${LLVM_ROOT_DIR}/bin/llvm-config")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(LLVM_ROOT_DIR ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(EXISTS "${LLVM_ROOT_DIR}/bin/llvm-config-mp")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(LLVM_CONFIG "${LLVM_ROOT_DIR}/bin/llvm-config-mp")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(LLVM_CONFIG llvm-config)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -362,7 +381,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_CYCLES_OSL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(CYCLES_OSL ${LIBDIR}/osl)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(CYCLES_OSL ${LIBDIR})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library(OSL_LIB_EXEC NAMES oslexec PATHS ${CYCLES_OSL}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library(OSL_LIB_COMP NAMES oslcomp PATHS ${CYCLES_OSL}/lib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -417,20 +436,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_OPENMP)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(CMAKE_C_COMPILER_ID MATCHES "AppleClang" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "7.0")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use OpenMP from our precompiled libraries.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message(STATUS "Using ${LIBDIR}/openmp for OpenMP")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ message(STATUS "Using ${LIBDIR} for OpenMP")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENMP_CUSTOM ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(OPENMP_FOUND ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OpenMP_C_FLAGS "-Xclang -fopenmp -I'${LIBDIR}/openmp/include'")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(OpenMP_CXX_FLAGS "-Xclang -fopenmp -I'${LIBDIR}/openmp/include'")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L'${LIBDIR}/openmp/lib' -lomp")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OpenMP_C_FLAGS "-Xclang -fopenmp -I'${LIBDIR}/include/libomp'")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(OpenMP_CXX_FLAGS "-Xclang -fopenmp -I'${LIBDIR}/include/libomp'")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L'${LIBDIR}/lib' -lomp")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Copy libomp.dylib to allow executables like datatoc and tests to work.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ execute_process(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COMMAND mkdir -p ${CMAKE_BINARY_DIR}/Resources/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- COMMAND cp -p ${LIBDIR}/openmp/lib/libomp.dylib ${CMAKE_BINARY_DIR}/Resources/lib/libomp.dylib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ COMMAND ln -s ${LIBDIR}/lib/libomp.dylib ${CMAKE_BINARY_DIR}/Resources/lib/libomp.dylib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ execute_process(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ COMMAND mkdir -p ${CMAKE_BINARY_DIR}/bin/Resources/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- COMMAND cp -p ${LIBDIR}/openmp/lib/libomp.dylib ${CMAKE_BINARY_DIR}/bin/Resources/lib/libomp.dylib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ COMMAND ln -s ${LIBDIR}/lib/libomp.dylib ${CMAKE_BINARY_DIR}/bin/Resources/lib/libomp.dylib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/blender/files/patch-manpage-for-apple.diff b/graphics/blender/files/patch-manpage-for-apple.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..36211234c75
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/blender/files/patch-manpage-for-apple.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,24 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- source/creator/CMakeLists.txt.orig 2020-03-12 01:06:44.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ source/creator/CMakeLists.txt 2020-09-02 01:59:35.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -869,6 +869,21 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(NOT WITH_PYTHON_MODULE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Uppercase name for app bundle
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set_target_properties(blender PROPERTIES OUTPUT_NAME Blender)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(WITH_DOC_MANPAGE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ add_custom_target(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ blender_man_page ALL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ COMMAND ${CMAKE_SOURCE_DIR}/doc/manpage/blender.1.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${EXECUTABLE_OUTPUT_PATH}/Blender.app/Contents/MacOS/Blender
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ${CMAKE_CURRENT_BINARY_DIR}/blender.1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ add_dependencies(blender_man_page blender)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # manpage only with 'blender' binary
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ FILES ${CMAKE_CURRENT_BINARY_DIR}/blender.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ DESTINATION @@PREFIX@@/share/man/man1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # handy install macro to exclude files, we use \$ escape for the "to"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/blender/files/patch-unix-or-apple.diff b/graphics/blender/files/patch-unix-or-apple.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..aac8fe599a9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/blender/files/patch-unix-or-apple.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,69 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2020-04-21 15:05:37.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2020-04-21 15:07:36.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -219,7 +219,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_OPENMP "Enable OpenMP (has to be supported by the compiler)" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if(UNIX AND NOT APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(UNIX OR APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_OPENMP_STATIC "Link OpenMP statically (only used by the release environment)" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mark_as_advanced(WITH_OPENMP_STATIC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -231,7 +231,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_X11_ALPHA "Enable X11 transparent background" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if(UNIX AND NOT APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(UNIX OR APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_SYSTEM_GLEW "Use GLEW OpenGL wrapper library provided by the operating system" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_SYSTEM_GLES "Use OpenGL ES library provided by the operating system" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -241,7 +241,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if(UNIX AND NOT APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(UNIX OR APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_SYSTEM_EIGEN3 "Use the systems Eigen3 library" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -281,18 +281,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_OPENAL "Enable OpenAL Support (http://www.openal.org)" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(NOT WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_JACK "Enable JACK Support (http://www.jackaudio.org)" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(UNIX AND NOT APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(UNIX OR APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_JACK_DYNLOAD "Enable runtime dynamic JACK libraries loading" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if(UNIX AND NOT APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(UNIX OR APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_SDL_DYNLOAD "Enable runtime dynamic SDL libraries loading" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Compression
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_LZO "Enable fast LZO compression (used for pointcache)" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_LZMA "Enable best LZMA compression, (used for pointcache)" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if(UNIX AND NOT APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(UNIX OR APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_SYSTEM_LZO "Use the system LZO library" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_DRACO "Enable Draco mesh compression Python module (used for glTF)" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -316,7 +316,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_INPUT_IME "Enable Input Method Editor (IME) for complex Asian character input" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_INPUT_NDOF "Enable NDOF input devices (SpaceNavigator and friends)" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if(UNIX AND NOT APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(UNIX OR APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_INSTALL_PORTABLE "Install redistributeable runtime, otherwise install into CMAKE_INSTALL_PREFIX" ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_STATIC_LIBS "Try to link with static libraries, as much as possible, to make blender more portable across distributions" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(WITH_STATIC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -419,7 +419,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_OPENGL_DRAW_TESTS "Enable OpenGL UI drawing related unit testing (Experimental)" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Documentation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if(UNIX AND NOT APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(UNIX OR APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(WITH_DOC_MANPAGE "Create a manual page (Unix manpage)" OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>