From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Re: WIP SDL packages Date: Tue, 19 Nov 2013 19:51:36 -0500 Message-ID: <528C0798.7050000@worcester.edu> References: <528AD70C.3070406@worcester.edu> <87r4ac961d.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080909080405010606060003" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Viw15-0000UQ-0x for guix-devel@gnu.org; Tue, 19 Nov 2013 19:51:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Viw0y-00021M-Vs for guix-devel@gnu.org; Tue, 19 Nov 2013 19:51:38 -0500 Received: from na3sys009aog113.obsmtp.com ([74.125.149.209]:55073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Viw0y-000211-OT for guix-devel@gnu.org; Tue, 19 Nov 2013 19:51:32 -0500 Received: by mail-qa0-f42.google.com with SMTP id k4so1375934qaq.1 for ; Tue, 19 Nov 2013 16:51:31 -0800 (PST) In-Reply-To: <87r4ac961d.fsf@gnu.org> 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: =?UTF-8?B?THVkb3ZpYyBDb3VydMOocw==?= Cc: guix-devel@gnu.org This is a multi-part message in MIME format. --------------080909080405010606060003 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 11/19/2013 02:58 AM, Ludovic Courtès wrote: > Hmm, actually it may be that it just lacks pkg-config as an input, no? That was the issue. Thanks! Updated patch attached. - Dave --------------080909080405010606060003 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 391b604b6c10c687e6d1a5a24cb0a6c16227af2e 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 | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm index ceb2173..e8fd65c 100644 --- a/gnu/packages/sdl.scm +++ b/gnu/packages/sdl.scm @@ -23,8 +23,53 @@ #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (gnu packages linux) + #:use-module (gnu packages pkg-config) + #: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) + ("pkg-config" ,pkg-config) + ("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 --------------080909080405010606060003--