From ca2ce13ceef85dff43ebb90f8a53b71042afd49d Mon Sep 17 00:00:00 2001
* gnu/packages/game-development.scm (flatzebra): New variable.
gnu/packages/game-development.scm | 37 +++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Toggle diff (50 lines)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index ddd171c5d2..58dbb98f78 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1999,6 +1999,43 @@ hardware from multiple vendors without requiring that applications have
specific knowledge of the hardware they are targeting.")
(license license:bsd-3)))
+(define-public flatzebra
+ (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
+ "flatzebra-" version ".tar.gz"))
+ (base32 "1x2dy41c8vrq62bn03b82fpmk7x4rzd7qqiwvq0mgcl5rmasc2c8"))))
+ (build-system gnu-build-system)
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-sdl-config
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; XXX: sdl-config in sdl-union is a link to sdl-config from
+ ;; plain sdl package. As a consequence, the prefix is wrong.
+ ;; Force correct one with "--prefix" argument.
+ (let ((sdl-union (assoc-ref inputs "sdl")))
+ (string-append sdl-union
+ "/bin/sdl-config --prefix="
+ `(("pkg-config" ,pkg-config)))
+ `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
+ (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
+ (synopsis "Generic game engine for 2D double-buffering animation")
+ "Flatzebra is a simple, generic C++ game engine library supporting 2D
+ (license license:gpl2+)))