1 # Created by: Jean-Yves Lefort <jylefort@FreeBSD.org>
7 MASTER_SITES= https://github.com/${PORTNAME:tu}/${PORTNAME}/releases/download/releases/${DISTNAME}/
8 DISTNAME= ${PORTNAME:tu}-${PORTVERSION}
10 MAINTAINER= wen@FreeBSD.org
11 COMMENT= Computational geometry library
16 BROKEN_sparc64= does not build: fails to compile all_files.cpp
18 BUILD_DEPENDS= ${LOCALBASE}/lib/libntl.a:math/ntl
19 LIB_DEPENDS= libboost_system.so:devel/boost-libs \
20 libmpfr.so:math/mpfr \
23 #TODO math/mpfi, math/rs, graphics/qglviewer
26 USES= cmake eigen:3 shebangfix tar:xz
28 SHEBANG_FILES= scripts/cgal_create_CMakeLists \
29 scripts/cgal_create_cmake_script
31 OPTIONS_DEFINE= VISUALIZATION QT5
32 VISUALIZATION_IMPLIES= QT5
35 VISUALIZATION_DESC= Visualization Required for most demos (Qt5 Geomview)
36 VISUALIZATION_LIB_DEPENDS= libgeomview.so:graphics/geomview
38 .include <bsd.port.options.mk>
40 .if ${PORT_OPTIONS:MQT5}
42 CMAKE_ARGS+= -DWITH_CGAL_Qt5=ON
43 USE_QT+= core gui opengl widgets svg buildtools_build qmake_build xml
46 CMAKE_ARGS+= -DWITH_CGAL_Qt5=OFF
49 .include <bsd.port.mk>