From e86ba63a93898c1dcdf7cd4b9d3bf4a7e6ab8c41 Mon Sep 17 00:00:00 2001
From: Mark Watkins <jedimark@users.sourceforge.net>
Date: Mon, 25 Aug 2014 13:02:16 +1000
Subject: [PATCH] Change build flags to use command line variables instead

---
 sleepyhead/sleepyhead.pro | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sleepyhead/sleepyhead.pro b/sleepyhead/sleepyhead.pro
index 8ad4b05c..cecf9eb3 100644
--- a/sleepyhead/sleepyhead.pro
+++ b/sleepyhead/sleepyhead.pro
@@ -15,9 +15,9 @@ greaterThan(QT_MAJOR_VERSION,4) {
 #SleepyHead requires OpenGL 2.0 support to run smoothly
 #On platforms where it's not available, it can still be built to work
 #provided the BrokenGL file resides in the SleepyHead source root directory
-exists($$PWD/../BrokenGL) {
-    DEFINES += BROKEN_OPENGL_BUILD
+contains(DEFINES, BrokenGL) {
     message("Building with QWidget gGraphView")
+    DEFINES += BROKEN_OPENGL_BUILD
 } else {
     message("Building with QGLWidget gGraphView")
     QT += opengl