aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2003-08-22 05:24:42 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2003-08-22 05:24:42 +0000
commita70abbef2ee2992e9453eb00f58fe01f51f58560 (patch)
tree4c854478d05070441bd9e5fefaf0a2cf4c2b48bb /cad
parentc6af75955a19346005c8e09e6290700c47bf8632 (diff)
downloadports-a70abbef2ee2992e9453eb00f58fe01f51f58560.tar.gz
ports-a70abbef2ee2992e9453eb00f58fe01f51f58560.zip
Notes
Diffstat (limited to 'cad')
-rw-r--r--cad/gmsh/Makefile21
-rw-r--r--cad/gmsh/distinfo1
2 files changed, 20 insertions, 2 deletions
diff --git a/cad/gmsh/Makefile b/cad/gmsh/Makefile
index 15892a32e045..2058f06f6c3c 100644
--- a/cad/gmsh/Makefile
+++ b/cad/gmsh/Makefile
@@ -1,6 +1,6 @@
# New ports collection makefile for: gmsh
# Date created: 19 April 2003
-# Whom: Pedro Giffuni <giffunip@yahoo.com>
+# Whom: Pedro Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#
@@ -8,9 +8,15 @@
PORTNAME= gmsh
PORTVERSION= 1.45.2
CATEGORIES= cad
-MASTER_SITES= http://www.geuz.org/gmsh/src/
+MASTER_SITES= http://www.geuz.org/gmsh/src/ \
+ http://www.cs.berkeley.edu/~jrc/:triangle
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
EXTRACT_SUFX= .tgz
+.ifdef USE_TRIANGLE
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \
+ triangle.shar.gz:triangle
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+.endif
MAINTAINER= ports@FreeBSD.org
COMMENT= An automatic 3D finite element mesh generator
@@ -20,6 +26,17 @@ LIB_DEPENDS= gsl.4:${PORTSDIR}/math/gsl \
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+.ifndef USE_TRIANGLE
+pre-everything::
+ @${ECHO} "You can make with USE_TRIANGLE for faster 2d meshing"
+.else
+NO_CDROM= "Triangle must not be sold for profit"
+post-extract:
+ @(cd ${WRKSRC}/Triangle; \
+ ${GUNZIP_CMD} < ${DISTDIR}/${DIST_SUBDIR}/triangle.shar.gz | ${SH})
+ ${RM} ${WRKSRC}/Triangle/makefile
+.endif
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-fltk-prefix=${X11BASE} \
--with-gsl-prefix=${LOCALBASE} \
diff --git a/cad/gmsh/distinfo b/cad/gmsh/distinfo
index 8bb07d44a331..2ef7359b2dda 100644
--- a/cad/gmsh/distinfo
+++ b/cad/gmsh/distinfo
@@ -1 +1,2 @@
MD5 (gmsh-1.45.2-source.tgz) = 9b405201c0145351c0ceb0cbf6a697d7
+MD5 (triangle.shar.gz) = 2c7c1611326e22c219de5aae3f754e06