2013-10-21 23:50:01 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2013 David Thompson <dthompson2@worcester.edu>
|
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages sdl)
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (guix licenses)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
2013-11-21 02:40:45 +00:00
|
|
|
#:use-module ((gnu packages fontutils) #:prefix font:)
|
gnu: Consolidate libjpeg, libpng, and libtiff into one module.
* gnu/packages/image.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add image.scm and remove libjpeg.scm,
libpng.scm, and libtiff.scm.
* gnu/packages/libjpeg.scm, gnu/packages/libpng.scm, gnu/packages/libtiff.scm:
Delete files.
* gnu/packages/emacs.scm gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnustep.scm, gnu/packages/gnuzilla.scm,
gnu/packages/graphviz.scm, gnu/packages/gtk.scm,
gnu/packages/imagemagick.scm, gnu/packages/inkscape.scm,
gnu/packages/netpbm.scm, gnu/packages/pdf.scm, gnu/packages/plotutils.scm,
gnu/packages/qemu.scm, gnu/packages/qt.scm, gnu/packages/scheme.scm,
gnu/packages/sdl.scm, gnu/packages/slim.scm, gnu/packages/tcl.scm,
gnu/packages/texlive.scm, gnu/packages/video.scm, gnu/packages/xiph.scm,
gnu/packages/xorg.scm: Use (gnu packages image) module.
2014-06-25 12:39:02 +00:00
|
|
|
#:use-module (gnu packages image)
|
2013-10-21 23:50:01 +00:00
|
|
|
#:use-module (gnu packages linux)
|
2013-11-21 02:40:45 +00:00
|
|
|
#:use-module (gnu packages mp3)
|
2013-11-19 03:01:19 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages pulseaudio)
|
2013-12-28 08:10:46 +00:00
|
|
|
#:use-module (gnu packages gl)
|
2014-01-23 18:05:09 +00:00
|
|
|
#:use-module (gnu packages xiph)
|
2013-10-21 23:50:01 +00:00
|
|
|
#:use-module (gnu packages xorg)
|
2013-11-19 03:01:19 +00:00
|
|
|
#:export (sdl
|
|
|
|
sdl2
|
2013-11-21 02:40:45 +00:00
|
|
|
libmikmod
|
|
|
|
sdl-gfx
|
|
|
|
sdl-image
|
|
|
|
sdl-mixer
|
|
|
|
sdl-net
|
|
|
|
sdl-ttf))
|
2013-11-19 03:01:19 +00:00
|
|
|
|
|
|
|
(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)
|
2014-01-25 21:16:52 +00:00
|
|
|
(arguments
|
|
|
|
'(;; Explicitly link against Xext because SDL tries to dlopen it and
|
|
|
|
;; doesn't go very far otherwise (see
|
|
|
|
;; <https://lists.gnu.org/archive/html/guix-devel/2013-11/msg00088.html>
|
|
|
|
;; for details.)
|
|
|
|
#:configure-flags '("LDFLAGS=-lXext")
|
|
|
|
|
|
|
|
#:tests? #f)) ; no check target
|
2013-11-23 17:18:45 +00:00
|
|
|
(propagated-inputs
|
|
|
|
;; SDL headers include X11 headers.
|
|
|
|
`(("libx11" ,libx11)))
|
2014-01-25 21:16:52 +00:00
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
2013-11-23 17:18:45 +00:00
|
|
|
(inputs `(("libxrandr" ,libxrandr)
|
2013-11-19 03:01:19 +00:00
|
|
|
("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)))
|
2013-10-21 23:50:01 +00:00
|
|
|
|
|
|
|
(define libmikmod
|
|
|
|
(package
|
|
|
|
(name "libmikmod")
|
|
|
|
(version "3.3.3")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/mikmod/libmikmod/"
|
|
|
|
version "/libmikmod-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0dr4kgvhq9wf2riibh178c2al996spwwak6zffpv5n5bqmw29w3r"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs `(("alsa-lib" ,alsa-lib)
|
|
|
|
("libx11" ,libx11)))
|
2014-09-13 13:50:30 +00:00
|
|
|
(synopsis "Library for module sound formats")
|
2013-10-21 23:50:01 +00:00
|
|
|
(description
|
|
|
|
"MikMod is able to play a wide range of module formats, as well as
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 04:46:59 +00:00
|
|
|
digital sound files. It can take advantage of particular features of your
|
2013-10-21 23:50:01 +00:00
|
|
|
system, such as sound redirection over the network.")
|
|
|
|
(license lgpl2.1)
|
|
|
|
(home-page "http://mikmod.sourceforge.net/")))
|
2013-11-21 02:40:45 +00:00
|
|
|
|
|
|
|
(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)))
|
|
|
|
(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")
|
2014-10-17 21:08:20 +00:00
|
|
|
(license zlib)
|
|
|
|
|
|
|
|
;; The code apparently includes Intel assembly, which fails to build on
|
|
|
|
;; MIPS, at least.
|
|
|
|
(supported-systems '("i686-linux" "x86_64-linux"))))
|
2013-11-21 02:40:45 +00:00
|
|
|
|
|
|
|
(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)
|
2014-05-01 00:35:45 +00:00
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
2013-11-21 02:40:45 +00:00
|
|
|
;; FIXME: Add webp
|
2014-05-01 00:35:45 +00:00
|
|
|
;;
|
|
|
|
;; libjpeg, libpng, and libtiff are propagated inputs because the
|
|
|
|
;; SDL_image headers include the headers of these libraries. SDL is a
|
|
|
|
;; propagated input because the pkg-config file refers to SDL's pkg-config
|
|
|
|
;; file.
|
|
|
|
(propagated-inputs `(("sdl" ,sdl)
|
|
|
|
("libjpeg" ,libjpeg)
|
|
|
|
("libpng" ,libpng)
|
|
|
|
("libtiff" ,libtiff)))
|
2013-11-21 02:40:45 +00:00
|
|
|
(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.")
|
2014-11-04 22:57:46 +00:00
|
|
|
(home-page "http://www.libsdl.org/projects/SDL_image/")
|
2013-11-21 02:40:45 +00:00
|
|
|
(license zlib)))
|
|
|
|
|
|
|
|
(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")))
|
|
|
|
(inputs `(("libvorbis" ,libvorbis)
|
|
|
|
("libflac" ,flac)
|
|
|
|
("libmad" ,libmad)
|
|
|
|
("libmikmod" ,libmikmod)))
|
|
|
|
;; FIXME: Add libfluidsynth
|
|
|
|
(propagated-inputs `(("sdl" ,sdl)))
|
|
|
|
(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.")
|
2014-11-04 22:57:46 +00:00
|
|
|
(home-page "http://www.libsdl.org/projects/SDL_mixer/")
|
2013-11-21 02:40:45 +00:00
|
|
|
(license zlib)))
|
|
|
|
|
|
|
|
(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.")
|
2014-11-04 22:57:46 +00:00
|
|
|
(home-page "http://www.libsdl.org/projects/SDL_net/")
|
2013-11-21 02:40:45 +00:00
|
|
|
(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)))
|
|
|
|
(inputs `(("freetype" ,font:freetype)
|
|
|
|
("mesa" ,mesa)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(synopsis "SDL TrueType font library")
|
|
|
|
(description "SDL_ttf is a TrueType font rendering library for SDL.")
|
2014-11-04 22:57:46 +00:00
|
|
|
(home-page "http://www.libsdl.org/projects/SDL_ttf/")
|
2013-11-21 02:40:45 +00:00
|
|
|
(license zlib)))
|