Index: head/math/triangle/Makefile =================================================================== --- head/math/triangle/Makefile (revision 476382) +++ head/math/triangle/Makefile (revision 476383) @@ -1,32 +1,38 @@ # Created by: Thierry Thomas # $FreeBSD$ PORTNAME= triangle PORTVERSION= 1.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MASTER_SITES= NL/voronoi DISTNAME= ${PORTNAME} DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Two-Dimensional Quality Mesh Generator and Delaunay Triangulator NO_CDROM= No commercial use without prior arrangement with the author -NO_WRKSUBDIR= yes USES= zip -USE_XORG= x11 +NO_WRKSUBDIR= yes MAKEFILE= makefile +USE_XORG= x11 +USE_LDCONFIG= yes -PLIST_FILES= bin/triangle bin/showme +PLIST_FILES= bin/${PORTNAME} bin/showme \ + include/${PORTNAME}.h \ + lib/lib${PORTNAME}.so +post-build: + @cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -shared -fPIC -o lib${PORTNAME}.so ${PORTNAME}.c + do-install: - ${INSTALL_PROGRAM} ${PLIST_FILES:S|^bin|${WRKSRC}|} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${WRKSRC}/showme ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib -.if defined(MAINTAINER_MODE) -test: build - (cd ${INSTALL_WRKSRC} && ./triangle -p A.poly && ./showme A.1.poly) -.endif +do-test: build + @cd ${INSTALL_WRKSRC} && ./${PORTNAME} -p A.poly && ./showme A.1.poly .include Index: head/math/triangle/pkg-descr =================================================================== --- head/math/triangle/pkg-descr (revision 476382) +++ head/math/triangle/pkg-descr (revision 476383) @@ -1,11 +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.cs.cmu.edu/~quake/triangle.html +WWW: https://www.cs.cmu.edu/~quake/triangle.html