diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-06-15 21:55:33 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-06-29 00:54:52 +0200 |
commit | 93c47bff5d90655d462a8451b1d83265a1beb6b4 (patch) | |
tree | a05c5b0a5bb86cffa886f27b8147b86fdec98cf6 | |
parent | 98145307f7f040605589d33f83c3758612a95fc9 (diff) | |
download | guix-93c47bff5d90655d462a8451b1d83265a1beb6b4.tar.gz guix-93c47bff5d90655d462a8451b1d83265a1beb6b4.zip |
gnu: Add flatzebra.
* gnu/packages/game-development.scm (flatzebra): New variable.
-rw-r--r-- | gnu/packages/game-development.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index fb2c13b743..c28234217c 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -2002,6 +2002,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 + (package + (name "flatzebra") + (version "0.1.7") + (source + (origin + (method url-fetch) + (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/" + "flatzebra-" version ".tar.gz")) + (sha256 + (base32 "1x2dy41c8vrq62bn03b82fpmk7x4rzd7qqiwvq0mgcl5rmasc2c8")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (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"))) + (setenv "SDL_CONFIG" + (string-append sdl-union + "/bin/sdl-config --prefix=" + sdl-union))) + #t))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("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") + (description + "Flatzebra is a simple, generic C++ game engine library supporting 2D +double-buffering.") + (license license:gpl2+))) + (define-public fna (package (name "fna") |