aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorpkubaj <pkubaj@FreeBSD.org>2019-11-28 03:47:30 +0800
committerpkubaj <pkubaj@FreeBSD.org>2019-11-28 03:47:30 +0800
commit20e28df51a92bbec20e1c8aba2140443755caf3d (patch)
treec6e8105d0e10bfadd593d83bff47c419d3ab8f00 /math
parentb7c19234e46741f05fda332d3399666050199012 (diff)
downloadfreebsd-ports-gnome-20e28df51a92bbec20e1c8aba2140443755caf3d.tar.gz
freebsd-ports-gnome-20e28df51a92bbec20e1c8aba2140443755caf3d.tar.zst
freebsd-ports-gnome-20e28df51a92bbec20e1c8aba2140443755caf3d.zip
math/curv: fix build on GCC architectures
libcurv/geom/viewer/fbo.cc, libcurv/geom/viewer/mesh.cc, libcurv/geom/viewer/text.cc and libcurv/geom/viewer/vertexLayout.cc need to include sys/types.h to make uint type known. /wrkdirs/usr/ports/math/curv/work/curv-0.4-127-g3caf3068/libcurv/geom/viewer/fbo.cc:42:26: error: 'uint' does not name a type; did you mean 'int'? PR: 241418 Approved by: linimon (mentor), yuri (maintainer)
Diffstat (limited to 'math')
-rw-r--r--math/curv/files/patch-libcurv_viewer_fbo.cc10
-rw-r--r--math/curv/files/patch-libcurv_viewer_mesh.cc10
-rw-r--r--math/curv/files/patch-libcurv_viewer_text.cc10
-rw-r--r--math/curv/files/patch-libcurv_viewer_vertexLayout.cc9
4 files changed, 39 insertions, 0 deletions
diff --git a/math/curv/files/patch-libcurv_viewer_fbo.cc b/math/curv/files/patch-libcurv_viewer_fbo.cc
new file mode 100644
index 000000000000..b29439332695
--- /dev/null
+++ b/math/curv/files/patch-libcurv_viewer_fbo.cc
@@ -0,0 +1,10 @@
+--- libcurv/viewer/fbo.cc.orig 2019-10-22 18:20:49 UTC
++++ libcurv/viewer/fbo.cc
+@@ -25,6 +25,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
+
+ #include "fbo.h"
+ #include <iostream>
++#include <sys/types.h>
+
+ Fbo::Fbo():m_id(0), m_old_fbo_id(0), m_texture(0), m_depth_buffer(0), m_width(0), m_height(0), m_allocated(false), m_binded(false) {
+ }
diff --git a/math/curv/files/patch-libcurv_viewer_mesh.cc b/math/curv/files/patch-libcurv_viewer_mesh.cc
new file mode 100644
index 000000000000..8d0d213e8461
--- /dev/null
+++ b/math/curv/files/patch-libcurv_viewer_mesh.cc
@@ -0,0 +1,10 @@
+--- libcurv/viewer/mesh.cc.orig 2019-10-22 18:21:49 UTC
++++ libcurv/viewer/mesh.cc
+@@ -2,6 +2,7 @@
+
+ #include <iostream>
+ #include <fstream>
++#include <sys/types.h>
+
+ //#include "fs.h"
+ #include "geom.h"
diff --git a/math/curv/files/patch-libcurv_viewer_text.cc b/math/curv/files/patch-libcurv_viewer_text.cc
new file mode 100644
index 000000000000..60b01cdb0b05
--- /dev/null
+++ b/math/curv/files/patch-libcurv_viewer_text.cc
@@ -0,0 +1,10 @@
+--- libcurv/viewer/text.cc.orig 2019-10-22 18:22:58 UTC
++++ libcurv/viewer/text.cc
+@@ -1,6 +1,7 @@
+ #include "text.h"
+
+ #include <algorithm>
++#include <sys/types.h>
+
+ std::string getLower(const std::string& _string) {
+ std::string std = _string;
diff --git a/math/curv/files/patch-libcurv_viewer_vertexLayout.cc b/math/curv/files/patch-libcurv_viewer_vertexLayout.cc
new file mode 100644
index 000000000000..e28ecafd60c9
--- /dev/null
+++ b/math/curv/files/patch-libcurv_viewer_vertexLayout.cc
@@ -0,0 +1,9 @@
+--- libcurv/viewer/vertexLayout.cc.orig 2019-10-22 18:23:57 UTC
++++ libcurv/viewer/vertexLayout.cc
+@@ -1,5 +1,6 @@
+ #include "vertexLayout.h"
+ #include "text.h"
++#include <sys/types.h>
+
+ std::map<GLint, GLuint> VertexLayout::s_enabledAttribs = std::map<GLint, GLuint>();
+