From df89058d235de512bb68d70cb5fc7aa59f2f2642 Mon Sep 17 00:00:00 2001 From: thierry Date: Tue, 17 Jan 2006 20:36:45 +0000 Subject: Plug Tetgen. Tested by: Pedro F. Giffuni --- cad/gmsh/Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/cad/gmsh/Makefile b/cad/gmsh/Makefile index 5b1e282b684d..d547b5ca519a 100644 --- a/cad/gmsh/Makefile +++ b/cad/gmsh/Makefile @@ -7,6 +7,7 @@ PORTNAME= gmsh PORTVERSION= 1.62.0 +PORTREVISION= 1 CATEGORIES= cad MASTER_SITES= http://www.geuz.org/gmsh/src/ DISTNAME= ${PORTNAME}-${PORTVERSION}-source @@ -21,14 +22,21 @@ LIB_DEPENDS= gsl.7:${PORTSDIR}/math/gsl \ .if defined(PACKAGE_BUILDING) WITHOUT_TRIANGLE= yes +WITHOUT_TETGEN= yes .endif .if !defined(WITHOUT_TRIANGLE) EXTRACT_DEPENDS+= ${NONEXISTENT}:${TRIANGLE_PORTDIR}:patch +TRIANGLE_PORTDIR= ${PORTSDIR}/math/triangle +.endif + +.if !defined(WITHOUT_TETGEN) +EXTRACT_DEPENDS+= ${NONEXISTENT}:${TETGEN_PORTDIR}:patch +TETGEN_PORTDIR= ${PORTSDIR}/math/tetgen +TETGEN_SRC= predicates.cxx tetgen.cxx tetgen.h .endif WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -TRIANGLE_PORTDIR= ${PORTSDIR}/math/triangle USE_REINPLACE= yes GNU_CONFIGURE= yes @@ -45,6 +53,10 @@ MAN1= gmsh.1 NO_CDROM= "Triangle must not be sold for profit" .endif +.if !defined(WITHOUT_TETGEN) +NO_CDROM+= "Tetgen must not be sold for profit" +.endif + .include .if ${OSVERSION} < 500000 @@ -57,6 +69,10 @@ post-extract: ${CP} `cd ${TRIANGLE_PORTDIR}; ${MAKE} -V WRKSRC`/triangle.* \ ${WRKSRC}/contrib/Triangle .endif +.if !defined(WITHOUT_TETGEN) + ${CP} ${TETGEN_SRC:S|^|`cd ${TETGEN_PORTDIR}; ${MAKE} -V WRKSRC`/|} \ + ${WRKSRC}/contrib/Tetgen +.endif pre-configure: .for demo in lowmem-anim.geo -- cgit