From acb1f8e7181a1e3d2b496f26e350582ca9b65db9 Mon Sep 17 00:00:00 2001
From: Lprndn <guix@lprndn.info>
Date: Thu, 24 Jan 2019 13:34:26 +0100
Subject: [PATCH] gnu: Add arcan-sdl.
* gnu/packages/arcan.scm (arcan-sdl): New variable.
---
gnu/packages/arcan.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
@@ -20,8 +20,10 @@
#:use-module (gnu packages pcre)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages ruby)
+ #:use-module (gnu packages sdl)
#:use-module (gnu packages video)
- #:use-module (gnu packages xdisorg))
+ #:use-module (gnu packages xdisorg)
+ #:use-module (srfi srfi-1))
(define-public arcan
(package
@@ -128,3 +130,21 @@ all the way to full-blown desktop environments")
(license (list license:gpl2+
license:lgpl2.0
license:bsd-3))))
+
+(define-public arcan-sdl
+ (package
+ (inherit arcan)
+ (name "arcan-sdl")
+ (inputs
+ `(("sdl" ,sdl)
+ ,@(fold alist-delete (package-inputs arcan)
+ '("libdrm"))))
+ (arguments
+ `(,@(ensure-keyword-arguments
+ (package-arguments arcan)
+ '(#:configure-flags
+ '("-DVIDEO_PLATFORM=sdl" "-DBUILTIN_LUA=off"
+ "-DSTATIC_OPENAL=off" "-DDISABLE_JIT=off"
+ "-DENABLE_LWA=on" "-DSTATIC_SQLITE3=off"
+ "-DSTATIC_FREETYPE=off" "-DSHMIF_TUI_ACCEL=on")))))
+ (synopsis "Combined display server, multimedia framework and game engine (sdl)")))
--
2.19.2