svn commit: r459139 - in head/graphics: . blender sverchok-blender

Yuri Victorovich yuri at FreeBSD.org
Mon Jan 15 23:52:52 UTC 2018


Author: yuri
Date: Mon Jan 15 23:52:50 2018
New Revision: 459139
URL: https://svnweb.freebsd.org/changeset/ports/459139

Log:
  New port: graphics/sverchok-blender: Add-on for Blender: parametric tool for architects and designers
  
  This add-on extends the functionality of Blender.
  It allows to draw 3D objects ans scenes in a purely visual way, using the
  graph-like interface, without the knowledge of any programming languages.
  
  graphics/blender is modified, blender/Makefile.versions with the versions
  is created for easy inclusion into the add-on ports.
  
  Submitted by:	myself
  Approved by:	tcberner (mentor), FreeBSD at Shaneware.biz (maintainer of graphics/blender)
  Differential Revision:	https://reviews.freebsd.org/D13721

Added:
  head/graphics/blender/Makefile.versions   (contents, props changed)
  head/graphics/sverchok-blender/
  head/graphics/sverchok-blender/Makefile   (contents, props changed)
  head/graphics/sverchok-blender/distinfo   (contents, props changed)
  head/graphics/sverchok-blender/pkg-descr   (contents, props changed)
  head/graphics/sverchok-blender/pkg-message   (contents, props changed)
Modified:
  head/graphics/Makefile
  head/graphics/blender/Makefile

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Mon Jan 15 23:30:33 2018	(r459138)
+++ head/graphics/Makefile	Mon Jan 15 23:52:50 2018	(r459139)
@@ -1029,6 +1029,7 @@
     SUBDIR += sswf
     SUBDIR += stamp
     SUBDIR += structuresynth
+    SUBDIR += sverchok-blender
     SUBDIR += svg2pdf
     SUBDIR += svg2png
     SUBDIR += svgalib

Modified: head/graphics/blender/Makefile
==============================================================================
--- head/graphics/blender/Makefile	Mon Jan 15 23:30:33 2018	(r459138)
+++ head/graphics/blender/Makefile	Mon Jan 15 23:52:50 2018	(r459139)
@@ -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 @@ LIB_DEPENDS=	libpng.so:graphics/png \
 # 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 \
+		-DPYTHON_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 @@ SHEBANG_FILES=	release/bin/blender-thumbnailer.py \
 		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"

Added: head/graphics/blender/Makefile.versions
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/blender/Makefile.versions	Mon Jan 15 23:52:50 2018	(r459139)
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+# 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

Added: head/graphics/sverchok-blender/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/sverchok-blender/Makefile	Mon Jan 15 23:52:50 2018	(r459139)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME=	sverchok
+DISTVERSION=	0.5.9.6.2
+CATEGORIES=	graphics
+PKGNAMESUFFIX=	-blender
+
+MAINTAINER=	yuri at FreeBSD.org
+COMMENT=	Add-on 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  # stray link
+	@${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}
+	# autoplist: it installs 800+ files into the plugins directory
+	@cd ${STAGEDIR}${PREFIX} && \
+		${FIND} share/blender/${BLENDER_BL_VERSION}/scripts/addons/${PORTNAME} -type f >> ${TMPPLIST} && \
+		${FIND} -f share/blender/${BLENDER_BL_VERSION}/scripts/addons/${PORTNAME} -type d -empty | ${SED} -e 's/^/@dir /' >> ${TMPPLIST}
+
+.include <bsd.port.mk>

Added: head/graphics/sverchok-blender/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/sverchok-blender/distinfo	Mon Jan 15 23:52:50 2018	(r459139)
@@ -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

Added: head/graphics/sverchok-blender/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/sverchok-blender/pkg-descr	Mon Jan 15 23:52:50 2018	(r459139)
@@ -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 high level language to manipulate nodes visually.
+
+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

Added: head/graphics/sverchok-blender/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/sverchok-blender/pkg-message	Mon Jan 15 23:52:50 2018	(r459139)
@@ -0,0 +1,12 @@
+======================================================================
+You installed Sverchok: the Blender add-on for architects and
+designers.
+
+You need to enable it in Blender: click on the "File" menu, then on
+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"
+check-box to the right.
+
+Please consult the user's manual:
+http://nikitron.cc.ua/sverch/html/main.html
+======================================================================


More information about the svn-ports-all mailing list