aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2004-11-15 10:41:13 +0000
committerThierry Thomas <thierry@FreeBSD.org>2004-11-15 10:41:13 +0000
commit6b8a5ac27e853d04f1176ed1c26effcb20a7868c (patch)
tree608bbd924f4310278dc8ca5415943f7e63ccc4fb /cad
parent63a9e894742f66499377c42c984a22b995c4049c (diff)
downloadports-6b8a5ac27e853d04f1176ed1c26effcb20a7868c.tar.gz
ports-6b8a5ac27e853d04f1176ed1c26effcb20a7868c.zip
Notes
Diffstat (limited to 'cad')
-rw-r--r--cad/gmsh/Makefile21
-rw-r--r--cad/gmsh/files/patch-Common::DefaultOptions.h11
2 files changed, 20 insertions, 12 deletions
diff --git a/cad/gmsh/Makefile b/cad/gmsh/Makefile
index 9dd978e4d3d3..51845743d16f 100644
--- a/cad/gmsh/Makefile
+++ b/cad/gmsh/Makefile
@@ -8,14 +8,9 @@
PORTNAME= gmsh
PORTVERSION= 1.56.2
CATEGORIES= cad
-MASTER_SITES= http://www.geuz.org/gmsh/src/ \
- http://cm.bell-labs.com/netlib/voronoi/:triangle
+MASTER_SITES= http://www.geuz.org/gmsh/src/
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
EXTRACT_SUFX= .tgz
-.if defined(WITH_TRIANGLE)
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} triangle.shar.gz:triangle
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-.endif
MAINTAINER= ports@FreeBSD.org
COMMENT= An automatic 3D finite element mesh generator
@@ -23,7 +18,12 @@ COMMENT= An automatic 3D finite element mesh generator
LIB_DEPENDS= gsl.6:${PORTSDIR}/math/gsl \
fltk.1:${PORTSDIR}/x11-toolkits/fltk
+.if defined(WITH_TRIANGLE)
+EXTRACT_DEPENDS+= ${NONEXISTENT}:${TRIANGLE_PORTDIR}:patch
+.endif
+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+TRIANGLE_PORTDIR= ${PORTSDIR}/cad/triangle
USE_REINPLACE= yes
GNU_CONFIGURE= yes
@@ -36,8 +36,8 @@ ALL_TARGET= all utils
MAN1= gmsh.1
-.if !defined(WITH_TRIANGLE)
-NO_CDROM= "Triangle must not be sold for profit"
+.if defined(WITH_TRIANGLE)
+NO_CDROM= Triangle must not be sold for profit
.endif
pre-everything::
@@ -49,10 +49,7 @@ pre-everything::
post-extract:
.if defined(WITH_TRIANGLE)
- @(cd ${WRKSRC}/Triangle; \
- ${GUNZIP_CMD} < ${DISTDIR}/${DIST_SUBDIR}/triangle.shar.gz | \
- ${SED} 's:/ \*:/* :g' | ${SH})
- ${RM} ${WRKSRC}/Triangle/makefile
+ ${CP} `cd ${TRIANGLE_PORTDIR}; ${MAKE} -V WRKSRC`/triangle.* ${WRKSRC}/Triangle
.endif
post-patch:
diff --git a/cad/gmsh/files/patch-Common::DefaultOptions.h b/cad/gmsh/files/patch-Common::DefaultOptions.h
new file mode 100644
index 000000000000..7949e420e7dd
--- /dev/null
+++ b/cad/gmsh/files/patch-Common::DefaultOptions.h
@@ -0,0 +1,11 @@
+--- ./Common/DefaultOptions.h.orig Sun Oct 17 04:49:26 2004
++++ ./Common/DefaultOptions.h Sun Oct 17 22:50:05 2004
+@@ -65,7 +65,7 @@
+ #elif defined(__APPLE__)
+ "open -e %s" ,
+ #else
+- "emacs %s &" ,
++ "$EDITOR %s &" ,
+ #endif
+ "System command to launch a text editor" },
+ { F|S, "TmpFileName" , opt_general_tmp_filename , ".gmsh-tmp" ,