1 # Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
8 CATEGORIES= graphics math
10 MAINTAINER= danfe@FreeBSD.org
11 COMMENT= Embeddable expression evaluation language
15 LIB_DEPENDS= libpng.so:graphics/png
21 USES= bison cmake compiler:c++11-lang gl qt:5
24 USE_QT= buildtools_build qmake_build core gui opengl widgets
26 MAKE_JOBS_UNSAFE= yes # https://github.com/wdas/seexpr/issues/40
28 OPTIONS_DEFINE= LLVM PYTHON
31 LLVM_DESC= Build with LLVM ${LLVM_DEFAULT:C/.$$//} backend
32 LLVM_LIB_DEPENDS= libLLVM.so:devel/llvm${LLVM_DEFAULT}
33 LLVM_CMAKE_OFF= -DENABLE_LLVM_BACKEND:BOOL=FALSE
35 PYTHON_LIB_DEPENDS= ${PY_BOOST}
36 PYTHON_USES= pyqt:5 python
37 PYTHON_USE= PYQT=core_build,sip_build,widgets_build
38 PYTHON_CMAKE_ON= -DPYQT_SIP_DIR:STRING=${PYQT_SIPDIR}
39 PYTHON_CMAKE_OFF= -DUSE_PYTHON:BOOL=FALSE
41 .if ! ${MACHINE_CPU:Msse41}
42 CMAKE_ARGS+= -DENABLE_SSE4:BOOL=FALSE
46 @${REINPLACE_CMD} -e '/<alloca\.h>/d' ${WRKSRC}/src/SeExpr2/Platform.h
47 @${REINPLACE_CMD} -e '/pkgconfig/s/share/libdata/' \
48 ${WRKSRC}/CMakeLists.txt
49 .if !defined(WITH_DEBUG)
50 @${REINPLACE_CMD} -e 's/-g //' ${WRKSRC}/CMakeLists.txt
53 .include <bsd.port.mk>