mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
37 lines
914 B
Makefile
37 lines
914 B
Makefile
# Created by: Pedro F. Giffuni
|
|
|
|
PORTNAME= tetgen
|
|
PORTVERSION= 1.5.1
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://wias-berlin.de/software/tetgen/1.5/src/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= Quality Tetrahedral Mesh Generator and Delaunay Triangulator
|
|
|
|
LICENSE= AGPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
MAKEFILE= makefile
|
|
ALL_TARGET= tetgen tetlib
|
|
CXXFLAGS+= -fPIC
|
|
|
|
PLIST_FILES= bin/tetgen include/tetgen.h lib/libtet.a
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
PORTEXAMPLES= example.poly
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tetgen ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/tetgen.h ${STAGEDIR}${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/libtet.a ${STAGEDIR}${PREFIX}/lib
|
|
|
|
do-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/example.poly ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
do-test:
|
|
cd ${INSTALL_WRKSRC} && ./tetgen -p example.poly
|
|
|
|
.include <bsd.port.mk>
|