aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2013-03-21 22:08:45 +0000
committerBeech Rintoul <beech@FreeBSD.org>2013-03-21 22:08:45 +0000
commit2330136f5891eef57cad16a2c36b90394970bc15 (patch)
tree0914e779a67e9993acbfdd8c0dc8140468670e63
parent114ac2e3b9fe83b03b57aa0a7a8ef87f1c71e98d (diff)
- Convert to OptionsNG
- Fix docs - Bump portrevision PR: ports/177157 Submitted by: nemysis <nemysis@gmx.ch>
Notes
Notes: svn path=/head/; revision=314879
-rw-r--r--graphics/meshviewer/Makefile36
1 files changed, 27 insertions, 9 deletions
diff --git a/graphics/meshviewer/Makefile b/graphics/meshviewer/Makefile
index ddcc3f738459..174e00d5b753 100644
--- a/graphics/meshviewer/Makefile
+++ b/graphics/meshviewer/Makefile
@@ -1,12 +1,9 @@
-# Ports collection makefile for: meshviewer
-# Date created: Jun 10, 2002
-# Whom: ijliao
-#
+# Created by: ijliao
# $FreeBSD$
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 @@ DISTNAME= mview-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Mesh Viewer
+LICENSE= GPLv2
+
WRKSRC= ${WRKDIR}/mview-${PORTVERSION}
USE_GL= glu
@@ -28,17 +27,36 @@ MAKE_ARGS= QTDIR="${QT_PREFIX}" CC="${CXX}" MOC="${MOC}" \
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>
+