aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/meshviewer/Makefile2
-rw-r--r--graphics/meshviewer/files/patch-mesh::matrix3.h12
-rw-r--r--graphics/meshviewer/files/patch-texture::array3d.h10
3 files changed, 24 insertions, 0 deletions
diff --git a/graphics/meshviewer/Makefile b/graphics/meshviewer/Makefile
index e3bcf8e39b25..708598b7f009 100644
--- a/graphics/meshviewer/Makefile
+++ b/graphics/meshviewer/Makefile
@@ -21,6 +21,8 @@ MAKE_ENV= MOC="${MOC}" \
QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
QTCFGLIBS="${QTCFGLIBS} ${PTHREAD_LIBS}"
+CFLAGS+= -fpermissive
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin
.if !defined(NOPORTDOCS)
diff --git a/graphics/meshviewer/files/patch-mesh::matrix3.h b/graphics/meshviewer/files/patch-mesh::matrix3.h
new file mode 100644
index 000000000000..e787ec606e5b
--- /dev/null
+++ b/graphics/meshviewer/files/patch-mesh::matrix3.h
@@ -0,0 +1,12 @@
+--- mesh/matrix3.h.orig Sun Nov 9 21:01:16 2003
++++ mesh/matrix3.h Fri Aug 27 12:44:20 2004
+@@ -9,7 +9,8 @@
+ #ifndef _MATRIX3_H
+ #define _MATRIX3_H
+
+-#include <stdarg.h>
++#include <cstdarg>
++#include <cmath>
+
+ #define SIZE 3
+
diff --git a/graphics/meshviewer/files/patch-texture::array3d.h b/graphics/meshviewer/files/patch-texture::array3d.h
new file mode 100644
index 000000000000..61a8a0bd58e7
--- /dev/null
+++ b/graphics/meshviewer/files/patch-texture::array3d.h
@@ -0,0 +1,10 @@
+--- texture/array3d.h.orig Sun Nov 9 21:13:01 2003
++++ texture/array3d.h Fri Aug 27 12:53:54 2004
+@@ -16,6 +16,7 @@
+
+ Array3D()
+ {
++ int x, y, z;
+ x=y=z=0;
+ data=NULL;
+ }