From c51b77f7efb2242cbb2797ffc14f44d79ef84148 Mon Sep 17 00:00:00 2001 From: Kamel Ibn Aziz Derouiche Date: Fri, 28 Oct 2011 16:38:52 +0000 Subject: [PATCH] Import triangle-1.6 as wip/triangle. Two-Dimensional Quality Mesh Generator and Delaunay Triangulator --- triangle/DESCR | 1 + triangle/Makefile | 27 +++++++++++++++++++++++++++ triangle/PLIST | 2 ++ triangle/distinfo | 6 ++++++ triangle/patches/patch-makefile | 31 +++++++++++++++++++++++++++++++ 5 files changed, 67 insertions(+) create mode 100644 triangle/DESCR create mode 100644 triangle/Makefile create mode 100644 triangle/PLIST create mode 100644 triangle/distinfo create mode 100644 triangle/patches/patch-makefile diff --git a/triangle/DESCR b/triangle/DESCR new file mode 100644 index 0000000000..04f71139f1 --- /dev/null +++ b/triangle/DESCR @@ -0,0 +1 @@ +Two-Dimensional Quality Mesh Generator and Delaunay Triangulator diff --git a/triangle/Makefile b/triangle/Makefile new file mode 100644 index 0000000000..ff4605dd6e --- /dev/null +++ b/triangle/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/10/28 16:38:52 jihbed Exp $ +# + +DISTNAME= triangle +PKGNAME= ${DISTNAME}-${VERSION} +CATEGORIES= math +MASTER_SITES= http://www.netlib.org/voronoi/ +EXTRACT_SUFX= .zip + +MAINTAINER= jihbed.research@gmail.com +HOMEPAGE= http://www.cs.cmu.edu/~quake/triangle.html +COMMENT= Two-Dimensional Quality Mesh Generator and Delaunay Triangulator + +PKG_DESTDIR_SUPPORT= user-destdir + +WRKSRC= ${WRKDIR} + +VERSION= 1.6 +MAKE_FILE= makefile + +INSTALLATION_DIRS= bin + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME} ${DESTDIR}${PREFIX}/bin + +.include "../../x11/libX11/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/triangle/PLIST b/triangle/PLIST new file mode 100644 index 0000000000..96910748e9 --- /dev/null +++ b/triangle/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/10/28 16:38:52 jihbed Exp $ +bin/triangle diff --git a/triangle/distinfo b/triangle/distinfo new file mode 100644 index 0000000000..5b64f7b3ed --- /dev/null +++ b/triangle/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/10/28 16:38:52 jihbed Exp $ + +SHA1 (triangle.zip) = 63d11e0b5bf097eb946a4da4ee18ddf279e16fc4 +RMD160 (triangle.zip) = 12be39ae4e34fc14ef3f9982e28a242abe200307 +Size (triangle.zip) = 158528 bytes +SHA1 (patch-makefile) = 4c04ae02138d0bbfc1026d8662539d7522f83e0d diff --git a/triangle/patches/patch-makefile b/triangle/patches/patch-makefile new file mode 100644 index 0000000000..34a82db118 --- /dev/null +++ b/triangle/patches/patch-makefile @@ -0,0 +1,31 @@ +$NetBSD: patch-makefile,v 1.1.1.1 2011/10/28 16:38:52 jihbed Exp $ + +--- makefile.orig 2011-08-07 21:57:54.000000000 +0100 ++++ makefile 2011-08-07 22:00:22.000000000 +0100 +@@ -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 +@@ -73,7 +73,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 = -O -DNETBSD -I/usr/X11R7/include -L/usr/X11R7/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 +@@ -90,7 +90,7 @@ + + # RM should be set to the name of your favorite rm (file deletion program). + +-RM = /bin/rm ++#RM = /bin/rm + + # The action starts here. +