We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d7b639 commit 7d55719Copy full SHA for 7d55719
platform/desktop/platform.mk
@@ -1,4 +1,10 @@
1
-PKGS += gl glib-2.0
+PKGS += glib-2.0
2
+
3
+ifeq ($(shell uname),Darwin)
4
+LIBS += -framework OpenGL
5
+else
6
+PKGS += gl
7
+endif
8
9
install: $(TARGET)
10
install -m755 -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
src/Config.h
@@ -2,10 +2,14 @@
#define BRAINPARTY_CONFIG_H
#if defined(USE_OPENGL_ES)
-#include <GLES/gl.h>
+# include <GLES/gl.h>
#else
-#include <GL/gl.h>
-#define glOrthof glOrtho
+# if defined(__APPLE__)
+# include <OpenGL/gl.h>
+# else
+# include <GL/gl.h>
11
+# endif
12
+# define glOrthof glOrtho
13
#endif
14
15
#include "SDL.h"
0 commit comments