pkgsrc/graphics/blender/Makefile

109 lines
3.4 KiB
Makefile
Raw Normal View History

2018-04-29 23:31:17 +02:00
# $NetBSD: Makefile,v 1.139 2018/04/29 21:31:43 adam Exp $
DISTNAME= blender-2.77a
2018-04-29 23:31:17 +02:00
PKGREVISION= 10
CATEGORIES= graphics
2009-04-28 23:36:42 +02:00
MASTER_SITES= http://download.blender.org/source/
2001-03-16 01:33:18 +01:00
MAINTAINER= pkgsrc-users@NetBSD.org
2017-08-01 16:58:51 +02:00
HOMEPAGE= https://www.blender.org/
COMMENT= Fully integrated 3D graphics creation suite
2011-04-01 12:59:56 +02:00
LICENSE= gnu-gpl-v2
2001-03-16 01:33:18 +01:00
Update to 2.70 Changelog: New features include initial support for volumetrics in Cycles, and faster rendering of hair and textures. The motion tracker now supports weighted tracks and has improved planar tracking. For mesh modeling there are new Laplacian deform and wireframe modifiers, along with more control in the bevel tool. The game engine now supports object levels of detail. The first results from the new user interface project are also in this release, with dozens of changes to make the interface more consistent and powerful. This is also the first release of the multithreaded dependency graph, which makes modifier and constraint evaluation faster in scenes with multiple objects. Cycles Rendering Cycles now has initial support for volume rendering including emission, absorption and scattering. Volume rendering can be used to render effects like fire, smoke, mist, absorption in glass, and many other effects that can't be represented by surface meshes alone. CPU rendering performance was improved, particularly for hair, textures and Open Shading Language. Motion Tracker Trackers can now be weighted, to keep the result stable as feature disappear or become difficult to track. The plane track workflow was improved to be easier to control. Automatic feature detection was made more robust using a new detector algorithm. User Interface The toolbar now has tabs to organize tools in categories. Multiple buttons can now be edited at once, for example for XYZ axes or color channels. Transform tools now have a mode to enter expressions and units. Other changes were done to improve lists, header menus, tooltips, buttons, menus and more. Modeling The Laplacian Deform modifier was added to pose a mesh while preserving geometric details of the surface, and a new wireframe modifier allows you transform your mesh into a wireframe representation. The boolean modifier now supports ngons, and there are improvements to the bevel, screw and triangulate modifiers. The bevel tool now offers more control over the bevel profile and results, and the knife tool was improved as well. Threaded Dependency Graph An important change that happened under the hood is the threaded dependency graph. This means that object modifiers and constraints, among other things, can now be computed with multiple threads taking advantage of multicore processors. This will be most noticeable with scenes that have many objects, or multiple objects with heavy modifiers. This is the first step in making the dependency graph in Blender more powerful. Game Development The Blender game engine now supports discrete level of detail for meshes. For game developers, support for working with Photoshop PSD files has been added. A new view navigation walk mode has been added, which has a control scheme as typically found in first person shooter games. This can be useful for game developers to navigate levels as if in a game. Freestyle NPR Rendering The Freestyle Python API is an essential part that makes it a highly programmable NPR rendering engine. This API has been reorganized. More Features Many small changes and features were done all over Blender. Some notable new feature are normalized display for FCurves, derivative map baking, baking to vertex colors, better visualization of masks and control over mask filling, gravity option for sculpting, negative texture values to support vector displacement and a Lamp Data shading node to create more customized NPR shaders. Feature Videos For a visual demonstration of some of the new features in this release, check out the feature videos created during the development of this release. Addons Several addons have been added and updated, including Node Wrangler (aka Node Efficiency Tools) and a new Sketchfab Exporter addon Bug Fixes In addition to the new features, over 560 bugs that existed in previous releases have been fixed.
2014-04-07 14:21:25 +02:00
USE_TOOLS+= gmake sed
USE_CMAKE= yes
USE_LANGUAGES= c c++11
CMAKE_OPTS+= -DWITH_OPENAL:BOOL=OFF
CMAKE_OPTS+= -DWITH_MEM_JEMALLOC:BOOL=OFF
CMAKE_OPTS+= -DPYVERSSUFFIX:STRING=${PYVERSSUFFIX}
2017-02-06 02:29:10 +01:00
CMAKE_OPTS+= -DPYTHON_VERSION:STRING=${PYVERSSUFFIX}
CMAKE_OPTS+= -DPYTHON_ROOT_DIR:STRING=${PREFIX}
CMAKE_OPTS+= -DPYTHON_INCLUDE_DIR:STRING=${PREFIX}/${PYINC}
CMAKE_OPTS+= -DPYTHON_INCLUDE_CONFIG_DIR:STRING=${PREFIX}/${PYINC}
CMAKE_OPTS+= -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN}
CMAKE_OPTS+= -DPYTHON_LIBRARY:FILEPATH=${PREFIX}/lib/libpython${PYVERSSUFFIX}.so
CMAKE_OPTS+= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX}/share/blender
CMAKE_OPTS+= -DCMAKE_MODULE_PATH:PATH=${_CMAKE_DIR}
CMAKE_OPTS+= -DCMAKE_SKIP_RPATH:BOOL=TRUE
CMAKE_OPTS+= -DCMAKE_INSTALL_LIBDIR:PATH=lib
CMAKE_OPTS+= -DCMAKE_INSTALL_MANDIR:PATH=man
CMAKE_OPTS+= -DFREETYPE_INCLUDE_DIRS:PATH=${BUILDLINK_PREFIX.freetype2}/include/freetype2
CMAKE_OPTS+= -DFREETYPE_LIBRARY:STRING=freetype
CMAKE_OPTS+= -D_OPENGL_LIB_PATH:PATH=${BUILDLINK_PREFIX.MesaLib}/lib
CMAKE_OPTS+= -D_OPENGL_INCLUDE_PATH:PATH=${BUILDLINK_PREFIX.MesaLib}/include
CMAKE_OPTS+= -DOPENGL_glu_LIBRARY:STRING=GLU
CMAKE_OPTS+= -DCMAKE_CXX_FLAGS:STRING=${CXXFLAGS:Q}
2017-02-06 02:29:10 +01:00
PYTHON_VERSIONS_INCOMPATIBLE= 27
Update blender to 2.74 Blender 2.74, released Mar 31 2015! - Cycles got several precision, noise, speed, memory improvements, new Pointiness attribute. - Viewport has new cool compositing features, outliner now manages orphan datablocks better. - Modeling now allows custom normals, and transferring data layers between meshes! - Massive improvements to hair dynamics and editing tools: a big step forward with more to come… - A new tool “Cavity Mask” was added to sculpting/painting, along with other improvements. - Great memory consumption optimization in Freestyle NPR stroke rendering. - Grease pencil and Game engine improvements, and more… Blender 2.73, released January 8 2015! - Several Cycles Rendering updates, improvements and new features, support for GeForce 9xx GPUs. - New fullscreen mode, improved Pie Menus, 3D View can now display the world background. - Knife-tool now allows freehand smart cuts, and more improvements were made in selection tools, Bevel Modifier and Shapekeys. - Unwrapping UVs was improved, strength is now enabled for Grab and Snake Hook brushes, better visual feedback mode for painting with masks. - Sequencer now can show a backdrop, strips can be snapped to others along with other improvements. - Freestyle NPR Rendering has a new SVG exporter add-on, along with other improvements. - Grease Pencil had a major update, it is now possible to edit and animate strokes! New draw styles, and imporvements in user interface. - Collada Importer was updated, improving the compatibility with other software’s bone concepts. - Add-ons: FBX improved importing/exporting armatures, some Python API changes could need some Add-ons to be updated! - As usual several other minor updates and improvements, and lot of bugfixing also in this release. Blender 2.72, relased Oct 4 2014. Cycles GPU rendering supports Volume and Subsurface Scattering now. The User Interface comes with optional Pie Menus now and the Tooltips have been improved. For Modeling, a new intersection tool has been added in Edit Mode. Texture painting workflow has been streamlined with easy access to painted images and UV layers. The Compositor now comes with a Sun Beam node. Freestyle NPR rendering is now available with Cycles as well.
2015-12-15 10:46:27 +01:00
GCC_REQD+= 4.7
DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat
2017-02-06 02:29:10 +01:00
CMAKE_OPTS+= -DWITH_PYTHON_INSTALL_NUMPY:BOOL=OFF
CMAKE_OPTS+= -DWITH_PYTHON_INSTALL_REQUESTS:BOOL=OFF
REPLACE_PYTHON= release/bin/blender-thumbnailer.py
2001-03-16 01:33:18 +01:00
.include "options.mk"
INSTALLATION_DIRS= bin share/blender
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
PLIST_SUBST+= BLENDERVER=${PKGVERSION_NOREV:C/[a-z]//}
.if !empty(MACHINE_PLATFORM:MNetBSD-8.*)
PLIST_SUBST+= NETBSDVER=netbsd8
.elif !empty(MACHINE_PLATFORM:MNetBSD-7.*)
Update blender to 2.74 Blender 2.74, released Mar 31 2015! - Cycles got several precision, noise, speed, memory improvements, new Pointiness attribute. - Viewport has new cool compositing features, outliner now manages orphan datablocks better. - Modeling now allows custom normals, and transferring data layers between meshes! - Massive improvements to hair dynamics and editing tools: a big step forward with more to come… - A new tool “Cavity Mask” was added to sculpting/painting, along with other improvements. - Great memory consumption optimization in Freestyle NPR stroke rendering. - Grease pencil and Game engine improvements, and more… Blender 2.73, released January 8 2015! - Several Cycles Rendering updates, improvements and new features, support for GeForce 9xx GPUs. - New fullscreen mode, improved Pie Menus, 3D View can now display the world background. - Knife-tool now allows freehand smart cuts, and more improvements were made in selection tools, Bevel Modifier and Shapekeys. - Unwrapping UVs was improved, strength is now enabled for Grab and Snake Hook brushes, better visual feedback mode for painting with masks. - Sequencer now can show a backdrop, strips can be snapped to others along with other improvements. - Freestyle NPR Rendering has a new SVG exporter add-on, along with other improvements. - Grease Pencil had a major update, it is now possible to edit and animate strokes! New draw styles, and imporvements in user interface. - Collada Importer was updated, improving the compatibility with other software’s bone concepts. - Add-ons: FBX improved importing/exporting armatures, some Python API changes could need some Add-ons to be updated! - As usual several other minor updates and improvements, and lot of bugfixing also in this release. Blender 2.72, relased Oct 4 2014. Cycles GPU rendering supports Volume and Subsurface Scattering now. The User Interface comes with optional Pie Menus now and the Tooltips have been improved. For Modeling, a new intersection tool has been added in Edit Mode. Texture painting workflow has been streamlined with easy access to painted images and UV layers. The Compositor now comes with a Sun Beam node. Freestyle NPR rendering is now available with Cycles as well.
2015-12-15 10:46:27 +01:00
PLIST_SUBST+= NETBSDVER=netbsd7
.else
PLIST_SUBST+= NETBSDVER=netbsd6
.endif
2017-02-06 02:29:10 +01:00
PLIST_VARS+= py34 py35 py36
OBJDIR= ../build
CONFIGURE_DIRS= ${OBJDIR}
CMAKE_ARG_PATH= ../${DISTNAME}
pre-configure:
${MKDIR} ${WRKSRC}/${OBJDIR}
# Install to custom CMAKE_INSTALL_PREFIX.
do-configure:
cd ${WRKSRC}/${OBJDIR} && \
env ${CONFIGURE_ENV} \
${PREFIX}/bin/cmake ${CMAKE_OPTS} ${CMAKE_ARG_PATH}
2014-02-01 04:57:52 +01:00
post-install:
${LN} -sf ${PREFIX}/share/blender/blender \
${DESTDIR}${PREFIX}/bin
2004-04-12 04:41:45 +02:00
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/gettext-tools/buildlink3.mk"
Update to 2.70 Changelog: New features include initial support for volumetrics in Cycles, and faster rendering of hair and textures. The motion tracker now supports weighted tracks and has improved planar tracking. For mesh modeling there are new Laplacian deform and wireframe modifiers, along with more control in the bevel tool. The game engine now supports object levels of detail. The first results from the new user interface project are also in this release, with dozens of changes to make the interface more consistent and powerful. This is also the first release of the multithreaded dependency graph, which makes modifier and constraint evaluation faster in scenes with multiple objects. Cycles Rendering Cycles now has initial support for volume rendering including emission, absorption and scattering. Volume rendering can be used to render effects like fire, smoke, mist, absorption in glass, and many other effects that can't be represented by surface meshes alone. CPU rendering performance was improved, particularly for hair, textures and Open Shading Language. Motion Tracker Trackers can now be weighted, to keep the result stable as feature disappear or become difficult to track. The plane track workflow was improved to be easier to control. Automatic feature detection was made more robust using a new detector algorithm. User Interface The toolbar now has tabs to organize tools in categories. Multiple buttons can now be edited at once, for example for XYZ axes or color channels. Transform tools now have a mode to enter expressions and units. Other changes were done to improve lists, header menus, tooltips, buttons, menus and more. Modeling The Laplacian Deform modifier was added to pose a mesh while preserving geometric details of the surface, and a new wireframe modifier allows you transform your mesh into a wireframe representation. The boolean modifier now supports ngons, and there are improvements to the bevel, screw and triangulate modifiers. The bevel tool now offers more control over the bevel profile and results, and the knife tool was improved as well. Threaded Dependency Graph An important change that happened under the hood is the threaded dependency graph. This means that object modifiers and constraints, among other things, can now be computed with multiple threads taking advantage of multicore processors. This will be most noticeable with scenes that have many objects, or multiple objects with heavy modifiers. This is the first step in making the dependency graph in Blender more powerful. Game Development The Blender game engine now supports discrete level of detail for meshes. For game developers, support for working with Photoshop PSD files has been added. A new view navigation walk mode has been added, which has a control scheme as typically found in first person shooter games. This can be useful for game developers to navigate levels as if in a game. Freestyle NPR Rendering The Freestyle Python API is an essential part that makes it a highly programmable NPR rendering engine. This API has been reorganized. More Features Many small changes and features were done all over Blender. Some notable new feature are normalized display for FCurves, derivative map baking, baking to vertex colors, better visualization of masks and control over mask filling, gravity option for sculpting, negative texture values to support vector displacement and a Lamp Data shading node to create more customized NPR shaders. Feature Videos For a visual demonstration of some of the new features in this release, check out the feature videos created during the development of this release. Addons Several addons have been added and updated, including Node Wrangler (aka Node Efficiency Tools) and a new Sketchfab Exporter addon Bug Fixes In addition to the new features, over 560 bugs that existed in previous releases have been fixed.
2014-04-07 14:21:25 +02:00
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
2004-04-12 04:41:45 +02:00
.include "../../graphics/Mesa/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
#.include "../../graphics/glew/buildlink3.mk"
.include "../../graphics/openexr/buildlink3.mk"
.include "../../graphics/openimageio/buildlink3.mk"
.include "../../graphics/openjpeg15/buildlink3.mk"
2004-04-12 04:41:45 +02:00
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../math/fftw/buildlink3.mk"
#.include "../../multimedia/ffmpeg010/buildlink3.mk"
2004-04-12 04:41:45 +02:00
.include "../../security/openssl/buildlink3.mk"
2001-03-16 01:33:18 +01:00
.include "../../lang/python/application.mk"
2001-03-16 01:33:18 +01:00
.if ${PYVERSSUFFIX} == "3.4"
PLIST.py34= yes
.elif ${PYVERSSUFFIX} == "3.5"
PLIST.py35= yes
2017-02-06 02:29:10 +01:00
.elif ${PYVERSSUFFIX} == "3.6"
PLIST.py36= yes
.endif
.include "../../mk/bsd.pkg.mk"