Lines 3-12
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= cgal |
4 |
PORTNAME= cgal |
5 |
PORTVERSION= 4.9 |
5 |
PORTVERSION= 4.9 |
6 |
PORTREVISION= 5 |
6 |
PORTREVISION= 6 |
7 |
CATEGORIES= math |
7 |
CATEGORIES= math |
8 |
MASTER_SITES= https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.9/ |
8 |
MASTER_SITES= https://github.com/${PORTNAME:tu}/${PORTNAME}/releases/download/releases/${DISTNAME}/ |
9 |
DISTNAME= CGAL-${PORTVERSION} |
9 |
DISTNAME= ${PORTNAME:tu}-${PORTVERSION} |
10 |
|
10 |
|
11 |
MAINTAINER= wen@FreeBSD.org |
11 |
MAINTAINER= wen@FreeBSD.org |
12 |
COMMENT= Computational geometry library |
12 |
COMMENT= Computational geometry library |
Lines 14-39
Link Here
|
14 |
LICENSE= GPLv3 LGPL3 |
14 |
LICENSE= GPLv3 LGPL3 |
15 |
LICENSE_COMB= multi |
15 |
LICENSE_COMB= multi |
16 |
|
16 |
|
17 |
BUILD_DEPENDS= ${LOCALBASE}/include/boost/tuple/tuple.hpp:devel/boost-libs |
17 |
BROKEN_sparc64= does not build: fails to compile all_files.cpp |
18 |
RUN_DEPENDS= ${LOCALBASE}/include/boost/tuple/tuple.hpp:devel/boost-libs |
18 |
|
19 |
LIB_DEPENDS= libmpfr.so:math/mpfr \ |
19 |
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3 \ |
|
|
20 |
${LOCALBASE}/lib/libntl.a:math/ntl |
21 |
LIB_DEPENDS= libboost_system.so:devel/boost-libs \ |
22 |
libmpfr.so:math/mpfr \ |
20 |
libgmp.so:math/gmp |
23 |
libgmp.so:math/gmp |
21 |
|
24 |
|
22 |
BROKEN_sparc64= does not build: fails to compile all_files.cpp |
25 |
#TODO math/mpfi, math/rs, graphics/qglviewer |
|
|
26 |
#Not yet in ports |
23 |
|
27 |
|
|
|
28 |
USES= cmake shebangfix tar:xz |
24 |
USE_LDCONFIG= yes |
29 |
USE_LDCONFIG= yes |
25 |
USES= cmake shebangfix tar:xz |
|
|
26 |
USE_QT5= buildtools_build core gui opengl qmake_build widgets |
27 |
SHEBANG_FILES= scripts/cgal_create_CMakeLists \ |
30 |
SHEBANG_FILES= scripts/cgal_create_CMakeLists \ |
28 |
scripts/cgal_create_cmake_script |
31 |
scripts/cgal_create_cmake_script |
29 |
|
32 |
|
|
|
33 |
OPTIONS_DEFINE= VISUALIZATION QT5 |
34 |
VISUALIZATION_IMPLIES= QT5 |
35 |
OPTIONS_SUB= yes |
36 |
|
37 |
VISUALIZATION_DESC= Visualization Required for most demos (Qt5 Geomview) |
38 |
VISUALIZATION_LIB_DEPENDS= libgeomview.so:graphics/geomview |
39 |
|
30 |
.include <bsd.port.options.mk> |
40 |
.include <bsd.port.options.mk> |
31 |
|
41 |
|
32 |
.if ${ARCH} == i386 && ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1100000 && ${OSVERSION} < 1100508) || (${OSVERSION} >= 1200000 && ${OSVERSION} < 1200017)) |
42 |
.if ${PORT_OPTIONS:MQT5} |
33 |
# clang internal error in clang 3.8 |
43 |
CMAKE_ARGS+= -DWITH_CGAL_Qt5=ON |
34 |
BUILD_DEPENDS+= clang39:devel/llvm39 |
44 |
USE_QT5+= core gui opengl widgets svg buildtools_build qmake_build |
35 |
CC= clang39 |
45 |
USE_GL+= gl glu |
36 |
CXX= clang++39 |
46 |
.else |
|
|
47 |
CMAKE_ARGS+= -DWITH_CGAL_Qt5=OFF |
37 |
.endif |
48 |
.endif |
38 |
|
49 |
|
39 |
.include <bsd.port.mk> |
50 |
.include <bsd.port.mk> |