diff options
author | thierry <thierry@FreeBSD.org> | 2004-11-15 18:41:13 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2004-11-15 18:41:13 +0800 |
commit | 863526ec91de4f06d3ac3006d449015085b44c2a (patch) | |
tree | ff8e518926f0bbc1ccecdd12668670f45ecb2df6 /cad | |
parent | ded20144fe2cb0160d44c84833bf648c088f0a2f (diff) | |
download | freebsd-ports-graphics-863526ec91de4f06d3ac3006d449015085b44c2a.tar.gz freebsd-ports-graphics-863526ec91de4f06d3ac3006d449015085b44c2a.tar.zst freebsd-ports-graphics-863526ec91de4f06d3ac3006d449015085b44c2a.zip |
- Use the external Triangle;
- Fix NO_CDROM;
- Handle $EDITOR.
Diffstat (limited to 'cad')
-rw-r--r-- | cad/gmsh/Makefile | 21 | ||||
-rw-r--r-- | cad/gmsh/files/patch-Common::DefaultOptions.h | 11 |
2 files changed, 20 insertions, 12 deletions
diff --git a/cad/gmsh/Makefile b/cad/gmsh/Makefile index 9dd978e4d3d..51845743d16 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 00000000000..7949e420e7d --- /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" , |