gnu: warzone2100: Update to 3.2.3.
* gnu/packages/games.scm (warzone2100): Update to 3.2.3. [arguments]: Add "--with-distributor=Guix" to #:configure-flags. Remove 'remove-reference-to-missing-file' and 'patch-for-qt5.8' phases. Add 'fix-ivis-linktest' phase. [native-inputs]: Add gettext-minimal. [inputs]: Add harfbuzz and remove quesoglc.master
parent
de596e9954
commit
f475b90c35
|
@ -2957,7 +2957,7 @@ fullscreen, use F5 or Alt+Enter.")
|
||||||
(define-public warzone2100
|
(define-public warzone2100
|
||||||
(package
|
(package
|
||||||
(name "warzone2100")
|
(name "warzone2100")
|
||||||
(version "3.2.1")
|
(version "3.2.3")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://sourceforge/" name
|
(uri (string-append "mirror://sourceforge/" name
|
||||||
|
@ -2965,10 +2965,11 @@ fullscreen, use F5 or Alt+Enter.")
|
||||||
".tar.xz"))
|
".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1nd609s0g4sya3r4amhkz3f4dpdmm94vsd2ii76ap665a1nbfrhg"))))
|
"10kmpr4cby95zwqsl1zwx95d9achli6khq7flv6xmrq30a39xazw"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:configure-flags '("--with-distributor=Guix")
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'link-tests-with-qt
|
(add-after 'unpack 'link-tests-with-qt
|
||||||
(lambda _
|
(lambda _
|
||||||
|
@ -2976,24 +2977,22 @@ fullscreen, use F5 or Alt+Enter.")
|
||||||
(("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
|
(("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
|
||||||
(string-append prefix "$(QT5_LIBS) ")))
|
(string-append prefix "$(QT5_LIBS) ")))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'unpack 'remove-reference-to-missing-file
|
(add-after 'unpack 'fix-ivis-linktest
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "icons/Makefile.in"
|
(substitute* "tests/ivis_linktest.cpp"
|
||||||
(("\\$\\(INSTALL_DATA\\) \\$\\(srcdir\\)/warzone2100.appdata.xml.*") ""))
|
(("iV_DrawTextRotated.*;")
|
||||||
#t))
|
(string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
|
||||||
(add-after 'unpack 'patch-for-qt5.8
|
"100, 100, 0.0f, font_regular);")))
|
||||||
(lambda _
|
|
||||||
(substitute* "lib/widget/editbox.cpp"
|
|
||||||
(("== '\\\\0'")
|
|
||||||
"== QChar('\\0')"))
|
|
||||||
#t)))))
|
#t)))))
|
||||||
(native-inputs `(("pkg-config" ,pkg-config)
|
(native-inputs `(("gettext" ,gettext-minimal)
|
||||||
|
("pkg-config" ,pkg-config)
|
||||||
("unzip" ,unzip)
|
("unzip" ,unzip)
|
||||||
("zip" ,zip)))
|
("zip" ,zip)))
|
||||||
(inputs `(("fontconfig" ,fontconfig)
|
(inputs `(("fontconfig" ,fontconfig)
|
||||||
("freetype" ,freetype)
|
("freetype" ,freetype)
|
||||||
("fribidi" ,fribidi)
|
("fribidi" ,fribidi)
|
||||||
("glew" ,glew)
|
("glew" ,glew)
|
||||||
|
("harfbuzz" ,harfbuzz)
|
||||||
("libtheora" ,libtheora)
|
("libtheora" ,libtheora)
|
||||||
("libvorbis" ,libvorbis)
|
("libvorbis" ,libvorbis)
|
||||||
("libxrandr" ,libxrandr)
|
("libxrandr" ,libxrandr)
|
||||||
|
@ -3002,7 +3001,6 @@ fullscreen, use F5 or Alt+Enter.")
|
||||||
("qtbase" ,qtbase)
|
("qtbase" ,qtbase)
|
||||||
("qtscript" ,qtscript)
|
("qtscript" ,qtscript)
|
||||||
("openssl" ,openssl)
|
("openssl" ,openssl)
|
||||||
("quesoglc" ,quesoglc)
|
|
||||||
("sdl2" ,sdl2)))
|
("sdl2" ,sdl2)))
|
||||||
(home-page "http://wz2100.net")
|
(home-page "http://wz2100.net")
|
||||||
(synopsis "3D Real-time strategy and real-time tactics game")
|
(synopsis "3D Real-time strategy and real-time tactics game")
|
||||||
|
|
Reference in New Issue