Add a port of SeExpr, embeddable expression evaluation language from Walt

Disney Animation Studios.

WWW: http://www.disneyanimation.com/technology/seexpr.html
This commit is contained in:
Alexey Dokuchaev 2015-10-09 10:21:33 +00:00
parent c4e12a20bf
commit fccd59adfb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=398907
5 changed files with 99 additions and 0 deletions

View File

@ -968,6 +968,7 @@
SUBDIR += sdump
SUBDIR += seam-carving-gui
SUBDIR += seejpeg
SUBDIR += seexpr
SUBDIR += seom
SUBDIR += separate
SUBDIR += seq2gif

42
graphics/seexpr/Makefile Normal file
View File

@ -0,0 +1,42 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= seexpr
DISTVERSION= 1.0.1.2015.08.29
CATEGORIES= graphics math
MAINTAINER= danfe@FreeBSD.org
COMMENT= Embeddable expression evaluation language
LICENSE= APACHE20
BUILD_DEPENDS= ${LOCALBASE}/share/py-sip/QtGui/QtGuimod.sip:${PORTSDIR}/x11-toolkits/py-qt4-gui
USE_GITHUB= yes
GH_ACCOUNT= wdas
GH_TAGNAME= 36ffb818b8
USES= bison cmake compiler:c++0x python
USE_QT4= moc_build qmake_build rcc_build uic_build gui opengl
WRKSRC= ${WRKDIR}/SeExpr-${GH_TAGNAME_EXTRACT}
CXXFLAGS+= -I${LOCALBASE}/include
.include <bsd.port.pre.mk>
# base flex(1) v2.5.4 is not sufficient
.if ${OSVERSION} < 1000033
BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
.endif
post-patch:
@${REINPLACE_CMD} -e '/<alloca\.h>/d' ${WRKSRC}/src/SeExpr/SePlatform.h
@${REINPLACE_CMD} -e 's, "dl",,' ${WRKSRC}/src/SeExpr/CMakeLists.txt
@${REINPLACE_CMD} -e '/tests/d' ${WRKSRC}/CMakeLists.txt
.if ${OSVERSION} < 1000033
@${REINPLACE_CMD} -e '/COMMAND/s,flex,${LOCALBASE}/bin/&,' \
${WRKSRC}/src/build/macros.cmake
.endif
.include <bsd.port.post.mk>

2
graphics/seexpr/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (wdas-seexpr-1.0.1.2015.08.29-36ffb818b8_GH0.tar.gz) = 8361adb26310060b063e37376625acb60314deac081130a397857f04884e2a7b
SIZE (wdas-seexpr-1.0.1.2015.08.29-36ffb818b8_GH0.tar.gz) = 709489

13
graphics/seexpr/pkg-descr Normal file
View File

@ -0,0 +1,13 @@
SeExpr is simple expression language that provided artistic control and
customization to your software. It can be used for procedural geometry
synthesis, image synthesis, simulation control, and much more.
Major features:
* Arithmetic expression of scalar/vector types
* Large library of built-in functions
* Extensible variables and functions (including with DSOs)
* Simple to embed in any program
* High-level UI components to manipulate and visualize expressions
WWW: http://www.disneyanimation.com/technology/seexpr.html

41
graphics/seexpr/pkg-plist Normal file
View File

@ -0,0 +1,41 @@
bin/asciiCalc
bin/asciiGraph
bin/imageEditor
bin/imageSynth
include/SeContext.h
include/SeCurve.h
include/SeExprBuiltins.h
include/SeExprEditor/SeExprEdBrowser.h
include/SeExprEditor/SeExprEdColorCurve.h
include/SeExprEditor/SeExprEdColorSwatchWidget.h
include/SeExprEditor/SeExprEdControl.h
include/SeExprEditor/SeExprEdControlCollection.h
include/SeExprEditor/SeExprEdCurve.h
include/SeExprEditor/SeExprEdDialog.h
include/SeExprEditor/SeExprEdFileDialog.h
include/SeExprEditor/SeExprEdGrapher2d.h
include/SeExprEditor/SeExprEdPopupDocumentation.h
include/SeExprEditor/SeExprEdShortEdit.h
include/SeExprEditor/SeExprEditor.h
include/SeExprFunc.h
include/SeExprMacros.h
include/SeExprNode.h
include/SeExprParser.h
include/SeExpression.h
include/SeMutex.h
include/SeNoise.h
include/SeNoiseTables.h
include/SePlatform.h
include/SeVec3d.h
lib/libSeExpr.a
lib/libSeExpr.so
lib/libSeExprEditor.so
%%PYTHON_SITELIBDIR%%/SeExpr/__init__.py
%%PYTHON_SITELIBDIR%%/SeExpr/expreditor.so
share/SeExpr/demo/segraph
share/SeExpr/expressions/fbm.se
share/SeExpr/expressions/noise.se
share/SeExpr/expressions/noisecolor1.se
share/SeExpr/expressions/noisecolor2.se
share/SeExpr/expressions/raytrace.se
share/SeExpr/expressions/sinc.se