From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH] gnu: Add SDL extension libraries Date: Wed, 20 Nov 2013 21:47:57 -0500 Message-ID: <528D745D.1040105@worcester.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000606020902050503080100" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjKJQ-00026E-BV for guix-devel@gnu.org; Wed, 20 Nov 2013 21:48:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjKJJ-00064T-9j for guix-devel@gnu.org; Wed, 20 Nov 2013 21:48:12 -0500 Received: from na3sys009aog107.obsmtp.com ([74.125.149.197]:42804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjKJI-00064I-Vv for guix-devel@gnu.org; Wed, 20 Nov 2013 21:48:05 -0500 Received: by mail-qa0-f41.google.com with SMTP id j5so2719532qaq.7 for ; Wed, 20 Nov 2013 18:48:01 -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 u17sm7993791qeb.4.2013.11.20.18.47.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Nov 2013 18:48:00 -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. --------------000606020902050503080100 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Attached is a patch to add the following extension libraries for SDL 1.x: SDL_gfx, SDL_image, SDL_mixer, SDL_net, and SDL_ttf. SDL_mixer is missing an optional dependency for playing MIDI files, and SDL_image is missing an optional dependency for reading webp files. - Dave --------------000606020902050503080100 Content-Type: text/x-patch; name="0001-gnu-Add-SDL-extension-libraries.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-gnu-Add-SDL-extension-libraries.patch" >From 108f8690547da8a217531330c53a64e605941327 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 20 Nov 2013 21:40:45 -0500 Subject: [PATCH] gnu: Add SDL extension libraries. * gnu/packages/sdl.scm (sdl-gfx, sdl-image, sdl-mixer, sdl-net, sdl-ttf): New variables. --- gnu/packages/sdl.scm | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 134 insertions(+), 1 deletion(-) diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm index e8fd65c..c10bf0d 100644 --- a/gnu/packages/sdl.scm +++ b/gnu/packages/sdl.scm @@ -22,13 +22,24 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) + #:use-module ((gnu packages fontutils) #:prefix font:) + #:use-module (gnu packages libjpeg) + #:use-module (gnu packages libpng) + #:use-module (gnu packages libtiff) #:use-module (gnu packages linux) + #:use-module (gnu packages mp3) + #:use-module (gnu packages oggvorbis) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages xorg) #:export (sdl sdl2 - libmikmod)) + libmikmod + sdl-gfx + sdl-image + sdl-mixer + sdl-net + sdl-ttf)) (define sdl (package @@ -92,3 +103,125 @@ digital sound files. It can take advantage of particular features of your system, such as sound redirection over the network.") (license lgpl2.1) (home-page "http://mikmod.sourceforge.net/"))) + +(define sdl-gfx + (package + (name "sdl-gfx") + (version "2.0.24") + (source (origin + (method url-fetch) + (uri + (string-append "http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-" + version ".tar.gz")) + (sha256 + (base32 + "064islldm4r42lgj9fr4kbk66r7jmmakk9745hhyb1kmw71kib9h")))) + (build-system gnu-build-system) + (propagated-inputs `(("sdl" ,sdl))) + (inputs `(("libx11" ,libx11))) + (synopsis "SDL graphics primitives library") + (description "SDL_gfx provides graphics drawing primitives, rotozoom and +other supporting functions for SDL.") + (home-page "http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx") + (license zlib))) + +(define sdl-image + (package + (name "sdl-image") + (version "1.2.12") + (source (origin + (method url-fetch) + (uri + (string-append "http://www.libsdl.org/projects/SDL_image/release/SDL_image-" + version ".tar.gz")) + (sha256 + (base32 + "16an9slbb8ci7d89wakkmyfvp7c0cval8xw4hkg0842nhhlp540b")))) + (build-system gnu-build-system) + ;; FIXME: Add webp + (propagated-inputs `(("sdl" ,sdl) + ("libpng" ,libpng) + ("libjpeg" ,libjpeg) + ("libtiff" ,libtiff))) + (inputs `(("pkg-config" ,pkg-config))) + (synopsis "SDL image loading library") + (description "SDL_image is an image file loading library for SDL that +supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, +WEBP, XCF, XPM, and XV.") + (home-page "www.libsdl.org/projects/SDL_image/") + (license bsd-3))) + +(define sdl-mixer + (package + (name "sdl-mixer") + (version "1.2.12") + (source (origin + (method url-fetch) + (uri + (string-append "http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-" + version ".tar.gz")) + (sha256 + (base32 + "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n")))) + (build-system gnu-build-system) + ;; no check target + ;; use libmad instead of smpeg + (arguments `(#:tests? #f + #:configure-flags '("--enable-music-mp3-mad-gpl"))) + ;; FIXME: Add libfluidsynth + (propagated-inputs `(("sdl" ,sdl) + ("libvorbis" ,libvorbis) + ("libflac" ,flac) + ("libmad" ,libmad) + ("libmikmod" ,libmikmod))) + (synopsis "SDL multi-channel audio mixer library") + (description "SDL_mixer is a multi-channel audio mixer library for SDL. +It supports any number of simultaneously playing channels of 16 bit stereo +audio, plus a single channel of music. Supported format include FLAC, MOD, +MIDI, Ogg Vorbis, and MP3.") + (home-page "www.libsdl.org/projects/SDL_mixer/") + (license bsd-3))) + +(define sdl-net + (package + (name "sdl-net") + (version "1.2.8") + (source (origin + (method url-fetch) + (uri + (string-append "http://www.libsdl.org/projects/SDL_net/release/SDL_net-" + version ".tar.gz")) + (sha256 + (base32 + "1d5c9xqlf4s1c01gzv6cxmg0r621pq9kfgxcg3197xw4p25pljjz")))) + (build-system gnu-build-system) + (propagated-inputs `(("sdl" ,sdl))) + (inputs `(("pkg-config" ,pkg-config))) + (synopsis "SDL networking library") + (description "SDL_net is a small, cross-platform networking library for +SDL.") + (home-page "www.libsdl.org/projects/SDL_net/") + (license zlib))) + +(define sdl-ttf + (package + (name "sdl-ttf") + (version "2.0.11") + (source (origin + (method url-fetch) + (uri + (string-append "http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-" + version ".tar.gz")) + (sha256 + (base32 + "1dydxd4f5kb1288i5n5568kdk2q7f8mqjr7i7sd33nplxjaxhk3j")))) + (build-system gnu-build-system) + (propagated-inputs `(("sdl" ,sdl) + ("pkg-config" ,pkg-config) + ("freetype" ,font:freetype))) + (inputs `(("libx11" ,libx11) + ("mesa" ,mesa))) + (synopsis "SDL TrueType font library") + (description "SDL_ttf is a TrueType font rendering library for SDL.") + (home-page "www.libsdl.org/projects/SDL_ttf/") + (license zlib))) -- 1.8.4.2 --------------000606020902050503080100--