gnu: openrct2: Update to 0.2.0.
* gnu/packages/games.scm (openrct2): Update to 0.2.0. [configure-flags]: Add -DDOWNLOAD_OBJECTS=OFF configure flag. [arguments]: Add 'fixgcc7, 'get-rid-of-errors phases. [native-inputs]: Add gcc@7.
This commit is contained in:
parent
fab8d41c64
commit
940c2c5c14
|
@ -75,6 +75,7 @@
|
||||||
#:use-module (gnu packages freedesktop)
|
#:use-module (gnu packages freedesktop)
|
||||||
#:use-module (gnu packages fribidi)
|
#:use-module (gnu packages fribidi)
|
||||||
#:use-module (gnu packages game-development)
|
#:use-module (gnu packages game-development)
|
||||||
|
#:use-module (gnu packages gcc)
|
||||||
#:use-module (gnu packages gettext)
|
#:use-module (gnu packages gettext)
|
||||||
#:use-module (gnu packages ghostscript)
|
#:use-module (gnu packages ghostscript)
|
||||||
#:use-module (gnu packages gimp)
|
#:use-module (gnu packages gimp)
|
||||||
|
@ -2321,7 +2322,7 @@ Transport Tycoon Deluxe.")
|
||||||
(define-public openrct2
|
(define-public openrct2
|
||||||
(package
|
(package
|
||||||
(name "openrct2")
|
(name "openrct2")
|
||||||
(version "0.1.1")
|
(version "0.2.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -2329,11 +2330,12 @@ Transport Tycoon Deluxe.")
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1bahkzlf9k92cc4zs4nk4wy59323kiw8d3wm0vjps3kp7iznqyjx"))
|
"1yrbjra27n2xxb1x47v962lc3qi8gwm5ws4f97952nvn533zrwxz"))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))))
|
(file-name (string-append name "-" version ".tar.gz"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags '("-DDOWNLOAD_TITLE_SEQUENCES=OFF")
|
`(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
|
||||||
|
"-DDOWNLOAD_TITLE_SEQUENCES=OFF")
|
||||||
#:tests? #f ; Tests require network.
|
#:tests? #f ; Tests require network.
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
@ -2342,14 +2344,23 @@ Transport Tycoon Deluxe.")
|
||||||
(let ((titles (assoc-ref inputs "openrct2-title-sequences"))
|
(let ((titles (assoc-ref inputs "openrct2-title-sequences"))
|
||||||
(objects (assoc-ref inputs "openrct2-objects")))
|
(objects (assoc-ref inputs "openrct2-objects")))
|
||||||
;; Fix some references to /usr/share.
|
;; Fix some references to /usr/share.
|
||||||
;; Change to Platform.Linux.cpp on 0.1.2+
|
(substitute* "src/openrct2/platform/Platform.Linux.cpp"
|
||||||
(substitute* "src/openrct2/platform/linux.c"
|
|
||||||
(("/usr/share")
|
(("/usr/share")
|
||||||
(string-append (assoc-ref %outputs "out") "/share")))
|
(string-append (assoc-ref %outputs "out") "/share")))
|
||||||
(copy-recursively (string-append titles
|
(copy-recursively (string-append titles
|
||||||
"/share/openrct2/title-sequences") "data/title")
|
"/share/openrct2/title-sequences") "data/title")
|
||||||
(copy-recursively (string-append objects
|
(copy-recursively (string-append objects
|
||||||
"/share/openrct2/objects") "data/object")))))))
|
"/share/openrct2/objects") "data/object"))))
|
||||||
|
(add-before 'configure 'fixgcc7
|
||||||
|
(lambda _
|
||||||
|
(unsetenv "C_INCLUDE_PATH")
|
||||||
|
(unsetenv "CPLUS_INCLUDE_PATH")
|
||||||
|
#t))
|
||||||
|
(add-after 'fixgcc7 'get-rid-of-errors
|
||||||
|
(lambda _
|
||||||
|
;; Don't treat warnings as errors.
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("-Werror") "")))))))
|
||||||
(inputs `(("curl" ,curl)
|
(inputs `(("curl" ,curl)
|
||||||
("fontconfig" ,fontconfig)
|
("fontconfig" ,fontconfig)
|
||||||
("freetype" ,freetype)
|
("freetype" ,freetype)
|
||||||
|
@ -2365,7 +2376,8 @@ Transport Tycoon Deluxe.")
|
||||||
("speexdsp" ,speexdsp)
|
("speexdsp" ,speexdsp)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("gcc" ,gcc-7)
|
||||||
|
("pkg-config" ,pkg-config)))
|
||||||
(home-page "https://github.com/OpenRCT2/OpenRCT2")
|
(home-page "https://github.com/OpenRCT2/OpenRCT2")
|
||||||
(synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
|
(synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
|
||||||
(description "OpenRCT2 is a free software re-implementation of
|
(description "OpenRCT2 is a free software re-implementation of
|
||||||
|
|
Loading…
Reference in New Issue