aboutsummaryrefslogtreecommitdiff
path: root/graphics/meshviewer
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/meshviewer')
-rw-r--r--graphics/meshviewer/Makefile27
-rw-r--r--graphics/meshviewer/files/patch-qt4__glmesh.cpp4
-rw-r--r--graphics/meshviewer/files/patch-qt4__glmesh_common.cpp4
3 files changed, 13 insertions, 22 deletions
diff --git a/graphics/meshviewer/Makefile b/graphics/meshviewer/Makefile
index 486a9661ae40..e5eedf3cf56a 100644
--- a/graphics/meshviewer/Makefile
+++ b/graphics/meshviewer/Makefile
@@ -9,9 +9,10 @@ MASTER_SITES= SF/mview/mview/${PORTVERSION}
DISTNAME= mview-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-COMMENT= Mesh Viewer
+COMMENT= Mesh viewer
-LICENSE= GPLv2
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/COPYING
WRKSRC= ${WRKDIR}/mview-${PORTVERSION}
@@ -25,31 +26,21 @@ MAKE_ARGS= QTDIR="${QT_PREFIX}" CC="${CXX}" MOC="${MOC}" \
CXXFLAGS="${CXXFLAGS}" \
LIBPATH="" LIBS_QT4="${LDFLAGS}"
-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}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
- @${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' ${WRKSRC}/Makefile
+ @${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 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
- @${MKDIR} ${STAGEDIR}${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
+
+do-install-DOCS-on:
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS README TODO Documentation" \
+ ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/graphics/meshviewer/files/patch-qt4__glmesh.cpp b/graphics/meshviewer/files/patch-qt4__glmesh.cpp
index 24f07ed78bc7..91a2f6722915 100644
--- a/graphics/meshviewer/files/patch-qt4__glmesh.cpp
+++ b/graphics/meshviewer/files/patch-qt4__glmesh.cpp
@@ -1,5 +1,5 @@
---- qt4/glmesh.cpp~ 2012-05-20 00:04:04.000000000 -0300
-+++ qt4/glmesh.cpp 2012-05-20 00:04:21.000000000 -0300
+--- qt4/glmesh.cpp.orig 2008-09-09 21:38:45 UTC
++++ qt4/glmesh.cpp
@@ -21,6 +21,8 @@
#include "mview.h"
#include "coordinates.h"
diff --git a/graphics/meshviewer/files/patch-qt4__glmesh_common.cpp b/graphics/meshviewer/files/patch-qt4__glmesh_common.cpp
index 16bef5058d22..2e76fa74765d 100644
--- a/graphics/meshviewer/files/patch-qt4__glmesh_common.cpp
+++ b/graphics/meshviewer/files/patch-qt4__glmesh_common.cpp
@@ -1,5 +1,5 @@
---- qt4/glmesh_common.cpp~ 2012-05-20 00:04:54.000000000 -0300
-+++ qt4/glmesh_common.cpp 2012-05-20 00:05:03.000000000 -0300
+--- qt4/glmesh_common.cpp.orig 2010-10-15 15:35:52 UTC
++++ qt4/glmesh_common.cpp
@@ -10,6 +10,8 @@
#include "glmesh.h"