Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145071796
D13721.id37343.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D13721.id37343.diff
View Options
Index: graphics/Makefile
===================================================================
--- graphics/Makefile
+++ graphics/Makefile
@@ -1029,6 +1029,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 \
+ -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 @@
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 add-ons
+
+BLENDER_BL_VERSION= 2.79
+BLENDER_PY_VERSION= 3.6
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= 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
+ @${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 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
Index: graphics/sverchok-blender/pkg-message
===================================================================
--- /dev/null
+++ graphics/sverchok-blender/pkg-message
@@ -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
+======================================================================
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 16, 4:03 PM (9 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28782876
Default Alt Text
D13721.id37343.diff (5 KB)
Attached To
Mode
D13721: New port: graphics/sverchok-blender: Add-on for Blender: parametric tool for architects and designers
Attached
Detach File
Event Timeline
Log In to Comment