ports/177157: [PATCH] graphics/meshviewer: Convert to OptionsNG
nemysis
nemysis at gmx.ch
Wed Mar 20 21:00:00 UTC 2013
>Number: 177157
>Category: ports
>Synopsis: [PATCH] graphics/meshviewer: Convert to OptionsNG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 20 21:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: nemysis
>Release: FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10
>Description:
Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- meshviewer-0.3.3_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/meshviewer/Makefile ./Makefile
--- /usr/ports/graphics/meshviewer/Makefile 2013-01-14 17:57:12.000000000 +0100
+++ ./Makefile 2013-03-20 21:51:32.000000000 +0100
@@ -1,12 +1,9 @@
-# Ports collection makefile for: meshviewer
-# Date created: Jun 10, 2002
-# Whom: ijliao
-#
+# Created by: ijliao
# $FreeBSD: head/graphics/meshviewer/Makefile 300896 2012-07-14 13:54:48Z beat $
PORTNAME= meshviewer
PORTVERSION= 0.3.3
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= SF/mview/mview/${PORTVERSION}
DISTNAME= mview-src-${PORTVERSION}
@@ -14,6 +11,8 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= Mesh Viewer
+LICENSE= GPLv2
+
WRKSRC= ${WRKDIR}/mview-${PORTVERSION}
USE_GL= glu
@@ -28,17 +27,35 @@
LIBPATH="" LIBS_QT4="${LDFLAGS}"
PORTDOCS= *
-PLIST_FILES= bin/mview
+
+DOCSRCDIR1= ${WRKSRC}
+DOC_FILES1= AUTHORS README TODO
+
+DOCSRCDIR2= ${WRKSRC}/Documentation/pics
+DOCSDIR2= ${DOCSDIR}/Documentation/pics
+DOC_FILES2= *.jpg
+
+DOCSRCDIR3= ${WRKSRC}/Documentation
+DOCSDIR3= ${DOCSDIR}/Documentation
+DOC_FILES3= *.html *.ico
+
+PLIST_FILES= bin/${PORTNAME}
+
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+ ${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin/${PORTNAME}
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- @(cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${DOCSDIR})
+ ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR2}
+ ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
+ @${MKDIR} ${DOCSDIR3}
+ ${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${DOCSDIR3}
.endif
.include <bsd.port.mk>
--- meshviewer-0.3.3_4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list