Index: head/graphics/seexpr/Makefile =================================================================== --- head/graphics/seexpr/Makefile (revision 526255) +++ head/graphics/seexpr/Makefile (revision 526256) @@ -1,40 +1,52 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= seexpr PORTVERSION= 3.0.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= graphics math MAINTAINER= danfe@FreeBSD.org COMMENT= Embeddable expression evaluation language LICENSE= APACHE20 LIB_DEPENDS= libpng.so:graphics/png USE_GITHUB= yes GH_ACCOUNT= wdas GH_PROJECT= SeExpr USES= bison cmake compiler:c++11-lang gl qt:5 USE_GL= gl glu USE_LDCONFIG= yes USE_QT= buildtools_build qmake_build core gui opengl widgets MAKE_JOBS_UNSAFE= yes # https://github.com/wdas/seexpr/issues/40 # XXX: fix the build errors and convert to OPTIONs -CMAKE_ARGS= -DENABLE_LLVM_BACKEND:BOOL=FALSE -DUSE_PYTHON:BOOL=FALSE +CMAKE_ARGS= -DENABLE_LLVM_BACKEND:BOOL=FALSE +OPTIONS_DEFINE= PYTHON +OPTIONS_SUB= yes + +PYTHON_LIB_DEPENDS= ${PY_BOOST} +PYTHON_USES= pyqt:5 python +PYTHON_USE= PYQT=core_build,sip_build,widgets_build +PYTHON_CMAKE_ON= -DPYQT_SIP_DIR:STRING=${PYQT_SIPDIR} +PYTHON_CMAKE_OFF= -DUSE_PYTHON:BOOL=FALSE + .if ! ${MACHINE_CPU:Msse41} CMAKE_ARGS+= -DENABLE_SSE4:BOOL=FALSE .endif post-patch: @${REINPLACE_CMD} -e '//d' ${WRKSRC}/src/SeExpr2/Platform.h + @${REINPLACE_CMD} -e '/pkgconfig/s/share/libdata/' \ + ${WRKSRC}/CMakeLists.txt .if !defined(WITH_DEBUG) @${REINPLACE_CMD} -e 's/-g //' ${WRKSRC}/CMakeLists.txt .endif .include Index: head/graphics/seexpr/pkg-plist =================================================================== --- head/graphics/seexpr/pkg-plist (revision 526255) +++ head/graphics/seexpr/pkg-plist (revision 526256) @@ -1,111 +1,116 @@ bin/asciiCalc2 bin/asciiGraph2 bin/imageEditor2 bin/imageSynth2 bin/imageSynthPaint3d2 include/SeExpr2/Context.h include/SeExpr2/ContextUtils.h include/SeExpr2/Curve.h include/SeExpr2/Evaluator.h include/SeExpr2/ExprBuiltins.h include/SeExpr2/ExprConfig.h include/SeExpr2/ExprEnv.h include/SeExpr2/ExprFunc.h include/SeExpr2/ExprFuncStandard.h include/SeExpr2/ExprFuncX.h include/SeExpr2/ExprLLVM.h include/SeExpr2/ExprLLVMAll.h include/SeExpr2/ExprMultiExpr.h include/SeExpr2/ExprNode.h include/SeExpr2/ExprParser.h include/SeExpr2/ExprPatterns.h include/SeExpr2/ExprType.h include/SeExpr2/ExprWalker.h include/SeExpr2/Expression.h include/SeExpr2/Interpreter.h include/SeExpr2/Mutex.h include/SeExpr2/Noise.h include/SeExpr2/NoiseTables.h include/SeExpr2/Platform.h include/SeExpr2/SeContext.h include/SeExpr2/SeExprMacros.h include/SeExpr2/StringUtils.h include/SeExpr2/UI/BasicExpression.h include/SeExpr2/UI/ControlSpec.h include/SeExpr2/UI/Editable.h include/SeExpr2/UI/EditableExpression.h include/SeExpr2/UI/ExprBrowser.h include/SeExpr2/UI/ExprColorCurve.h include/SeExpr2/UI/ExprColorSwatch.h include/SeExpr2/UI/ExprCompletionModel.h include/SeExpr2/UI/ExprControl.h include/SeExpr2/UI/ExprControlCollection.h include/SeExpr2/UI/ExprCurve.h include/SeExpr2/UI/ExprDeepWater.h include/SeExpr2/UI/ExprDialog.h include/SeExpr2/UI/ExprEditor.h include/SeExpr2/UI/ExprFileDialog.h include/SeExpr2/UI/ExprGrapher2d.h include/SeExpr2/UI/ExprHelp.h include/SeExpr2/UI/ExprHighlighter.h include/SeExpr2/UI/ExprPopupDoc.h include/SeExpr2/UI/ExprShortEdit.h include/SeExpr2/UI/ExprSpecType.h include/SeExpr2/UI/generated/ExprSpecParser.tab.h include/SeExpr2/VarBlock.h include/SeExpr2/Vec.h include/SeExpr2/generated/ExprParser.tab.h include/SeExpr2/parser/ASTNode.h include/SeExpr2/parser/SeExprLex.h include/SeExpr2/parser/SeExprParse.h include/SeExpr2/seexpr2_export.h lib/libSeExpr2.so lib/libSeExpr2.so.2 lib/libSeExpr2.so.2.0 lib/libSeExpr2Editor.so lib/libSeExpr2Editor.so.2.0 lib/libSeExpr2Editor.so.3 +libdata/pkgconfig/seexpr2.pc share/SeExpr2/demos/imageSynth/examples/111.se share/SeExpr2/demos/imageSynth/examples/fbm.se share/SeExpr2/demos/imageSynth/examples/noise.se share/SeExpr2/demos/imageSynth/examples/noisecolor1.se share/SeExpr2/demos/imageSynth/examples/noisecolor2.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/RemapShadowContribution.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/bark_eucalyptusColor.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/bark_eucalyptusDisp.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/blackToWhite.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/candycane.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/color_noise.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/dither_with_gamma.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/freakles.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/lines.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/rope_Basic.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/scaleTool.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/select_byColorDark.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/select_byThreshold.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/textureI_nstancerCircular.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/texture_Instancer.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/texture_Tiler.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/threads.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/threshold.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/uv_testPattern.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/wood_Nicks.se share/SeExpr2/demos/imageSynth/examples/paint3d_test/xyz_colorNoise.se share/SeExpr2/demos/imageSynth/examples/raytrace.se share/SeExpr2/demos/imageSynth/examples/run.sh share/SeExpr2/demos/imageSynth/examples/sinc.se share/SeExpr2/demos/imageSynth/examples/test.se share/SeExpr2/expressions/fbm.se share/SeExpr2/expressions/noise.se share/SeExpr2/expressions/noisecolor1.se share/SeExpr2/expressions/noisecolor2.se share/SeExpr2/expressions/raytrace.se share/SeExpr2/expressions/sinc.se share/SeExpr2/utils/eval share/SeExpr2/utils/listVar share/cmake/SeExpr2/seexpr2-config.cmake share/cmake/SeExpr2/seexpr2-version.cmake -share/pkgconfig/seexpr2.pc share/test/SeExpr2/BlockTests share/test/SeExpr2/VarBlockExample share/test/SeExpr2/dirtSimple +%%PYTHON%%%%PYTHON_SITELIBDIR%%/SeExpr2/__init__.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/SeExpr2/expreditor2.so +%%PYTHON%%%%PYTHON_SITELIBDIR%%/SeExprPy/__init__.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/SeExprPy/core.so +%%PYTHON%%%%PYTHON_SITELIBDIR%%/SeExprPy/utils.py