aboutsummaryrefslogtreecommitdiffstats
path: root/math/cgal/Makefile
blob: 90d3efc04b299c3b87a4e32bb5ab78137f504e0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Jean-Yves Lefort <jylefort@FreeBSD.org>
# $FreeBSD$

PORTNAME=   cgal
PORTVERSION=    4.9
PORTREVISION=   5
CATEGORIES= math
MASTER_SITES=   https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.9/
DISTNAME=   CGAL-${PORTVERSION}

MAINTAINER= wen@FreeBSD.org
COMMENT=    Computational geometry library

LICENSE=    GPLv3 LGPL3
LICENSE_COMB=   multi

BUILD_DEPENDS=  ${LOCALBASE}/include/boost/tuple/tuple.hpp:devel/boost-libs
RUN_DEPENDS=    ${LOCALBASE}/include/boost/tuple/tuple.hpp:devel/boost-libs
LIB_DEPENDS=    libmpfr.so:math/mpfr \
        libgmp.so:math/gmp

BROKEN_sparc64= does not build: fails to compile all_files.cpp

USE_LDCONFIG=   yes
USES=       cmake shebangfix tar:xz
USE_QT5=    buildtools_build core gui opengl qmake_build widgets
SHEBANG_FILES=  scripts/cgal_create_CMakeLists \
        scripts/cgal_create_cmake_script

.include <bsd.port.options.mk>

.if ${ARCH} == i386 && ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1100000 && ${OSVERSION} < 1100508) || (${OSVERSION} >= 1200000 && ${OSVERSION} < 1200017))
# clang internal error in clang 3.8
BUILD_DEPENDS+= clang39:devel/llvm39
CC=     clang39
CXX=        clang++39
.endif

.include <bsd.port.mk>