From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: WIP SDL packages Date: Mon, 18 Nov 2013 22:12:12 -0500 Message-ID: <528AD70C.3070406@worcester.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010200020302000508050803" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VibjY-0001U8-Gn for guix-devel@gnu.org; Mon, 18 Nov 2013 22:12:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VibjT-00052D-1z for guix-devel@gnu.org; Mon, 18 Nov 2013 22:12:12 -0500 Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]:34023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VibjS-000526-QF for guix-devel@gnu.org; Mon, 18 Nov 2013 22:12:06 -0500 Received: by mail-qe0-f50.google.com with SMTP id 1so4787935qee.9 for ; Mon, 18 Nov 2013 19:12:05 -0800 (PST) Received: from [192.168.1.157] (209-6-40-86.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com. [209.6.40.86]) by mx.google.com with ESMTPSA id b9sm47208742qas.7.2013.11.18.19.12.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 19:12:04 -0800 (PST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------010200020302000508050803 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 --------------010200020302000508050803 Content-Type: text/x-patch; name="0001-gnu-Add-SDL-and-SDL2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-gnu-Add-SDL-and-SDL2.patch" >From f58fb0c23c7acbffb164ef7aa7095c28a4c7b4e4 Mon Sep 17 00:00:00 2001 From: David Thompson 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 --------------010200020302000508050803--