ports/graphics/libprojectm/files/patch-src_libprojectM_Renderer_ShaderEngine.cpp
Yuri Victorovich 172081f9f4 graphics/libprojectm: fix build with GCC-based architectures
There are two issues here:
1. GLM requires at least GCC 4.7, base has 4.2. Add USES=compiler:c++11-lang to solve it.
2. the port uses typedefs from sys/types.h, but those are not included by default by GCC.

PR:		233748
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
2018-12-04 05:38:19 +00:00

12 lines
312 B
C++

--- src/libprojectM/Renderer/ShaderEngine.cpp.orig 2018-12-03 11:18:41 UTC
+++ src/libprojectM/Renderer/ShaderEngine.cpp
@@ -16,6 +16,9 @@
#include <glm/gtc/type_ptr.hpp>
#include <set>
#include <regex>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#endif
#ifdef USE_GLES
#define GLSL_VERSION "300 es"