gnu: warzone2100: Use modular Qt.
* gnu/packages/games.scm (warzone2100)[inputs]: Remove qt, add qtbase and qtscript. [arguments]: Add build phase "patch-for-qt5.8".
This commit is contained in:
parent
864cc7ef56
commit
77c729baf2
|
@ -2784,6 +2784,12 @@ fullscreen, use F5 or Alt+Enter.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "icons/Makefile.in"
|
(substitute* "icons/Makefile.in"
|
||||||
(("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
|
(("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
|
||||||
|
#t))
|
||||||
|
(add-after 'unpack 'patch-for-qt5.8
|
||||||
|
(lambda _
|
||||||
|
(substitute* "lib/widget/editbox.cpp"
|
||||||
|
(("== '\\\\0'")
|
||||||
|
"== QChar('\\0')"))
|
||||||
#t)))))
|
#t)))))
|
||||||
(native-inputs `(("pkg-config" ,pkg-config)
|
(native-inputs `(("pkg-config" ,pkg-config)
|
||||||
("unzip" ,unzip)
|
("unzip" ,unzip)
|
||||||
|
@ -2797,7 +2803,8 @@ fullscreen, use F5 or Alt+Enter.")
|
||||||
("libxrandr" ,libxrandr)
|
("libxrandr" ,libxrandr)
|
||||||
("openal" ,openal)
|
("openal" ,openal)
|
||||||
("physfs" ,physfs)
|
("physfs" ,physfs)
|
||||||
("qt" ,qt)
|
("qtbase" ,qtbase)
|
||||||
|
("qtscript" ,qtscript)
|
||||||
("openssl" ,openssl)
|
("openssl" ,openssl)
|
||||||
("quesoglc" ,quesoglc)
|
("quesoglc" ,quesoglc)
|
||||||
("sdl2" ,sdl2)))
|
("sdl2" ,sdl2)))
|
||||||
|
|
Loading…
Reference in New Issue