From ecbac51a0c132b1b1369e2693516a0638b7a076c Mon Sep 17 00:00:00 2001 From: Rutger Helling Date: Thu, 14 Jun 2018 18:09:55 +0200 Subject: gnu: openrct2: Downgrade to 0.1.1. * gnu/packages/games.scm (openrct2): Downgrade to 0.1.1 due to audio not working on 0.1.2+. Needs fixing before upgrade. [arguments]: Add "-DDOWNLOAD_TITLE_SEQUENCES=OFF" configure-flag. Remove 'fixgcc7 and 'get-rid-of-errors phases. [native-inputs]: Remove gcc@7. --- gnu/packages/games.scm | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index ede951fc5c..7d6d2e8c4a 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -74,7 +74,6 @@ (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) @@ -2315,7 +2314,7 @@ (define openrct2-objects (define-public openrct2 (package (name "openrct2") - (version "0.2.0") + (version "0.1.1") (source (origin (method url-fetch) @@ -2323,11 +2322,12 @@ (define-public openrct2 version ".tar.gz")) (sha256 (base32 - "1yrbjra27n2xxb1x47v962lc3qi8gwm5ws4f97952nvn533zrwxz")) + "1bahkzlf9k92cc4zs4nk4wy59323kiw8d3wm0vjps3kp7iznqyjx")) (file-name (string-append name "-" version ".tar.gz")))) (build-system cmake-build-system) (arguments - `(#:tests? #f ; Tests require network. + `(#:configure-flags '("-DDOWNLOAD_TITLE_SEQUENCES=OFF") + #:tests? #f ; Tests require network. #:phases (modify-phases %standard-phases (add-after 'unpack 'fix-usr-share-paths&add-data @@ -2335,23 +2335,14 @@ (define-public openrct2 (let ((titles (assoc-ref inputs "openrct2-title-sequences")) (objects (assoc-ref inputs "openrct2-objects"))) ;; Fix some references to /usr/share. - (substitute* "src/openrct2/platform/Platform.Linux.cpp" + ;; Change to Platform.Linux.cpp on 0.1.2+ + (substitute* "src/openrct2/platform/linux.c" (("/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")))) - (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") ""))))))) + "/share/openrct2/objects") "data/object"))))))) (inputs `(("curl" ,curl) ("fontconfig" ,fontconfig) ("freetype" ,freetype) @@ -2367,8 +2358,7 @@ (define-public openrct2 ("speexdsp" ,speexdsp) ("zlib" ,zlib))) (native-inputs - `(("gcc" ,gcc-7) - ("pkg-config" ,pkg-config))) + `(("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 -- cgit v1.2.3