guix-devel
[Top][All Lists]
Advanced

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

[PATCH 1/3] gnu: Add openal.


From: David Thompson
Subject: [PATCH 1/3] gnu: Add openal.
Date: Fri, 5 Sep 2014 14:53:16 -0400

* gnu/packages/games.scm (openal): New variable.
---
 gnu/packages/games.scm | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 84e09aa..e6ef402 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -41,7 +41,10 @@
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages texinfo)
-  #:use-module (guix build-system gnu))
+  #:use-module (gnu packages pulseaudio)
+  #:use-module (gnu packages linux)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix build-system cmake))
 
 (define-public gnubg
   (package
@@ -321,3 +324,32 @@ and Makruk.  Several lesser-known variants are also 
supported.  It presents a
 fully interactive graphical interface and it can load and save games in the
 Portable Game Notation.")
     (license gpl3+)))
+
+(define-public openal
+  (package
+    (name "openal")
+    (version "1.15.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://kcat.strangesoft.net/openal-releases/openal-soft-";
+                    version ".tar.bz2"))
+              (sha256
+               (base32
+                "0mmhdqiyb3c9dzvxspm8h2v8jibhi8pfjxnf6m0wn744y1ia2a8f"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f)) ; no check target
+    (inputs
+     `(("alsa-lib" ,alsa-lib)
+       ("pulseaudio" ,pulseaudio)))
+    (synopsis "3D audio API")
+    (description
+     "OpenAL provides capabilities for playing audio in a virtual 3D
+environment.  Distance attenuation, doppler shift, and directional sound
+emitters are among the features handled by the API.  More advanced effects,
+including air absorption, occlusion, and environmental reverb, are available
+through the EFX extension.  It also facilitates streaming audio, multi-channel
+buffers, and audio capture.")
+    (home-page "http://kcat.strangesoft.net/openal.html";)
+    (license lgpl2.0+)))
-- 
2.1.0




reply via email to

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