aboutsummaryrefslogtreecommitdiffstats
path: root/math/rapid/Makefile
blob: 886496453b25896a18530d6002a935871e9ef72f (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: Jason W. Bacon <jwbacon@tds.net>
# $FreeBSD$

PORTNAME=   rapid
PORTVERSION=    2.01
CATEGORIES= math science graphics
MASTER_SITES=   http://www.cs.sunysb.edu/~algorith/implement/RAPID/distrib/ \
        http://www.neuro.mcw.edu/Ports/distfiles/
DISTNAME=   RAPID_v2_01

MAINTAINER= jwbacon@tds.net
COMMENT=    Robust and Accurate Polygon Interference Detection

RESTRICTED= For any commercial purpose, you must request a license from http://www.cs.unc.edu/~geom/OBB/OBBT.html

SUB_FILES=  pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message

ALL_TARGET=
MAKE_JOBS_UNSAFE=   yes

MAN1=   rapid.1

NO_STAGE=   yes
.include <bsd.port.pre.mk>

post-extract:
    ${REINPLACE_CMD} -E "s/friend RAPID_Collide/friend int RAPID_Collide/" ${WRKSRC}/RAPID_private.H

do-install:
    ${MKDIR} ${PREFIX}/include/RAPID
    ${INSTALL_DATA} ${WRKSRC}/*.H ${PREFIX}/include/RAPID
    ${INSTALL_DATA} ${WRKSRC}/libRAPID.a ${PREFIX}/lib
    ${INSTALL_MAN} ${FILESDIR}/rapid.1 ${MANPREFIX}/man/man1

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>