Tweak devel/racer version 2.1.31
[dports.git] / science / vipster / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       vipster
4 DISTVERSIONPREFIX=      v
5 DISTVERSION=    1.18b-75
6 DISTVERSIONSUFFIX=      -gfa5853f
7 PORTREVISION=   1
8 CATEGORIES=     science
9
10 MAINTAINER=     yuri@FreeBSD.org
11 COMMENT=        Crystalline and molecular structure visualisation program
12
13 LICENSE=        GPLv3
14 LICENSE_FILE=   ${WRKSRC}/LICENSE
15
16 USES=           cmake compiler
17 USE_GITHUB=     yes
18 GH_ACCOUNT=     sgsaenger
19 USE_LDCONFIG=   yes
20
21 OPTIONS_DEFINE=         DESKTOP PYTHON
22 OPTIONS_DEFAULT=        DESKTOP
23 OPTIONS_SUB=            yes
24
25 DESKTOP_DESC=           Build QT-based desktop app
26 DESKTOP_CMAKE_BOOL=     DESKTOP
27 DESKTOP_USES=           qt:5
28 DESKTOP_USE=            QT=core,gui,widgets,buildtools_build,qmake_build
29
30 PYTHON_CMAKE_BOOL=      PYTHON
31 PYTHON_BROKEN=          Bundles pybind11: https://github.com/sgsaenger/vipster/issues/23
32
33 # use clang from ports because older clang (clang-6) lacks the c++17 feature std::mmap::extract
34
35 .include <bsd.port.pre.mk>
36
37 .if ${CHOSEN_COMPILER_TYPE} == clang
38 LLVM_VER=       ${LLVM_DEFAULT}
39 BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER}
40 CPP=            clang-cpp${LLVM_VER}
41 CC=             clang${LLVM_VER}
42 CXX=            clang++${LLVM_VER}
43 .else
44 USE_GCC=        yes
45 .endif
46
47 PORTSCOUT=      limit:^[0-9][0-9a-z\.]*$$
48
49 do-test:
50         @cd ${BUILD_WRKSRC} && \
51                 ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DTESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
52                 ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
53                 ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
54
55 .include <bsd.port.post.mk>