all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Thompson <dthompson2@worcester.edu>
To: guix-devel@gnu.org
Subject: WIP SDL packages
Date: Mon, 18 Nov 2013 22:12:12 -0500	[thread overview]
Message-ID: <528AD70C.3070406@worcester.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

Hello all,

Attached is a work-in-progress patch that adds SDL and SDL2 packages.

I'm having some trouble getting the dependencies sorted out. For
instance, pulseaudio is listed as an input but the configure script does
not detect pulseaudio support. Both packages build successfully, but
they are probably missing other optional dependencies.

Would anyone mind taking a look and giving some feedback?

Here is the nixpkgs definition for reference:
https://github.com/nbp/Nixpkgs/blob/master/pkgs/development/libraries/SDL/default.nix

Thanks,
- Dave

[-- Attachment #2: 0001-gnu-Add-SDL-and-SDL2.patch --]
[-- Type: text/x-patch, Size: 2222 bytes --]

From f58fb0c23c7acbffb164ef7aa7095c28a4c7b4e4 Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Mon, 18 Nov 2013 22:01:19 -0500
Subject: [PATCH] gnu: Add SDL and SDL2.

* gnu/packages/sdl.scm (sdl, sdl2): New variables.
---
 gnu/packages/sdl.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 44 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index ceb2173..dbc53bb 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -23,8 +23,51 @@
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages xorg)
-  #:export (libmikmod))
+  #:export (sdl
+            sdl2
+            libmikmod))
+
+(define sdl
+  (package
+    (name "sdl")
+    (version "1.2.15")
+    (source (origin
+             (method url-fetch)
+             (uri
+              (string-append "http://libsdl.org/release/SDL-"
+                             version ".tar.gz"))
+             (sha256
+              (base32
+               "005d993xcac8236fpvd1iawkz4wqjybkpn8dbwaliqz5jfkidlyn"))))
+    (build-system gnu-build-system)
+    (arguments '(#:tests? #f)) ; no check target
+    (inputs `(("libx11" ,libx11)
+              ("libxrandr" ,libxrandr)
+              ("mesa" ,mesa)
+              ("alsa-lib" ,alsa-lib)
+              ("pulseaudio" ,pulseaudio)))
+    (synopsis "Cross platform game development library")
+    (description "Simple DirectMedia Layer is a cross-platform development
+library designed to provide low level access to audio, keyboard, mouse,
+joystick, and graphics hardware.")
+    (home-page "http://libsdl.org/")
+    (license lgpl2.1)))
+
+(define sdl2
+  (package (inherit sdl)
+    (name "sdl2")
+    (version "2.0.0")
+    (source (origin
+             (method url-fetch)
+             (uri
+              (string-append "http://libsdl.org/release/SDL2-"
+                             version ".tar.gz"))
+             (sha256
+              (base32
+               "0y3in99brki7vc2mb4c0w39v70mf4h341mblhh8nmq4h7lawhskg"))))
+    (license bsd-3)))
 
 (define libmikmod
   (package
-- 
1.8.4.2


             reply	other threads:[~2013-11-19  3:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19  3:12 David Thompson [this message]
2013-11-19  7:58 ` WIP SDL packages Ludovic Courtès
2013-11-20  0:51   ` David Thompson
2013-11-20 11:15     ` Ludovic Courtès
2013-11-23 17:26       ` Ludovic Courtès
2014-01-25 22:09         ` Ludovic Courtès
2014-01-26 18:40           ` David Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528AD70C.3070406@worcester.edu \
    --to=dthompson2@worcester.edu \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.