GNU bug report logs - #35037
[PATCH] Add openclonk

Previous Next

Package: guix-patches;

Reported by: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Date: Fri, 29 Mar 2019 00:39:02 UTC

Severity: normal

Tags: patch

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35037 in the body.
You can then email your comments to 35037 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#35037; Package guix-patches. (Fri, 29 Mar 2019 00:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 29 Mar 2019 00:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: guix-patches <at> gnu.org
Subject: [PATCH] Add openclonk
Date: Fri, 29 Mar 2019 01:26:07 +0100
[Message part 1 (text/plain, inline)]
Hello,

The following patch adds OpenClonk game.

Caveat: due to bad interaction with Wayland, I cannot run this game, but
nkcx on IRC successfully ran it. So I guess the package itself is fine.

Feedback welcome.

Regards,

-- 
Nicolas Goaziou
[0001-gnu-Add-openclonk.patch (text/x-diff, inline)]
From 5778fc0c37bcf544dbf91ae90fdabf1d3d263ce4 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Date: Fri, 29 Mar 2019 01:22:35 +0100
Subject: [PATCH] gnu: Add openclonk.

* gnu/packages/games.scm (openclonk): New variable.
---
 gnu/packages/games.scm | 74 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 23dbbca4f7..4221d5870d 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -6551,3 +6551,77 @@ a fortress beyond the forbidden swamp.")
 
 (define-public edgar
   (deprecated-package "edgar" the-legend-of-edgar))
+
+(define-public openclonk
+  (package
+    (name "openclonk")
+    (version "8.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://www.openclonk.org/builds/release/" version "/"
+                    "openclonk-" version "-src.tar.bz2"))
+              (sha256
+               (base32
+                "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f                      ;require Gmock/Gtest
+       #:configure-flags '("-DAudio_TK=OpenAL")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'add-libiberty
+           ;; Build fails upon linking executables without this.
+           (lambda _
+             (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
+               (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
+                (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
+             #t))
+         (add-after 'add-libiberty 'lax-freealut-requirement
+           ;; We provide freealut 1.1.0, but pkg-config somehow
+           ;; detects it as 1.0.1.  Force minimal version.
+           (lambda _
+             (substitute* "cmake/FindAudio.cmake"
+               (("freealut>=1.1.0") "freealut>=1.0.1"))
+             #t))
+         (add-after 'lax-freealut-requirement 'fix-directories
+           ;; Prefer "$out/share/openclonk" over
+           ;; "$out/share/games/openclonk". Also install "openclonk"
+           ;; binary in "bin/", not "games/".
+           (lambda _
+             (substitute* "CMakeLists.txt"
+               (("share/games/openclonk") "share/openclonk")
+               (("TARGETS openclonk DESTINATION games")
+                "TARGETS openclonk DESTINATION bin"))
+             #t)))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("freealut" ,freealut)
+       ("freetype" ,freetype)
+       ("glew" ,glew)
+       ("libiberty" ,libiberty)
+       ("libjpeg" ,libjpeg-turbo)
+       ("libogg" ,libogg)
+       ("libpng" ,libpng)
+       ("libvorbis" ,libvorbis)
+       ("libxrandr" ,libxrandr)
+       ("mesa" ,mesa)
+       ("miniupnpc" ,miniupnpc)
+       ("openal" ,openal)
+       ("qtbase" ,qtbase)
+       ("readline" ,readline)
+       ("sdl" ,sdl2)
+       ("tinyxml" ,tinyxml)
+       ("zlib" ,zlib)))
+    (home-page "https://www.openclonk.org/")
+    (synopsis
+     "Multiplayer action game where you control small and nimble humanoids")
+    (description "OpenClonk is a multiplayer-action-tactics-skill game.  It is
+often referred to as a mixture of The Settlers and Worms.  In a simple 2D
+antfarm-style landscape, the player controls his crew of Clonks, small but
+robust humanoid beings.  The game encourages free play but the normal goal is
+to either exploit valuable resources from the earth by building a mine or
+fight each other on an arena-like map.")
+    ;; Software as a whole is licensed under ISC, artwork under CC-by.
+    (license (list license:isc license:cc-by3.0))))
-- 
2.21.0


Information forwarded to guix-patches <at> gnu.org:
bug#35037; Package guix-patches. (Fri, 29 Mar 2019 03:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 35037 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 35037 <at> debbugs.gnu.org
Subject: Re: [bug#35037] [PATCH] Add openclonk
Date: Fri, 29 Mar 2019 04:18:17 +0100
Hi Nicolas,

> The following patch adds OpenClonk game.

This looks good.  I was going to push it when I noticed that the tests
are disabled even though we do have a googletest package.

I’m now building it again with tests enabled and I’ll try to push it
later today.

Thanks!

-- 
Ricardo





Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Fri, 29 Mar 2019 04:37:02 GMT) Full text and rfc822 format available.

Notification sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
bug acknowledged by developer. (Fri, 29 Mar 2019 04:37:02 GMT) Full text and rfc822 format available.

Message #13 received at 35037-done <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 35037-done <at> debbugs.gnu.org
Subject: Re: [bug#35037] [PATCH] Add openclonk
Date: Fri, 29 Mar 2019 05:35:27 +0100
Ricardo Wurmus <rekado <at> elephly.net> writes:

> Hi Nicolas,
>
>> The following patch adds OpenClonk game.
>
> This looks good.  I was going to push it when I noticed that the tests
> are disabled even though we do have a googletest package.
>
> I’m now building it again with tests enabled and I’ll try to push it
> later today.

I enabled the tests and pushed it to the “master” branch with commit
4e43e3175e.

--
Ricardo





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 26 Apr 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 51 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.