mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
bd9cee8843
PR: ports/91604 Submitted by: Pedro F. Giffuni <giffunip@asme.org>
40 lines
996 B
Makefile
40 lines
996 B
Makefile
# New ports collection makefile for: tetgen
|
|
# Date created: 16 December 2005
|
|
# Whom: Pedro F. Giffuni
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tetgen
|
|
PORTVERSION= 1.3.4
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://www.wias-berlin.de/people/si/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
MAINTAINER= giffunip@asme.org
|
|
COMMENT= A Quality Tetrahedral Mesh Generator and Delaunay Triangulator
|
|
|
|
NO_CDROM= "Tetgen is for academic or personal use only"
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
|
|
MAKEFILE= makefile
|
|
ALL_TARGET= tetgen tetlib
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
test: build
|
|
(cd ${INSTALL_WRKSRC} && ./tetgen -p example.poly )
|
|
.endif
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/tetgen ${PREFIX}/bin
|
|
@${INSTALL_DATA} ${WRKSRC}/tetgen.h ${PREFIX}/include
|
|
@${INSTALL_DATA} ${WRKSRC}/libtet.a ${PREFIX}/lib
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/manual.pdf ${DOCSDIR}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/example.poly ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|