svn commit: r526256 - head/graphics/seexpr
Alexey Dokuchaev
danfe at FreeBSD.org
Sun Feb 16 08:47:29 UTC 2020
Author: danfe
Date: Sun Feb 16 08:47:28 2020
New Revision: 526256
URL: https://svnweb.freebsd.org/changeset/ports/526256
Log:
- Fix installation of `pkgconfig/seexpr2.pc' file
- Allow to optionally build the Python bindings
Modified:
head/graphics/seexpr/Makefile
head/graphics/seexpr/pkg-plist
Modified: head/graphics/seexpr/Makefile
==============================================================================
--- head/graphics/seexpr/Makefile Sun Feb 16 08:42:00 2020 (r526255)
+++ head/graphics/seexpr/Makefile Sun Feb 16 08:47:28 2020 (r526256)
@@ -4,6 +4,7 @@
PORTNAME= seexpr
PORTVERSION= 3.0.1
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= graphics math
MAINTAINER= danfe at FreeBSD.org
@@ -25,14 +26,25 @@ USE_QT= buildtools_build qmake_build core gui opengl
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 '/<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
Modified: head/graphics/seexpr/pkg-plist
==============================================================================
--- head/graphics/seexpr/pkg-plist Sun Feb 16 08:42:00 2020 (r526255)
+++ head/graphics/seexpr/pkg-plist Sun Feb 16 08:47:28 2020 (r526256)
@@ -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
More information about the svn-ports-all
mailing list