LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File doomsday-ncurses.diff of Package doomsday (Project home:susnux:branches:games)

From: Jan Engelhardt <jengelh@inai.de>
Date: 2016-06-18 08:53:28.960880240 +0200

In older ncurses versions, there is no ncurses.pc. Call
ncurses-config instead.

Use the w6 variant from the get-go for best Unicode results.
---
 doomsday/dep_curses.pri |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Index: doomsday-stable-1.15.8/doomsday/dep_curses.pri
===================================================================
--- doomsday-stable-1.15.8.orig/doomsday/dep_curses.pri
+++ doomsday-stable-1.15.8/doomsday/dep_curses.pri
@@ -7,9 +7,10 @@ else:win32 {
 }
 else {
     # Generic Unix.
-    !system($$PKG_CONFIG --exists ncurses) {
-        error(Missing dependency: ncurses)
+    !system($$PKG_CONFIG --exists ncursesw6) {
+	QMAKE_CXXFLAGS += $$system(ncursesw6-config --cflags)
+	LIBS += $$system(ncursesw6-config --libs)
     }
-    QMAKE_CXXFLAGS += $$system($$PKG_CONFIG --cflags ncurses)
-              LIBS += $$system($$PKG_CONFIG --libs   ncurses)
+    QMAKE_CXXFLAGS += $$system($$PKG_CONFIG --cflags ncursesw6)
+              LIBS += $$system($$PKG_CONFIG --libs   ncursesw6)
 }