aboutsummaryrefslogtreecommitdiffstats
path: root/cad/gmsh
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2006-01-18 04:36:45 +0800
committerthierry <thierry@FreeBSD.org>2006-01-18 04:36:45 +0800
commitdf89058d235de512bb68d70cb5fc7aa59f2f2642 (patch)
tree22dc6bcc475b63a21a7c337d9ed3fb4cebe91a4f /cad/gmsh
parenta0bf104ee7e6544f7cb28b33652331fb26ba45a1 (diff)
downloadfreebsd-ports-gnome-df89058d235de512bb68d70cb5fc7aa59f2f2642.tar.gz
freebsd-ports-gnome-df89058d235de512bb68d70cb5fc7aa59f2f2642.tar.zst
freebsd-ports-gnome-df89058d235de512bb68d70cb5fc7aa59f2f2642.zip
Plug Tetgen.
Tested by: Pedro F. Giffuni <giffunip (at) yahoo.com>
Diffstat (limited to 'cad/gmsh')
-rw-r--r--cad/gmsh/Makefile18
1 files changed, 17 insertions, 1 deletions
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 <bsd.port.pre.mk>
.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