aboutsummaryrefslogtreecommitdiff
path: root/graphics/seexpr
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-02-16 08:47:28 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-02-16 08:47:28 +0000
commit228ba65f96b27652941244032567e9fd275fb43d (patch)
treed77d2027192406f22122b391b82167b47ac0b4dc /graphics/seexpr
parent6a601648bcab0d80c99fe1f44ff829e4d23ed340 (diff)
downloadports-228ba65f96b27652941244032567e9fd275fb43d.tar.gz
ports-228ba65f96b27652941244032567e9fd275fb43d.zip
Notes
Diffstat (limited to 'graphics/seexpr')
-rw-r--r--graphics/seexpr/Makefile14
-rw-r--r--graphics/seexpr/pkg-plist7
2 files changed, 19 insertions, 2 deletions
diff --git a/graphics/seexpr/Makefile b/graphics/seexpr/Makefile
index 2072abb6a6be..d64b9e9c1342 100644
--- a/graphics/seexpr/Makefile
+++ b/graphics/seexpr/Makefile
@@ -4,6 +4,7 @@
PORTNAME= seexpr
PORTVERSION= 3.0.1
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= graphics math
MAINTAINER= danfe@FreeBSD.org
@@ -25,7 +26,16 @@ 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
@@ -33,6 +43,8 @@ CMAKE_ARGS+= -DENABLE_SSE4:BOOL=FALSE
post-patch:
@${REINPLACE_CMD} -e '/<alloca\.h>/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
diff --git a/graphics/seexpr/pkg-plist b/graphics/seexpr/pkg-plist
index af8882838e65..c11a753c8b4b 100644
--- a/graphics/seexpr/pkg-plist
+++ b/graphics/seexpr/pkg-plist
@@ -65,6 +65,7 @@ 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
@@ -105,7 +106,11 @@ 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