mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Add triangle 1.5, a Two-Dimensional Quality Mesh Generator and
Delaunay Triangulator.
This commit is contained in:
parent
06d3c6b0de
commit
d634b76073
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121650
@ -51,6 +51,7 @@
|
||||
SUBDIR += tkgate
|
||||
SUBDIR += tochnog
|
||||
SUBDIR += transcalc
|
||||
SUBDIR += triangle
|
||||
SUBDIR += varkon
|
||||
SUBDIR += vipec
|
||||
SUBDIR += xcircuit
|
||||
|
36
cad/triangle/Makefile
Normal file
36
cad/triangle/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# New ports collection makefile for: triangle
|
||||
# Date created: 16 Octobre 2004
|
||||
# Whom: Thierry Thomas <thierry@pompo.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= triangle
|
||||
PORTVERSION= 1.5
|
||||
CATEGORIES= cad
|
||||
MASTER_SITES= http://cm.bell-labs.com/netlib/voronoi/
|
||||
DISTNAME= ${PORTNAME}
|
||||
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A Two-Dimensional Quality Mesh Generator and Delaunay Triangulator
|
||||
|
||||
NO_CDROM= Triangle must not be sold for profit
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_XLIB= yes
|
||||
MAKEFILE= makefile
|
||||
|
||||
WRKSRC= ${WRKDIR}
|
||||
|
||||
PLIST_FILES= bin/triangle bin/showme
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${PLIST_FILES:S|^bin|${WRKSRC}|} ${PREFIX}/bin
|
||||
|
||||
.if defined(MAINTAINER_MODE)
|
||||
test: build
|
||||
(cd ${INSTALL_WRKSRC} && ./triangle -p A.poly && ./showme A.1.poly)
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
cad/triangle/distinfo
Normal file
2
cad/triangle/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (triangle-1.5/triangle.zip) = b21af03259aba872c32daf923a96aa00
|
||||
SIZE (triangle-1.5/triangle.zip) = 157525
|
20
cad/triangle/files/patch-makefile
Normal file
20
cad/triangle/files/patch-makefile
Normal file
@ -0,0 +1,20 @@
|
||||
--- makefile.orig Wed Apr 28 05:13:34 2004
|
||||
+++ makefile Sat Oct 16 22:54:43 2004
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
# CC should be set to the name of your favorite C compiler.
|
||||
|
||||
-CC = cc
|
||||
+# CC = cc
|
||||
|
||||
# CSWITCHES is a list of all switches passed to the C compiler. I strongly
|
||||
# recommend using the best level of optimization. I also strongly
|
||||
@@ -71,7 +71,7 @@
|
||||
#
|
||||
# CSWITCHES = -O -DNO_TIMER -DLINUX -I/usr/X11R6/include -L/usr/X11R6/lib
|
||||
|
||||
-CSWITCHES = -O -DLINUX -I/usr/X11R6/include -L/usr/X11R6/lib
|
||||
+CSWITCHES = ${CFLAGS} -I${X11BASE}/include -L${X11BASE}/lib
|
||||
|
||||
# TRILIBDEFS is a list of definitions used to compile an object code version
|
||||
# of Triangle (triangle.o) to be called by another program. The file
|
11
cad/triangle/files/patch-showme.c
Normal file
11
cad/triangle/files/patch-showme.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./showme.c.orig Wed Apr 28 05:13:34 2004
|
||||
+++ ./showme.c Sat Oct 16 23:00:09 2004
|
||||
@@ -106,6 +106,8 @@
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
+#include <stdlib.h>
|
||||
+
|
||||
/* The following obscenity seems to be necessary to ensure that this program */
|
||||
/* will port to Dec Alphas running OSF/1, because their stdio.h file commits */
|
||||
/* the unpardonable sin of including stdlib.h. Hence, malloc(), free(), and */
|
11
cad/triangle/pkg-descr
Normal file
11
cad/triangle/pkg-descr
Normal file
@ -0,0 +1,11 @@
|
||||
Triangle generates exact Delaunay triangulations, constrained Delaunay
|
||||
triangulations, Voronoi diagrams, and quality conforming Delaunay
|
||||
triangulations. The latter can be generated with no small angles, and
|
||||
are thus suitable for finite element analysis.
|
||||
|
||||
Show Me graphically displays (using X) the contents of geometric files,
|
||||
especially those generated by Triangle, my two-dimensional quality mesh
|
||||
generator and Delaunay triangulator.
|
||||
Show Me can also write PostScript images to files.
|
||||
|
||||
WWW: http://www-2.cs.cmu.edu/~quake/triangle.html
|
Loading…
Reference in New Issue
Block a user