diff options
| author | Rutger Helling <rhelling@mykolab.com> | 2018-07-03 10:57:50 +0200 |
|---|---|---|
| committer | Rutger Helling <rhelling@mykolab.com> | 2018-07-03 11:01:21 +0200 |
| commit | 940c2c5c14745b9559f83fca07db74aaa3f14c5e (patch) | |
| tree | 894a0bccca407928b0ee8e978dccfda3bb8d9800 | |
| parent | fab8d41c647c42d75779bbe601c5b4c64283a806 (diff) | |
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.
| -rw-r--r-- | gnu/packages/games.scm | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 96b45b9e8d9..8e0dfcb8ffc 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm | |||
| @@ -75,6 +75,7 @@ | |||
| 75 | #:use-module (gnu packages freedesktop) | 75 | #:use-module (gnu packages freedesktop) |
| 76 | #:use-module (gnu packages fribidi) | 76 | #:use-module (gnu packages fribidi) |
| 77 | #:use-module (gnu packages game-development) | 77 | #:use-module (gnu packages game-development) |
| 78 | #:use-module (gnu packages gcc) | ||
| 78 | #:use-module (gnu packages gettext) | 79 | #:use-module (gnu packages gettext) |
| 79 | #:use-module (gnu packages ghostscript) | 80 | #:use-module (gnu packages ghostscript) |
| 80 | #:use-module (gnu packages gimp) | 81 | #:use-module (gnu packages gimp) |
| @@ -2321,7 +2322,7 @@ Transport Tycoon Deluxe.") | |||
| 2321 | (define-public openrct2 | 2322 | (define-public openrct2 |
| 2322 | (package | 2323 | (package |
| 2323 | (name "openrct2") | 2324 | (name "openrct2") |
| 2324 | (version "0.1.1") | 2325 | (version "0.2.0") |
| 2325 | (source | 2326 | (source |
| 2326 | (origin | 2327 | (origin |
| 2327 | (method url-fetch) | 2328 | (method url-fetch) |
| @@ -2329,11 +2330,12 @@ Transport Tycoon Deluxe.") | |||
| 2329 | version ".tar.gz")) | 2330 | version ".tar.gz")) |
| 2330 | (sha256 | 2331 | (sha256 |
| 2331 | (base32 | 2332 | (base32 |
| 2332 | "1bahkzlf9k92cc4zs4nk4wy59323kiw8d3wm0vjps3kp7iznqyjx")) | 2333 | "1yrbjra27n2xxb1x47v962lc3qi8gwm5ws4f97952nvn533zrwxz")) |
| 2333 | (file-name (string-append name "-" version ".tar.gz")))) | 2334 | (file-name (string-append name "-" version ".tar.gz")))) |
| 2334 | (build-system cmake-build-system) | 2335 | (build-system cmake-build-system) |
| 2335 | (arguments | 2336 | (arguments |
| 2336 | `(#:configure-flags '("-DDOWNLOAD_TITLE_SEQUENCES=OFF") | 2337 | `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF" |
| 2338 | "-DDOWNLOAD_TITLE_SEQUENCES=OFF") | ||
| 2337 | #:tests? #f ; Tests require network. | 2339 | #:tests? #f ; Tests require network. |
| 2338 | #:phases | 2340 | #:phases |
| 2339 | (modify-phases %standard-phases | 2341 | (modify-phases %standard-phases |
| @@ -2342,14 +2344,23 @@ Transport Tycoon Deluxe.") | |||
| 2342 | (let ((titles (assoc-ref inputs "openrct2-title-sequences")) | 2344 | (let ((titles (assoc-ref inputs "openrct2-title-sequences")) |
| 2343 | (objects (assoc-ref inputs "openrct2-objects"))) | 2345 | (objects (assoc-ref inputs "openrct2-objects"))) |
| 2344 | ;; Fix some references to /usr/share. | 2346 | ;; Fix some references to /usr/share. |
| 2345 | ;; Change to Platform.Linux.cpp on 0.1.2+ | 2347 | (substitute* "src/openrct2/platform/Platform.Linux.cpp" |
| 2346 | (substitute* "src/openrct2/platform/linux.c" | ||
| 2347 | (("/usr/share") | 2348 | (("/usr/share") |
| 2348 | (string-append (assoc-ref %outputs "out") "/share"))) | 2349 | (string-append (assoc-ref %outputs "out") "/share"))) |
| 2349 | (copy-recursively (string-append titles | 2350 | (copy-recursively (string-append titles |
| 2350 | "/share/openrct2/title-sequences") "data/title") | 2351 | "/share/openrct2/title-sequences") "data/title") |
| 2351 | (copy-recursively (string-append objects | 2352 | (copy-recursively (string-append objects |
| 2352 | "/share/openrct2/objects") "data/object"))))))) | 2353 | "/share/openrct2/objects") "data/object")))) |
| 2354 | (add-before 'configure 'fixgcc7 | ||
| 2355 | (lambda _ | ||
| 2356 | (unsetenv "C_INCLUDE_PATH") | ||
| 2357 | (unsetenv "CPLUS_INCLUDE_PATH") | ||
| 2358 | #t)) | ||
| 2359 | (add-after 'fixgcc7 'get-rid-of-errors | ||
| 2360 | (lambda _ | ||
| 2361 | ;; Don't treat warnings as errors. | ||
| 2362 | (substitute* "CMakeLists.txt" | ||
| 2363 | (("-Werror") ""))))))) | ||
| 2353 | (inputs `(("curl" ,curl) | 2364 | (inputs `(("curl" ,curl) |
| 2354 | ("fontconfig" ,fontconfig) | 2365 | ("fontconfig" ,fontconfig) |
| 2355 | ("freetype" ,freetype) | 2366 | ("freetype" ,freetype) |
| @@ -2365,7 +2376,8 @@ Transport Tycoon Deluxe.") | |||
| 2365 | ("speexdsp" ,speexdsp) | 2376 | ("speexdsp" ,speexdsp) |
| 2366 | ("zlib" ,zlib))) | 2377 | ("zlib" ,zlib))) |
| 2367 | (native-inputs | 2378 | (native-inputs |
| 2368 | `(("pkg-config" ,pkg-config))) | 2379 | `(("gcc" ,gcc-7) |
| 2380 | ("pkg-config" ,pkg-config))) | ||
| 2369 | (home-page "https://github.com/OpenRCT2/OpenRCT2") | 2381 | (home-page "https://github.com/OpenRCT2/OpenRCT2") |
| 2370 | (synopsis "Free software re-implementation of RollerCoaster Tycoon 2") | 2382 | (synopsis "Free software re-implementation of RollerCoaster Tycoon 2") |
| 2371 | (description "OpenRCT2 is a free software re-implementation of | 2383 | (description "OpenRCT2 is a free software re-implementation of |
