svn commit: r306521 - in head/cad/admesh: . files

Baptiste Daroussin bapt at FreeBSD.org
Sat Oct 27 19:02:55 UTC 2012


Author: bapt
Date: Sat Oct 27 19:02:54 2012
New Revision: 306521
URL: http://svn.freebsd.org/changeset/ports/306521

Log:
  - Update MASTER_SITES and WWW: line
  - Add LICENSE
  - Add MAKE_JOBS_SAFE
  - Fix build with clang
  - Respects DOCS
  
  PR:		ports/172219
  Submitted by:	KATO Tsuguru <tkato432 at yahoo.com>
  Feature safe:	yes

Added:
  head/cad/admesh/files/
  head/cad/admesh/files/patch-admesh.c   (contents, props changed)
Modified:
  head/cad/admesh/Makefile   (contents, props changed)
  head/cad/admesh/pkg-descr   (contents, props changed)

Modified: head/cad/admesh/Makefile
==============================================================================
--- head/cad/admesh/Makefile	Sat Oct 27 18:54:33 2012	(r306520)
+++ head/cad/admesh/Makefile	Sat Oct 27 19:02:54 2012	(r306521)
@@ -1,32 +1,35 @@
-# New ports collection makefile for:	admesh
-# Date created:			25 June 2003
-# Whom:				Pedro F. Giffuni <giffunip at asme.org>
-#
+# Created by: Pedro F. Giffuni <giffunip at asme.org>
 # $FreeBSD$
-#
 
 PORTNAME=	admesh
 PORTVERSION=	0.95
 PORTREVISION=	1
 CATEGORIES=	cad
-MASTER_SITES=	http://www.varlog.com/
+MASTER_SITES=	http://launchpadlibrarian.net/67068999/ \
+		http://www.sourcefiles.org/Scientific/Numerical_Analysis/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Program for processing STL triangulated solid meshes
 
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2012-10-20
+LICENSE=	GPLv2 # (or later)
+
+OPTIONS_DEFINE=	DOCS
 
-FETCH_ARGS?=	-Fpr
 GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
 
-PLIST_FILES=	bin/admesh
 PORTDOCS=	admesh.doc
+PLIST_FILES=	bin/admesh
+
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/admesh ${PREFIX}/bin/
-.ifndef NOPORTDOCS
-	${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/ADMESH.DOC ${DOCSDIR}/admesh.doc
 .endif
 

Added: head/cad/admesh/files/patch-admesh.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/admesh/files/patch-admesh.c	Sat Oct 27 19:02:54 2012	(r306521)
@@ -0,0 +1,11 @@
+--- ./admesh.c.orig	1996-07-27 00:07:15.000000000 +0200
++++ ./admesh.c	2012-10-27 21:01:18.374482756 +0200
+@@ -27,7 +27,7 @@
+ 
+ static void usage(int status, char *program_name);
+ 
+-void
++int
+ main(int argc, char **argv)
+ {
+   stl_file stl_in;

Modified: head/cad/admesh/pkg-descr
==============================================================================
--- head/cad/admesh/pkg-descr	Sat Oct 27 18:54:33 2012	(r306520)
+++ head/cad/admesh/pkg-descr	Sat Oct 27 19:02:54 2012	(r306521)
@@ -20,4 +20,4 @@ Features
 * Write a DXF file
 * Calculate the volume of a part
 
-WWW:	http://www.varlog.com
+WWW: https://launchpad.net/admesh


More information about the svn-ports-all mailing list