diff options
author | Thomas Zander <riggs@FreeBSD.org> | 2018-04-28 12:19:23 +0000 |
---|---|---|
committer | Thomas Zander <riggs@FreeBSD.org> | 2018-04-28 12:19:23 +0000 |
commit | 3c0bbaa33b8ba4ba6de93b48fa1f9a21028bc37d (patch) | |
tree | c6e0e5e46c2e1a45fcb7490c7c8257bd486053f1 | |
parent | 8e32e7fc69b00f846a8e887b27ab9dc5932df5b2 (diff) | |
download | ports-3c0bbaa33b8ba4ba6de93b48fa1f9a21028bc37d.tar.gz ports-3c0bbaa33b8ba4ba6de93b48fa1f9a21028bc37d.zip |
Notes
-rw-r--r-- | graphics/blender/Makefile | 167 | ||||
-rw-r--r-- | graphics/blender/Makefile.options | 6 | ||||
-rw-r--r-- | graphics/blender/Makefile.versions | 2 | ||||
-rw-r--r-- | graphics/blender/distinfo | 6 | ||||
-rw-r--r-- | graphics/blender/files/patch-intern_cycles_CMakeLists.txt | 14 | ||||
-rw-r--r-- | graphics/blender/pkg-plist | 20 |
6 files changed, 101 insertions, 114 deletions
diff --git a/graphics/blender/Makefile b/graphics/blender/Makefile index 11a392894f16..8dbfaff0258e 100644 --- a/graphics/blender/Makefile +++ b/graphics/blender/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= blender -PORTVERSION= 2.79 -PORTREVISION= 7 +PORTVERSION= 2.79b CATEGORIES= graphics games MASTER_SITES= http://download.blender.org/source/ \ http://mirror.cs.umn.edu/blender.org/source/ \ @@ -12,29 +11,29 @@ MASTER_SITES= http://download.blender.org/source/ \ MAINTAINER= FreeBSD@Shaneware.biz COMMENT= 3D modeling/rendering/animation/gaming package -LICENSE= GPLv2+ -LICENSE_FILE= ${WRKSRC}/doc/license/GPL-license.txt +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/doc/license/GPL3-license.txt LIB_DEPENDS= libpng.so:graphics/png \ libfreetype.so:print/freetype2 \ libboost_regex.so:devel/boost-libs +RUN_DEPENDS= ${PYNUMPY} # libboost_regex.so just acts as a placeholder; several boost # libraries are used, if either of the most common options in blender # are set. We will pull boost in just to be on the safe side. -.include "${.CURDIR}/Makefile.versions" - -USES= cmake:outsource desktop-file-utils \ - jpeg python:${BLENDER_PY_VERSION} shebangfix \ - fortran # fortran is needed because Blender plugins can load python libraries built with fortran, and they need Blender to have USES=fortran -USE_XORG= x11 xext xmu xrender +# 10.4 fails to build with clang3.4 so we want to use clang50 +# clang50 is already in place for opengl +USES= cmake:outsource compiler:c++14-lang desktop-file-utils \ + jpeg python:3.5 shebangfix +USE_XORG= x11 xext xfixes xmu xrender USE_GL= gl glu glew INSTALLS_ICONS= yes -CMAKE_ARGS= -DWITH_PYTHON_INSTALL:BOOL=OFF \ - -DWITH_PYTHON_INSTALL_NUMPY:BOOL=OFF \ - -DWITH_INSTALL_PORTABLE:BOOL=FALSE \ - -DPYTHON_VERSION:STRING=${BLENDER_PY_VERSION} +# always enable c++11, this needs to be enabled for several options +CMAKE_ON= WITH_CXX11 +CMAKE_OFF= WITH_PYTHON_INSTALL WITH_PYTHON_INSTALL_NUMPY \ + WITH_INSTALL_PORTABLE SHEBANG_FILES= release/bin/blender-thumbnailer.py \ release/scripts/modules/bl_i18n_utils/merge_po.py \ @@ -42,135 +41,103 @@ SHEBANG_FILES= release/bin/blender-thumbnailer.py \ release/scripts/modules/blend_render_info.py CFLAGS_i386= -march=i586 CXXFLAGS_i386= -march=i586 -OUTDIR= ${INSTALL_WRKSRC}/bin/${BLENDER_BL_VERSION} -PLIST_SUB+= VER=${BLENDER_BL_VERSION} +PLIST_SUB+= VER=2.79 OPTIONS_SUB= yes .include "${.CURDIR}/Makefile.options" -AVI_CMAKE_ON= -DWITH_CODEC_AVI:BOOL=ON -AVI_CMAKE_OFF= -DWITH_CODEC_AVI:BOOL=OFF -BULLET_CMAKE_ON= -DWITH_BULLET:BOOL=ON -BULLET_CMAKE_OFF= -DWITH_BULLET:BOOL=OFF -CAMERATRACK_CMAKE_ON= -DWITH_LIBMV:BOOL=ON -CAMERATRACK_CMAKE_OFF= -DWITH_LIBMV:BOOL=OFF +ALEMBIC_CMAKE_BOOL= WITH_ALEMBIC +ALEMBIC_LIB_DEPENDS= libAlembic.so:graphics/alembic +# note that this needs to be set to match alembics hdf5 option +ALEMBIC_HDF5_REQUIRES= ALEMBIC +ALEMBIC_HDF5_CMAKE_BOOL= WITH_ALEMBIC_HDF5 +ALEMBIC_HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 +AVI_CMAKE_BOOL= WITH_CODEC_AVI +BULLET_CMAKE_BOOL= WITH_BULLET +CAMERATRACK_CMAKE_BOOL= WITH_LIBMV CAMERATRACK_LIB_DEPENDS= libunwind.so:devel/libunwind -CINEON_CMAKE_ON= -DWITH_IMAGE_CINEON:BOOL=ON -CINEON_CMAKE_OFF= -DWITH_IMAGE_CINEON:BOOL=OFF -COLLADA_CMAKE_ON= -DWITH_OPENCOLLADA:BOOL=ON -COLLADA_CMAKE_OFF= -DWITH_OPENCOLLADA:BOOL=OFF +CINEON_CMAKE_BOOL= WITH_IMAGE_CINEON +COLLADA_CMAKE_BOOL= WITH_OPENCOLLADA COLLADA_LIB_DEPENDS= libOpenCOLLADABaseUtils.so:graphics/opencollada \ libpcre.so:devel/pcre COLLADA_USE= GNOME=libxml2 -COMPOSITOR_CMAKE_ON= -DWITH_COMPOSITOR:BOOL=ON -COMPOSITOR_CMAKE_OFF= -DWITH_COMPOSITOR:BOOL=OFF +COMPOSITOR_CMAKE_BOOL= WITH_COMPOSITOR CYCLES_IMPLIES= OPENIMAGEIO -CYCLES_CMAKE_ON= -DWITH_CYCLES:BOOL=ON -CYCLES_CMAKE_OFF= -DWITH_CYCLES:BOOL=OFF +CYCLES_CMAKE_BOOL= WITH_CYCLES CYCLESOSL_IMPLIES= CYCLES -CYCLESOSL_CMAKE_ON= -DWITH_CYCLES_OSL:BOOL=ON \ - -DWITH_CXX11:BOOL=ON \ - -DWITH_LLVM:BOOL=ON \ - -DLLVM_STATIC:BOOL=OFF \ +CYCLESOSL_CMAKE_BOOL= WITH_CYCLES_OSL WITH_LLVM +CYCLESOSL_CMAKE_ON= -DLLVM_STATIC:BOOL=OFF \ -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config40" -CYCLESOSL_CMAKE_OFF= -DWITH_CYCLES_OSL:BOOL=OFF CYCLESOSL_BUILD_DEPENDS= llvm-config40:devel/llvm40 CYCLESOSL_LIB_DEPENDS= liboslcomp.so:graphics/openshadinglanguage CYCLESOSL_RUN_DEPENDS= llvm-config40:devel/llvm40 -DDS_CMAKE_ON= -DWITH_IMAGE_DDS:BOOL=ON -DDS_CMAKE_OFF= -DWITH_IMAGE_DDS:BOOL=OFF -FFMPEG_CMAKE_ON= -DWITH_CODEC_FFMPEG:BOOL=ON -FFMPEG_CMAKE_OFF= -DWITH_CODEC_FFMPEG:BOOL=OFF +DDS_CMAKE_BOOL= WITH_IMAGE_DDS +FFMPEG_CMAKE_BOOL= WITH_CODEC_FFMPEG FFMPEG_LIB_DEPENDS= libavutil.so:multimedia/ffmpeg -FFTW3_CMAKE_ON= -DWITH_FFTW3:BOOL=ON -FFTW3_CMAKE_OFF= -DWITH_FFTW3:BOOL=OFF +FFTW3_CMAKE_BOOL= WITH_FFTW3 FFTW3_LIB_DEPENDS= libfftw3.so:math/fftw3 -FRAMESERVER_CMAKE_ON= -DWITH_IMAGE_FRAMESERVER:BOOL=ON -FRAMESERVER_CMAKE_OFF= -DWITH_IMAGE_FRAMESERVER:BOOL=OFF -FREESTYLE_CMAKE_ON= -DWITH_FREESTYLE:BOOL=ON -FREESTYLE_CMAKE_OFF= -DWITH_FREESTYLE:BOOL=OFF -GAMEENGINE_CMAKE_ON= -DWITH_GAMEENGINE:BOOL=ON -GAMEENGINE_CMAKE_OFF= -DWITH_GAMEENGINE:BOOL=OFF -HDR_CMAKE_ON= -DWITH_IMAGE_HDR:BOOL=ON -HDR_CMAKE_OFF= -DWITH_IMAGE_HDR:BOOL=OFF +FRAMESERVER_CMAKE_BOOL= WITH_IMAGE_FRAMESERVER +FREESTYLE_CMAKE_BOOL= WITH_FREESTYLE +GAMEENGINE_CMAKE_BOOL= WITH_GAMEENGINE +HDR_CMAKE_BOOL= WITH_IMAGE_HDR HEADLESS_PREVENTS= MENU XINPUT XF86VMODE HEADLESS_PREVENTS_MSG= X11 options can't be used in headless mode -HEADLESS_CMAKE_ON= -DWITH_HEADLESS:BOOL=ON -HEADLESS_CMAKE_OFF= -DWITH_HEADLESS:BOOL=OFF -INPUT_NDOF_CMAKE_ON= -DWITH_INPUT_NDOF:BOOL=ON -INPUT_NDOF_CMAKE_OFF= -DWITH_INPUT_NDOF:BOOL=OFF -JACK_CMAKE_ON= -DWITH_JACK:BOOL=ON -JACK_CMAKE_OFF= -DWITH_JACK:BOOL=OFF +HEADLESS_CMAKE_BOOL= WITH_HEADLESS +INPUT_NDOF_CMAKE_BOOL= WITH_INPUT_NDOF +JACK_CMAKE_BOOL= WITH_JACK JACK_LIB_DEPENDS= libjack.so:audio/jack -LZO_CMAKE_ON= -DWITH_LZO:BOOL=ON -LZO_CMAKE_OFF= -DWITH_LZO:BOOL=OFF -LZMA_CMAKE_ON= -DWITH_LZMA:BOOL=ON -LZMA_CMAKE_OFF= -DWITH_LZMA:BOOL=OFF +LZO_CMAKE_BOOL= WITH_LZO +LZMA_CMAKE_BOOL= WITH_LZMA MENU_USES= desktop-file-utils -MOD_BOOLEAN_CMAKE_ON= -DWITH_MOD_BOOLEAN:BOOL=ON -MOD_BOOLEAN_CMAKE_OFF= -DWITH_MOD_BOOLEAN:BOOL=OFF -MOD_FLUID_CMAKE_ON= -DWITH_MOD_FLUID:BOOL=ON -MOD_FLUID_CMAKE_OFF= -DWITH_MOD_FLUID:BOOL=OFF +MOD_BOOLEAN_CMAKE_BOOL= WITH_MOD_BOOLEAN +MOD_FLUID_CMAKE_BOOL= WITH_MOD_FLUID MOD_OCEANSIM_IMPLIES= FFTW3 -MOD_OCEANSIM_CMAKE_ON= -DWITH_MOD_OCEANSIM:BOOL=ON -MOD_OCEANSIM_CMAKE_OFF= -DWITH_MOD_OCEANSIM:BOOL=OFF -MOD_REMESH_CMAKE_ON= -DWITH_MOD_REMESH:BOOL=ON -MOD_REMESH_CMAKE_OFF= -DWITH_MOD_REMESH:BOOL=OFF -MOD_SMOKE_CMAKE_ON= -DWITH_MOD_SMOKE:BOOL=ON -MOD_SMOKE_CMAKE_OFF= -DWITH_MOD_SMOKE:BOOL=OFF -NLS_CMAKE_ON= -DWITH_INTERNATIONAL:BOOL=ON -NLS_CMAKE_OFF= -DWITH_INTERNATIONAL:BOOL=OFF +MOD_OCEANSIM_CMAKE_BOOL= WITH_MOD_OCEANSIM +MOD_REMESH_CMAKE_BOOL= WITH_MOD_REMESH +MOD_SMOKE_CMAKE_BOOL= WITH_MOD_SMOKE +NLS_CMAKE_BOOL= WITH_INTERNATIONAL # Use iconv:wchar_t to force the usage of iconv from ports. # libboost_locale.so uses libiconv_open, while we only provide # iconv_open in 10.x+ NLS_USES= gettext iconv:lib,wchar_t -OPENAL_CMAKE_ON= -DWITH_OPENAL:BOOL=ON -OPENAL_CMAKE_OFF= -DWITH_OPENAL:BOOL=OFF +OPENAL_CMAKE_BOOL= WITH_OPENAL OPENAL_USES= openal:al,alut -OPENCOLORIO_CMAKE_ON= -DWITH_OPENCOLORIO:BOOL=ON -OPENCOLORIO_CMAKE_OFF= -DWITH_OPENCOLORIO:BOOL=OFF +OPENCOLORIO_CMAKE_BOOL= WITH_OPENCOLORIO OPENCOLORIO_LIB_DEPENDS= libOpenColorIO.so:graphics/opencolorio \ libyaml-cpp03.so:devel/yaml-cpp03 \ libtinyxml.so:textproc/tinyxml -OPENEXR_CMAKE_ON= -DWITH_IMAGE_OPENEXR:BOOL=ON -OPENEXR_CMAKE_OFF= -DWITH_IMAGE_OPENEXR:BOOL=OFF +OPENEXR_CMAKE_BOOL= WITH_IMAGE_OPENEXR OPENEXR_LIB_DEPENDS= libIlmImf.so:graphics/OpenEXR \ libHalf.so:graphics/ilmbase OPENIMAGEIO_IMPLIES= OPENEXR TIFF -OPENIMAGEIO_CMAKE_ON= -DWITH_OPENIMAGEIO:BOOL=ON -OPENIMAGEIO_CMAKE_OFF= -DWITH_OPENIMAGEIO:BOOL=OFF +OPENIMAGEIO_CMAKE_BOOL= WITH_OPENIMAGEIO OPENIMAGEIO_LIB_DEPENDS= libOpenImageIO.so:graphics/openimageio -OPENJPEG_CMAKE_ON= -DWITH_SYSTEM_OPENJPEG:BOOL=ON \ - -DWITH_IMAGE_OPENJPEG:BOOL=ON -OPENJPEG_CMAKE_OFF= -DWITH_IMAGE_OPENJPEG:BOOL=OFF +OPENJPEG_CMAKE_BOOL= WITH_SYSTEM_OPENJPEG WITH_IMAGE_OPENJPEG OPENJPEG_LIB_DEPENDS= libopenjpeg.so:graphics/openjpeg15 -OPENSUBDIV_CMAKE_ON= -DWITH_OPENSUBDIV:BOOL=ON -OPENSUBDIV_CMAKE_OFF= -DWITH_OPENSUBDIV:BOOL=OFF +# openmp usually works on amd64 +#OPENMP_CMAKE_ON= -DWITH_OPENMP:BOOL=ON \ +# -DOpenMP_C_FLAGS:STRING=-fopenmp -lm \ +# -DOpenMP_CXX_FLAGS:STRING=-fopenmp -lm +#OPENMP_CMAKE_OFF= -DWITH_OPENMP:BOOL=OFF +#OPENMP_LIB_DEPENDS= libomp.so.0:devel/openmp +#OPENMP_LDFLAGS= -L${LOCALBASE}/lib +OPENSUBDIV_CMAKE_BOOL= WITH_OPENSUBDIV OPENSUBDIV_LIB_DEPENDS= libosdCPU.so:graphics/opensubdiv PLAYER_IMPLIES= GAMEENGINE -PLAYER_CMAKE_ON= -DWITH_PLAYER:BOOL=ON -PLAYER_CMAKE_OFF= -DWITH_PLAYER:BOOL=OFF -RAYOPTIMIZATION_CMAKE_ON= -DWITH_RAYOPTIMIZATION:BOOL=ON -RAYOPTIMIZATION_CMAKE_OFF= -DWITH_RAYOPTIMIZATION:BOOL=OFF -SDL_CMAKE_ON= -DWITH_SDL:BOOL=ON -SDL_CMAKE_OFF= -DWITH_SDL:BOOL=OFF +PLAYER_CMAKE_BOOL= WITH_PLAYER +RAYOPTIMIZATION_CMAKE_BOOL= WITH_RAYOPTIMIZATION +SDL_CMAKE_BOOL= WITH_SDL SDL_USE= SDL=sdl2 -SNDFILE_CMAKE_ON= -DWITH_CODEC_SNDFILE:BOOL=ON -SNDFILE_CMAKE_OFF= -DWITH_CODEC_SNDFILE:BOOL=OFF +SNDFILE_CMAKE_BOOL= WITH_CODEC_SNDFILE SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile -TIFF_CMAKE_ON= -DWITH_IMAGE_TIFF:BOOL=ON -TIFF_CMAKE_OFF= -DWITH_IMAGE_TIFF:BOOL=OFF +TIFF_CMAKE_BOOL= WITH_IMAGE_TIFF TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff -XINPUT_CMAKE_ON= -DWITH_X11_XINPUT:BOOL=ON -XINPUT_CMAKE_OFF= -DWITH_X11_XINPUT:BOOL=OFF +XINPUT_CMAKE_BOOL= WITH_X11_XINPUT XINPUT_USE= XORG=xi -XF86VMODE_CMAKE_ON= -DWITH_X11_XF86VMODE:BOOL=ON -XF86VMODE_CMAKE_OFF= -DWITH_X11_XF86VMODE:BOOL=OFF +XF86VMODE_CMAKE_BOOL= WITH_X11_XF86VMODE XF86VMODE_USE= XORG=xi,xxf86vm -.include <bsd.port.options.mk> - .if defined(WITH_DEBUG) CMAKE_ARGS+= -DWITH_GHOST_DEBUG:BOOL=ON .endif diff --git a/graphics/blender/Makefile.options b/graphics/blender/Makefile.options index d95cb81039c8..ad87bcad7eb3 100644 --- a/graphics/blender/Makefile.options +++ b/graphics/blender/Makefile.options @@ -1,6 +1,8 @@ # $FreeBSD$ OPTIONS_DEFINE= \ + ALEMBIC \ + ALEMBIC_HDF5 \ AVI \ BULLET \ CAMERATRACK \ @@ -43,6 +45,8 @@ OPTIONS_DEFINE= \ XF86VMODE OPTIONS_DEFAULT= \ + ALEMBIC \ + ALEMBIC_HDF5 \ AVI \ BULLET \ CAMERATRACK \ @@ -76,6 +80,8 @@ OPTIONS_DEFAULT= \ XINPUT \ XF86VMODE +ALEMBIC_DESC= Enable Alembic file support +ALEMBIC_HDF5_DESC= Enable Alembic hdf5 file support AVI_DESC= Enable Blender's own AVI file support BULLET_DESC= Bullet physics engine CINEON_DESC= CINEON and DPX graphics format support diff --git a/graphics/blender/Makefile.versions b/graphics/blender/Makefile.versions index b1f36813a85a..09534cf152b4 100644 --- a/graphics/blender/Makefile.versions +++ b/graphics/blender/Makefile.versions @@ -3,4 +3,4 @@ # Versions of Blender and its python dependency for use by depending ports, like add-ons BLENDER_BL_VERSION= 2.79 -BLENDER_PY_VERSION= 3.6 +BLENDER_PY_VERSION= 3.5 diff --git a/graphics/blender/distinfo b/graphics/blender/distinfo index f7c0af86c491..7b7cf75844e6 100644 --- a/graphics/blender/distinfo +++ b/graphics/blender/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1505196365 -SHA256 (blender-2.79.tar.gz) = a9de03e769a2a4a0bf92186556896c4f4d32fd9ac4480915ae92d7f95b25c899 -SIZE (blender-2.79.tar.gz) = 50145270 +TIMESTAMP = 1523336334 +SHA256 (blender-2.79b.tar.gz) = 4c944c304a49e68ac687ea06f5758204def049b66dc211e1cffa1857716393bc +SIZE (blender-2.79b.tar.gz) = 50204270 diff --git a/graphics/blender/files/patch-intern_cycles_CMakeLists.txt b/graphics/blender/files/patch-intern_cycles_CMakeLists.txt new file mode 100644 index 000000000000..ea539fa9e460 --- /dev/null +++ b/graphics/blender/files/patch-intern_cycles_CMakeLists.txt @@ -0,0 +1,14 @@ +--- intern/cycles/CMakeLists.txt.orig 2018-03-08 03:18:11 UTC ++++ intern/cycles/CMakeLists.txt +@@ -205,9 +205,9 @@ if(WITH_CYCLES_DEBUG) + add_definitions(-DWITH_CYCLES_DEBUG) + endif() + +-if(NOT OPENIMAGEIO_PUGIXML_FOUND) ++#if(NOT OPENIMAGEIO_PUGIXML_FOUND) + add_definitions(-DWITH_SYSTEM_PUGIXML) +-endif() ++#endif() + + include_directories( + SYSTEM diff --git a/graphics/blender/pkg-plist b/graphics/blender/pkg-plist index 738c63b7d5d9..bc75c485aa26 100644 --- a/graphics/blender/pkg-plist +++ b/graphics/blender/pkg-plist @@ -1715,16 +1715,16 @@ share/applications/blender.desktop %%DATADIR%%/%%VER%%/scripts/templates_py/ui_pie_menu.py %%DATADIR%%/%%VER%%/scripts/templates_py/ui_previews_custom_icon.py %%DATADIR%%/%%VER%%/scripts/templates_py/ui_previews_dynamic_enum.py -%%PORTDOCS%%%%DOCSDIR%%/GPL-license.txt -%%PORTDOCS%%%%DOCSDIR%%/GPL3-license.txt -%%PORTDOCS%%%%DOCSDIR%%/LICENSE-bfont.ttf.txt -%%NLS%%%%PORTDOCS%%%%DOCSDIR%%/LICENSE-bmonofont-i18n.ttf.txt -%%NLS%%%%PORTDOCS%%%%DOCSDIR%%/LICENSE-droidsans.ttf.txt -%%PORTDOCS%%%%DOCSDIR%%/Python-license.txt -%%PORTDOCS%%%%DOCSDIR%%/copyright.txt -%%PORTDOCS%%%%DOCSDIR%%/jemalloc-license.txt -%%PORTDOCS%%%%DOCSDIR%%/ocio-license.txt -%%PORTDOCS%%%%DOCSDIR%%/readme.html +%%DOCSDIR%%/GPL-license.txt +%%DOCSDIR%%/GPL3-license.txt +%%DOCSDIR%%/LICENSE-bfont.ttf.txt +%%NLS%%%%DOCSDIR%%/LICENSE-bmonofont-i18n.ttf.txt +%%NLS%%%%DOCSDIR%%/LICENSE-droidsans.ttf.txt +%%DOCSDIR%%/Python-license.txt +%%DOCSDIR%%/copyright.txt +%%DOCSDIR%%/jemalloc-license.txt +%%DOCSDIR%%/ocio-license.txt +%%DOCSDIR%%/readme.html share/icons/hicolor/16x16/apps/blender.png share/icons/hicolor/22x22/apps/blender.png share/icons/hicolor/24x24/apps/blender.png |