aboutsummaryrefslogtreecommitdiffstats
path: root/math/triangle/Makefile
blob: 269ecd6a2adea89b54cf03b6c499f314f6a8b79d (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
# New ports collection makefile for:  triangle
# Date created:               16 Octobre 2004
# Whom:                       Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#

PORTNAME=   triangle
PORTVERSION=    1.6
PORTREVISION=   2
CATEGORIES= math
MASTER_SITES=   http://cm.bell-labs.com/netlib/voronoi/
DISTNAME=   ${PORTNAME}
DIST_SUBDIR=    ${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Two-Dimensional Quality Mesh Generator and Delaunay Triangulator

NO_CDROM=   "Triangle must not be sold for profit"

NO_WRKSUBDIR=   yes
USE_ZIP=    yes
USE_XORG=   x11
MAKEFILE=   makefile

PLIST_FILES=    bin/triangle bin/showme

do-install:
    ${INSTALL_PROGRAM} ${PLIST_FILES:S|^bin|${WRKSRC}|} ${PREFIX}/bin

.if defined(MAINTAINER_MODE)
test:   build
    (cd ${INSTALL_WRKSRC} && ./triangle -p A.poly && ./showme A.1.poly)
.endif

.include <bsd.port.mk>