aboutsummaryrefslogtreecommitdiffstats
path: root/math/cgal/Makefile
blob: 1ce24775b2a8e3709331a74011f777c00f8d896d (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
40
41
42
43
44
45
46
47
48
49
50
# Created by: Jean-Yves Lefort <jylefort@FreeBSD.org>
# $FreeBSD$

PORTNAME=   cgal
PORTVERSION=    4.1
CATEGORIES= math
MASTER_SITES=   http://gforge.inria.fr/frs/download.php/31640/:source1 \
        http://gforge.inria.fr/frs/download.php/31645/:source2 \
        http://gforge.inria.fr/frs/download.php/31644/:source3
DISTNAME=   CGAL-${PORTVERSION}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}:source1 \
        ${DISTNAME}-doc_html${EXTRACT_SUFX}:source2 \
        ${PORTNAME}_manual.pdf:source3
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-doc_html${EXTRACT_SUFX}

MAINTAINER= wenheping@gmail.com
COMMENT=    A computational geometry library

LICENSE=    GPLv3

BUILD_DEPENDS=  ${LOCALBASE}/include/boost/tuple/tuple.hpp:${PORTSDIR}/devel/boost-libs
RUN_DEPENDS=    ${LOCALBASE}/include/boost/tuple/tuple.hpp:${PORTSDIR}/devel/boost-libs
LIB_DEPENDS=    GLU.1:${PORTSDIR}/graphics/libGLU \
        gmp.10:${PORTSDIR}/math/gmp \
        mpfr.4:${PORTSDIR}/math/mpfr

FETCH_ARGS= -pRr

USE_BZIP2=      yes
USE_LDCONFIG=       yes
USES=           cmake
USE_QT4=        corelib opengl qmake_build gui moc_build rcc_build uic_build
HAS_CONFIGURE=      yes
DOCSDIR=        ${PREFIX}/share/doc/CGAL-${PORTVERSION}
LDFLAGS+=       -L${LOCALBASE}/lib

MAN1=           cgal_create_cmake_script.1

NO_STAGE=   yes
post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in AUTHORS CHANGES LICENSE LICENSE.FREE_USE LICENSE.GPL LICENSE.LGPL
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}_manual.pdf ${DOCSDIR}
.endif
    ${INSTALL_MAN} ${WRKSRC}/auxiliary/cgal_create_cmake_script.1 ${PREFIX}/man/man1/

.include <bsd.port.mk>