Page MenuHomeFreeBSD

D13721.id37337.diff
No OneTemporary

D13721.id37337.diff

Index: graphics/Makefile
===================================================================
--- graphics/Makefile
+++ graphics/Makefile
@@ -1028,6 +1028,7 @@
SUBDIR += sswf
SUBDIR += stamp
SUBDIR += structuresynth
+ SUBDIR += sverchok-blender
SUBDIR += svg2pdf
SUBDIR += svg2png
SUBDIR += svgalib
Index: graphics/blender/Makefile
===================================================================
--- graphics/blender/Makefile
+++ graphics/blender/Makefile
@@ -3,7 +3,7 @@
PORTNAME= blender
PORTVERSION= 2.79
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= graphics games
MASTER_SITES= http://download.blender.org/source/ \
http://mirror.cs.umn.edu/blender.org/source/ \
@@ -23,14 +23,18 @@
# 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:3.5 shebangfix
+ 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
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
+ -DWITH_INSTALL_PORTABLE:BOOL=FALSE \
+ -DBLENDER_PY_VERSION:STRING=${BLENDER_PY_VERSION}
SHEBANG_FILES= release/bin/blender-thumbnailer.py \
release/scripts/modules/bl_i18n_utils/merge_po.py \
@@ -38,10 +42,9 @@
release/scripts/modules/blend_render_info.py
CFLAGS_i386= -march=i586
CXXFLAGS_i386= -march=i586
-BL_VERSION= 2.79
-OUTDIR= ${INSTALL_WRKSRC}/bin/${BL_VERSION}
+OUTDIR= ${INSTALL_WRKSRC}/bin/${BLENDER_BL_VERSION}
-PLIST_SUB+= VER=${BL_VERSION}
+PLIST_SUB+= VER=${BLENDER_BL_VERSION}
OPTIONS_SUB= yes
.include "${.CURDIR}/Makefile.options"
Index: graphics/blender/Makefile.versions
===================================================================
--- /dev/null
+++ graphics/blender/Makefile.versions
@@ -0,0 +1,4 @@
+# Versions of Blender and its python dependency for use by depending ports, like plugins
+
+BLENDER_BL_VERSION= 2.79
+BLENDER_PY_VERSION= 3.6
Index: graphics/blender/files/patch-build__files_cmake_Modules_FindPythonLibsUnix.cmake
===================================================================
--- /dev/null
+++ graphics/blender/files/patch-build__files_cmake_Modules_FindPythonLibsUnix.cmake
@@ -0,0 +1,11 @@
+--- build_files/cmake/Modules/FindPythonLibsUnix.cmake.orig 2017-12-31 23:44:59 UTC
++++ build_files/cmake/Modules/FindPythonLibsUnix.cmake
+@@ -38,7 +38,7 @@ IF(NOT PYTHON_ROOT_DIR AND NOT $ENV{PYTH
+ SET(PYTHON_ROOT_DIR $ENV{PYTHON_ROOT_DIR})
+ ENDIF()
+
+-SET(PYTHON_VERSION 3.5 CACHE STRING "Python Version (major and minor only)")
++SET(PYTHON_VERSION ${BLENDER_PY_VERSION} CACHE STRING "Python Version (major and minor only)")
+ MARK_AS_ADVANCED(PYTHON_VERSION)
+
+
Index: graphics/sverchok-blender/Makefile
===================================================================
--- /dev/null
+++ graphics/sverchok-blender/Makefile
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME= sverchok
+DISTVERSION= 0.5.9.6.2
+CATEGORIES= graphics
+PKGNAMESUFFIX= -blender
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Plugin for Blender: parametric tool for architects and designers
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= blender:graphics/blender \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
+
+.include "../blender/Makefile.versions"
+
+USES= python:${BLENDER_PY_VERSION}
+USE_GITHUB= yes
+GH_ACCOUNT= nortikin
+NO_BUILD= yes
+NO_ARCH= yes
+
+do-install:
+ @${RM} ${WRKSRC}/node_scripts/templates/polyvox
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/blender/${BLENDER_BL_VERSION}/scripts/addons/${PORTNAME}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/blender/${BLENDER_BL_VERSION}/scripts/addons/${PORTNAME}
+
+post-install: # autoplist: it installs 800+ files into the plugins directory
+ @cd ${STAGEDIR}${PREFIX} && \
+ ${FIND} share -type f >> ${TMPPLIST} && \
+ ${FIND} -f * -type d -empty | ${SED} -e 's/^/@dir /' >> ${TMPPLIST}
+
+.include <bsd.port.mk>
Index: graphics/sverchok-blender/distinfo
===================================================================
--- /dev/null
+++ graphics/sverchok-blender/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1514759128
+SHA256 (nortikin-sverchok-0.5.9.6.2_GH0.tar.gz) = 365f2f23a0d646544c1bf619319e17db85f2d097f37d959201ba624e8777c7aa
+SIZE (nortikin-sverchok-0.5.9.6.2_GH0.tar.gz) = 1059466
Index: graphics/sverchok-blender/pkg-descr
===================================================================
--- /dev/null
+++ graphics/sverchok-blender/pkg-descr
@@ -0,0 +1,19 @@
+Sverchok is a parametric tool for architects and designers. You can use it to
+program objects' shapes without knowing any programming languages.
+
+It is an add-on for Blender.
+
+Sverchok IS a parametric tool that relies on easy-to-use visual node-based
+design to create low-level data structures.
+
+Sverchok IS NOT an all-in-one tool. It does not have lighting and the rest
+of Blender's toolbox.
+
+It implements the approach of MATH + MESH + SPLINES + NURBS. It lets you operate
+with digits and math with height level language - visual nodes.
+
+Sverchok has been inspired by Grasshopper from Rhino 3D and uses a similar
+node-based visual programming principle. We are trying to bring this feature set
+to Blender users.
+
+WWW: http://nikitron.cc.ua/sverchok_en.html
Index: graphics/sverchok-blender/pkg-message
===================================================================
--- /dev/null
+++ graphics/sverchok-blender/pkg-message
@@ -0,0 +1,11 @@
+======================================================================
+You installed Sverchok: the Blender plugin for architects and designers
+
+You need to enable it in Blender: go to the "File" menu, then to
+the "User Preferences" sub-menu, click on "Add-ons", type in "sverchok"
+into the search box in the top-left corner, and check the "Sverchok"
+c heck-box to the right.
+
+Please consult the user's manual:
+http://nikitron.cc.ua/sverch/html/Unit_01/lesson_01.html
+======================================================================

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 1, 4:34 AM (8 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28275565
Default Alt Text
D13721.id37337.diff (6 KB)

Event Timeline