gnu: Add PowerTOP.
[jackhill/guix/guix.git] / gnu / packages / sdl.scm
CommitLineData
c3c516ea
DT
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 David Thompson <dthompson2@worcester.edu>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages sdl)
20 #:use-module (gnu packages)
21 #:use-module (guix licenses)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages linux)
8bf8d7c7
DT
26 #:use-module (gnu packages pkg-config)
27 #:use-module (gnu packages pulseaudio)
c3c516ea 28 #:use-module (gnu packages xorg)
8bf8d7c7
DT
29 #:export (sdl
30 sdl2
31 libmikmod))
32
33(define sdl
34 (package
35 (name "sdl")
36 (version "1.2.15")
37 (source (origin
38 (method url-fetch)
39 (uri
40 (string-append "http://libsdl.org/release/SDL-"
41 version ".tar.gz"))
42 (sha256
43 (base32
44 "005d993xcac8236fpvd1iawkz4wqjybkpn8dbwaliqz5jfkidlyn"))))
45 (build-system gnu-build-system)
46 (arguments '(#:tests? #f)) ; no check target
47 (inputs `(("libx11" ,libx11)
48 ("libxrandr" ,libxrandr)
49 ("mesa" ,mesa)
50 ("alsa-lib" ,alsa-lib)
51 ("pkg-config" ,pkg-config)
52 ("pulseaudio" ,pulseaudio)))
53 (synopsis "Cross platform game development library")
54 (description "Simple DirectMedia Layer is a cross-platform development
55library designed to provide low level access to audio, keyboard, mouse,
56joystick, and graphics hardware.")
57 (home-page "http://libsdl.org/")
58 (license lgpl2.1)))
59
60(define sdl2
61 (package (inherit sdl)
62 (name "sdl2")
63 (version "2.0.0")
64 (source (origin
65 (method url-fetch)
66 (uri
67 (string-append "http://libsdl.org/release/SDL2-"
68 version ".tar.gz"))
69 (sha256
70 (base32
71 "0y3in99brki7vc2mb4c0w39v70mf4h341mblhh8nmq4h7lawhskg"))))
72 (license bsd-3)))
c3c516ea
DT
73
74(define libmikmod
75 (package
76 (name "libmikmod")
77 (version "3.3.3")
78 (source (origin
79 (method url-fetch)
80 (uri (string-append "mirror://sourceforge/mikmod/libmikmod/"
81 version "/libmikmod-" version ".tar.gz"))
82 (sha256
83 (base32
84 "0dr4kgvhq9wf2riibh178c2al996spwwak6zffpv5n5bqmw29w3r"))))
85 (build-system gnu-build-system)
86 (inputs `(("alsa-lib" ,alsa-lib)
87 ("libx11" ,libx11)))
88 (synopsis "Library for module sound formats.")
89 (description
90 "MikMod is able to play a wide range of module formats, as well as
91digital sound files. It can take advantage of particular features of your
92system, such as sound redirection over the network.")
93 (license lgpl2.1)
94 (home-page "http://mikmod.sourceforge.net/")))