Update security/clamav to version 0.102.3,1
[dports.git] / math / cgal / Makefile
1 # Created by: Jean-Yves Lefort <jylefort@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       cgal
5 PORTVERSION=    5.0.2
6 CATEGORIES=     math
7 MASTER_SITES=   https://github.com/${PORTNAME:tu}/${PORTNAME}/releases/download/releases/${DISTNAME}/
8 DISTNAME=       ${PORTNAME:tu}-${PORTVERSION}
9
10 MAINTAINER=     wen@FreeBSD.org
11 COMMENT=        Computational geometry library
12
13 LICENSE=        GPLv3 LGPL3
14 LICENSE_COMB=   multi
15
16 BROKEN_sparc64= does not build: fails to compile all_files.cpp
17
18 BUILD_DEPENDS=  ${LOCALBASE}/lib/libntl.a:math/ntl
19 LIB_DEPENDS=    libboost_system.so:devel/boost-libs \
20                 libmpfr.so:math/mpfr \
21                 libgmp.so:math/gmp
22
23 #TODO math/mpfi, math/rs, graphics/qglviewer
24 #Not yet in ports
25
26 USES=           cmake eigen:3 shebangfix tar:xz
27 USE_LDCONFIG=   yes
28 SHEBANG_FILES=  scripts/cgal_create_CMakeLists \
29                 scripts/cgal_create_cmake_script
30
31 OPTIONS_DEFINE=         VISUALIZATION QT5
32 VISUALIZATION_IMPLIES=  QT5
33 OPTIONS_SUB=            yes
34
35 VISUALIZATION_DESC=             Visualization Required for most demos (Qt5 Geomview)
36 VISUALIZATION_LIB_DEPENDS=      libgeomview.so:graphics/geomview
37
38 .include <bsd.port.options.mk>
39
40 .if ${PORT_OPTIONS:MQT5}
41 USES+=          gl qt:5
42 CMAKE_ARGS+=    -DWITH_CGAL_Qt5=ON
43 USE_QT+=        core gui opengl widgets svg buildtools_build qmake_build xml
44 USE_GL+=        gl glu
45 .else
46 CMAKE_ARGS+=    -DWITH_CGAL_Qt5=OFF
47 .endif
48
49 .include <bsd.port.mk>