guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: Add bennu-game-development-modules.


From: guix-commits
Subject: 02/02: gnu: Add bennu-game-development-modules.
Date: Sun, 24 Mar 2019 09:00:43 -0400 (EDT)

ambrevar pushed a commit to branch master
in repository guix.

commit 24c4b012ee9789e2e767da826d9dccf71bbad3b5
Author: Pierre Neidhardt <address@hidden>
Date:   Sun Mar 24 14:00:32 2019 +0100

    gnu: Add bennu-game-development-modules.
    
    * gnu/packages/game-development.scm (bennu-game-development-modules): New 
variable.
---
 gnu/packages/game-development.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/game-development.scm 
b/gnu/packages/game-development.scm
index f6dd401..e67f10a 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1375,3 +1375,27 @@ programming language tailored at game development.  It 
is the successor of
 Fenix.")
     (home-page "https://sourceforge.net/projects/bennugd/";)
     (license license:zlib)))
+
+(define-public bennu-game-development-modules
+  (package
+    (inherit bennu-game-development)
+    (name "bennu-game-development-modules")
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-conflicting-definitions
+           (lambda _
+             (with-fluids ((%default-port-encoding #f))
+               (substitute* "core/include/fmath.h"
+                 (("extern fixed fmul\\( int x, int y \\);") "")
+                 (("extern fixed fdiv\\( int x, int y \\);") "")))
+             (chdir "modules"))))))
+    (inputs `(("zlib" ,zlib)
+              ("libpng" ,libpng)
+              ("openssl" ,openssl)
+              ("sdl-mixer" ,sdl-mixer)
+              ("bennu-game-development" ,bennu-game-development)))
+    (synopsis "Modules for the Bennu Game Developement programming language")
+    (description "This package contains a collection of modules for the Bennu
+Game Developement programming language, from CD handling through SDL to
+joystick support.")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]