Bump graphics/hugin to version 2019.2.0_4
[dports.git] / graphics / seexpr / Makefile
1 # Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       seexpr
5 PORTVERSION=    3.0.1
6 DISTVERSIONPREFIX=      v
7 PORTREVISION=   1
8 CATEGORIES=     graphics math
9
10 MAINTAINER=     danfe@FreeBSD.org
11 COMMENT=        Embeddable expression evaluation language
12
13 LICENSE=        APACHE20
14
15 LIB_DEPENDS=    libpng.so:graphics/png
16
17 USE_GITHUB=     yes
18 GH_ACCOUNT=     wdas
19 GH_PROJECT=     SeExpr
20
21 USES=           bison cmake compiler:c++11-lang gl qt:5
22 USE_GL=         gl glu
23 USE_LDCONFIG=   yes
24 USE_QT=         buildtools_build qmake_build core gui opengl widgets
25
26 MAKE_JOBS_UNSAFE=       yes     # https://github.com/wdas/seexpr/issues/40
27
28 OPTIONS_DEFINE= LLVM PYTHON
29 OPTIONS_SUB=    yes
30
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
34
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
40
41 .if ! ${MACHINE_CPU:Msse41}
42 CMAKE_ARGS+=    -DENABLE_SSE4:BOOL=FALSE
43 .endif
44
45 post-patch:
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
51 .endif
52
53 .include <bsd.port.mk>