mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
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
1 changed files with 19 additions and 7 deletions
|
@ -75,6 +75,7 @@ (define-module (gnu packages games)
|
|||
#:use-module (gnu packages freedesktop)
|
||||
#:use-module (gnu packages fribidi)
|
||||
#:use-module (gnu packages game-development)
|
||||
#:use-module (gnu packages gcc)
|
||||
#:use-module (gnu packages gettext)
|
||||
#:use-module (gnu packages ghostscript)
|
||||
#:use-module (gnu packages gimp)
|
||||
|
@ -2321,7 +2322,7 @@ (define openrct2-objects
|
|||
(define-public openrct2
|
||||
(package
|
||||
(name "openrct2")
|
||||
(version "0.1.1")
|
||||
(version "0.2.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
|
@ -2329,11 +2330,12 @@ (define-public openrct2
|
|||
version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1bahkzlf9k92cc4zs4nk4wy59323kiw8d3wm0vjps3kp7iznqyjx"))
|
||||
"1yrbjra27n2xxb1x47v962lc3qi8gwm5ws4f97952nvn533zrwxz"))
|
||||
(file-name (string-append name "-" version ".tar.gz"))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags '("-DDOWNLOAD_TITLE_SEQUENCES=OFF")
|
||||
`(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
|
||||
"-DDOWNLOAD_TITLE_SEQUENCES=OFF")
|
||||
#:tests? #f ; Tests require network.
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
|
@ -2342,14 +2344,23 @@ (define-public openrct2
|
|||
(let ((titles (assoc-ref inputs "openrct2-title-sequences"))
|
||||
(objects (assoc-ref inputs "openrct2-objects")))
|
||||
;; Fix some references to /usr/share.
|
||||
;; Change to Platform.Linux.cpp on 0.1.2+
|
||||
(substitute* "src/openrct2/platform/linux.c"
|
||||
(substitute* "src/openrct2/platform/Platform.Linux.cpp"
|
||||
(("/usr/share")
|
||||
(string-append (assoc-ref %outputs "out") "/share")))
|
||||
(copy-recursively (string-append titles
|
||||
"/share/openrct2/title-sequences") "data/title")
|
||||
(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)
|
||||
("fontconfig" ,fontconfig)
|
||||
("freetype" ,freetype)
|
||||
|
@ -2365,7 +2376,8 @@ (define-public openrct2
|
|||
("speexdsp" ,speexdsp)
|
||||
("zlib" ,zlib)))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)))
|
||||
`(("gcc" ,gcc-7)
|
||||
("pkg-config" ,pkg-config)))
|
||||
(home-page "https://github.com/OpenRCT2/OpenRCT2")
|
||||
(synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
|
||||
(description "OpenRCT2 is a free software re-implementation of
|
||||
|
|
Loading…
Reference in a new issue