2013-10-22 01:50:01 +02:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2017-01-05 17:15:57 +01:00
|
|
|
;;; Copyright © 2013, 2015, 2017 David Thompson <dthompson2@worcester.edu>
|
2014-12-26 06:32:48 +01:00
|
|
|
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
2017-01-22 07:31:54 +01:00
|
|
|
;;; Copyright © 2015, 2017 Sou Bunnbu <iyzsong@member.fsf.org>
|
2015-10-10 10:27:27 +02:00
|
|
|
;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
|
2017-04-24 09:47:18 +02:00
|
|
|
;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
|
2018-10-31 22:49:47 +01:00
|
|
|
;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
|
2019-02-14 23:38:10 +01:00
|
|
|
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-06-20 10:56:23 +02:00
|
|
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
2019-02-13 03:45:03 +01:00
|
|
|
;;; Copyright © 2019 Kei Kebreau <kkebreau@posteo.net>
|
2013-10-22 01:50:01 +02:00
|
|
|
;;;
|
|
|
|
;;; 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)
|
2015-12-15 19:30:11 +01:00
|
|
|
#:use-module (ice-9 match)
|
2017-04-24 09:47:18 +02:00
|
|
|
#:use-module (srfi srfi-1)
|
|
|
|
#:use-module (srfi srfi-26)
|
2013-10-22 01:50:01 +02:00
|
|
|
#:use-module (gnu packages)
|
2015-04-14 23:25:37 +02:00
|
|
|
#:use-module ((guix licenses) #:hide (freetype))
|
2013-10-22 01:50:01 +02:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2017-11-05 12:01:04 +01:00
|
|
|
#:use-module (guix utils)
|
2013-10-22 01:50:01 +02:00
|
|
|
#:use-module (guix build-system gnu)
|
2018-09-28 08:31:11 +02:00
|
|
|
#:use-module (guix build-system haskell)
|
2014-11-02 17:54:20 +01:00
|
|
|
#:use-module (guix build-system trivial)
|
2016-03-26 17:50:28 +01:00
|
|
|
#:use-module (gnu packages audio)
|
2017-01-05 17:27:10 +01:00
|
|
|
#:use-module (gnu packages fcitx)
|
2015-04-14 23:25:37 +02:00
|
|
|
#:use-module (gnu packages fontutils)
|
2017-11-05 12:01:04 +01:00
|
|
|
#:use-module (gnu packages freedesktop)
|
2017-01-05 17:15:57 +01:00
|
|
|
#:use-module (gnu packages glib)
|
2014-11-02 17:55:21 +01:00
|
|
|
#:use-module (gnu packages guile)
|
2018-09-28 08:31:11 +02:00
|
|
|
#:use-module (gnu packages haskell)
|
2017-01-05 17:15:57 +01:00
|
|
|
#:use-module (gnu packages ibus)
|
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 14:39:02 +02:00
|
|
|
#:use-module (gnu packages image)
|
2013-10-22 01:50:01 +02:00
|
|
|
#:use-module (gnu packages linux)
|
2013-11-21 03:40:45 +01:00
|
|
|
#:use-module (gnu packages mp3)
|
2013-11-19 04:01:19 +01:00
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages pulseaudio)
|
2013-12-28 09:10:46 +01:00
|
|
|
#:use-module (gnu packages gl)
|
2017-11-05 12:01:04 +01:00
|
|
|
#:use-module (gnu packages xdisorg)
|
2014-01-23 19:05:09 +01:00
|
|
|
#:use-module (gnu packages xiph)
|
2013-10-22 01:50:01 +02:00
|
|
|
#:use-module (gnu packages xorg)
|
2016-07-29 10:23:51 +02:00
|
|
|
#:export (sdl-union))
|
2013-11-19 04:01:19 +01:00
|
|
|
|
2016-07-29 10:23:51 +02:00
|
|
|
(define-public sdl
|
2013-11-19 04:01:19 +01:00
|
|
|
(package
|
|
|
|
(name "sdl")
|
|
|
|
(version "1.2.15")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
2016-10-27 10:55:57 +02:00
|
|
|
(string-append "https://libsdl.org/release/SDL-"
|
2013-11-19 04:01:19 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2014-12-26 06:32:48 +01:00
|
|
|
"005d993xcac8236fpvd1iawkz4wqjybkpn8dbwaliqz5jfkidlyn"))
|
2016-04-08 14:18:13 +02:00
|
|
|
(patches (search-patches "sdl-libx11-1.6.patch"))))
|
2013-11-19 04:01:19 +01:00
|
|
|
(build-system gnu-build-system)
|
2014-01-25 22:16:52 +01:00
|
|
|
(arguments
|
2015-02-05 08:03:50 +01:00
|
|
|
'(;; Explicitly link against shared libraries instead of dlopening them.
|
2015-03-18 05:48:16 +01:00
|
|
|
;; For X11, ALSA, and PulseAudio.
|
|
|
|
;; OpenGL library is still dlopened at runtime.
|
|
|
|
#:configure-flags '("--disable-alsa-shared"
|
|
|
|
"--disable-pulseaudio-shared"
|
2015-03-21 08:08:39 +01:00
|
|
|
"--disable-x11-shared"
|
|
|
|
;; Explicitly link with mesa.
|
|
|
|
;; This add mesa to libsdl's RUNPATH, to make dlopen
|
|
|
|
;; finding the libGL from mesa at runtime.
|
|
|
|
"LDFLAGS=-lGL")
|
2014-01-25 22:16:52 +01:00
|
|
|
|
2019-02-23 17:25:51 +01:00
|
|
|
#:make-flags '("V=1") ;build verbosely
|
|
|
|
|
2014-01-25 22:16:52 +01:00
|
|
|
#:tests? #f)) ; no check target
|
2013-11-23 18:18:45 +01:00
|
|
|
(propagated-inputs
|
|
|
|
;; SDL headers include X11 headers.
|
2015-02-05 08:03:50 +01:00
|
|
|
`(("libx11" ,libx11)
|
|
|
|
("libcap" ,libcap))) ; 'libSDL.la' contain `-lcap'.
|
2014-01-25 22:16:52 +01:00
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
2013-11-23 18:18:45 +01:00
|
|
|
(inputs `(("libxrandr" ,libxrandr)
|
2013-11-19 04:01:19 +01:00
|
|
|
("mesa" ,mesa)
|
2015-03-18 05:48:16 +01:00
|
|
|
("glu" ,glu)
|
2013-11-19 04:01:19 +01:00
|
|
|
("alsa-lib" ,alsa-lib)
|
|
|
|
("pulseaudio" ,pulseaudio)))
|
2017-10-06 05:26:10 +02:00
|
|
|
(outputs '("out" "debug"))
|
2013-11-19 04:01:19 +01:00
|
|
|
(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.")
|
2016-10-27 10:55:57 +02:00
|
|
|
(home-page "https://libsdl.org/")
|
2013-11-19 04:01:19 +01:00
|
|
|
(license lgpl2.1)))
|
|
|
|
|
2016-07-29 10:23:51 +02:00
|
|
|
(define-public sdl2
|
2013-11-19 04:01:19 +01:00
|
|
|
(package (inherit sdl)
|
|
|
|
(name "sdl2")
|
2018-10-31 22:49:47 +01:00
|
|
|
(version "2.0.9")
|
2013-11-19 04:01:19 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
2016-10-27 10:55:57 +02:00
|
|
|
(string-append "https://libsdl.org/release/SDL2-"
|
2013-11-19 04:01:19 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-10-31 22:49:47 +01:00
|
|
|
"1c94ndagzkdfqaa838yqg589p1nnqln8mv0hpwfhrkbfczf8cl95"))))
|
2017-11-05 12:01:04 +01:00
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments sdl)
|
|
|
|
((#:configure-flags flags)
|
|
|
|
`(append '("--disable-wayland-shared")
|
|
|
|
,flags))))
|
2017-01-05 17:15:57 +01:00
|
|
|
(inputs
|
|
|
|
;; SDL2 needs to be built with ibus support otherwise some systems
|
|
|
|
;; experience a bug where input events are doubled.
|
|
|
|
;;
|
|
|
|
;; For more information, see: https://dev.solus-project.com/T1721
|
|
|
|
(append `(("dbus" ,dbus)
|
2017-01-05 17:27:10 +01:00
|
|
|
("fcitx" ,fcitx) ; helps with CJK input
|
2017-01-05 17:15:57 +01:00
|
|
|
("glib" ,glib)
|
2017-11-05 12:01:04 +01:00
|
|
|
("ibus" ,ibus)
|
2018-03-16 16:50:14 +01:00
|
|
|
("libxkbcommon" ,libxkbcommon)
|
|
|
|
("wayland" ,wayland)
|
|
|
|
("wayland-protocols" ,wayland-protocols))
|
2017-01-05 17:15:57 +01:00
|
|
|
(package-inputs sdl)))
|
2013-11-19 04:01:19 +01:00
|
|
|
(license bsd-3)))
|
2013-10-22 01:50:01 +02:00
|
|
|
|
2016-07-29 10:23:51 +02:00
|
|
|
(define-public libmikmod
|
2013-10-22 01:50:01 +02:00
|
|
|
(package
|
|
|
|
(name "libmikmod")
|
2018-07-14 11:37:58 +02:00
|
|
|
(version "3.3.11.1")
|
2013-10-22 01:50:01 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2017-08-25 07:45:54 +02:00
|
|
|
(uri (list
|
|
|
|
(string-append "mirror://sourceforge/mikmod/libmikmod/"
|
|
|
|
version "/libmikmod-" version ".tar.gz")
|
|
|
|
;; Older versions are sometimes moved to:
|
|
|
|
(string-append "mirror://sourceforge/mikmod/"
|
|
|
|
"outdated_versions/libmikmod/"
|
|
|
|
version "/libmikmod-" version ".tar.gz")))
|
2013-10-22 01:50:01 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-07-14 11:37:58 +02:00
|
|
|
"06bdnhb0l81srdzg6gn2v2ydhhaazza7rshrcj3q8dpqr3gn97dd"))))
|
2013-10-22 01:50:01 +02:00
|
|
|
(build-system gnu-build-system)
|
2014-11-10 23:12:01 +01:00
|
|
|
(arguments
|
|
|
|
;; By default, libmikmod tries to dlopen libasound etc., which won't work
|
|
|
|
;; unless the right libalsa happens to be in $LD_LIBRARY_PATH. Pass
|
|
|
|
;; '--disable-dl' to avoid that.
|
|
|
|
'(#:configure-flags '("--disable-dl")))
|
2014-09-13 15:50:30 +02:00
|
|
|
(synopsis "Library for module sound formats")
|
2013-10-22 01:50:01 +02: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 06:46:59 +02:00
|
|
|
digital sound files. It can take advantage of particular features of your
|
2013-10-22 01:50:01 +02:00
|
|
|
system, such as sound redirection over the network.")
|
|
|
|
(license lgpl2.1)
|
|
|
|
(home-page "http://mikmod.sourceforge.net/")))
|
2013-11-21 03:40:45 +01:00
|
|
|
|
2016-07-29 10:23:51 +02:00
|
|
|
(define-public sdl-gfx
|
2013-11-21 03:40:45 +01:00
|
|
|
(package
|
|
|
|
(name "sdl-gfx")
|
2017-04-21 15:01:17 +02:00
|
|
|
(version "2.0.26")
|
2013-11-21 03:40:45 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
|
|
|
(string-append "http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-04-21 15:01:17 +02:00
|
|
|
"0ijljhs0v99dj6y27hc10z6qchyp8gdp4199y6jzngy6dzxlzsvw"))))
|
2013-11-21 03:40:45 +01:00
|
|
|
(build-system gnu-build-system)
|
2017-10-06 05:26:10 +02:00
|
|
|
(outputs '("out" "debug"))
|
2017-04-24 09:47:18 +02:00
|
|
|
(arguments
|
|
|
|
`(,@(if (any (cute string-prefix? <> (or (%current-system)
|
|
|
|
(%current-target-system)))
|
|
|
|
'("x86_64" "i686"))
|
|
|
|
;; mmx is supported only on Intel processors.
|
|
|
|
'()
|
|
|
|
'(#:configure-flags '("--disable-mmx")))))
|
2013-11-21 03:40:45 +01:00
|
|
|
(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")
|
2017-04-24 09:47:18 +02:00
|
|
|
(license zlib)))
|
2013-11-21 03:40:45 +01:00
|
|
|
|
2016-07-29 10:23:51 +02:00
|
|
|
(define-public sdl-image
|
2013-11-21 03:40:45 +01:00
|
|
|
(package
|
|
|
|
(name "sdl-image")
|
|
|
|
(version "1.2.12")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
2016-10-27 10:55:57 +02:00
|
|
|
(string-append "https://www.libsdl.org/projects/SDL_image/release/SDL_image-"
|
2013-11-21 03:40:45 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"16an9slbb8ci7d89wakkmyfvp7c0cval8xw4hkg0842nhhlp540b"))))
|
|
|
|
(build-system gnu-build-system)
|
2017-10-06 05:26:10 +02:00
|
|
|
(outputs '("out" "debug"))
|
2015-02-12 07:16:44 +01:00
|
|
|
(arguments
|
|
|
|
;; Explicitly link against shared libraries instead of dlopening them.
|
|
|
|
'(#:configure-flags '("--disable-jpg-shared"
|
|
|
|
"--disable-png-shared"
|
|
|
|
"--disable-tif-shared"
|
|
|
|
"--disable-webp-shared")))
|
2014-05-01 02:35:45 +02:00
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
|
|
|
;; 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)
|
2015-12-18 04:32:05 +01:00
|
|
|
("libtiff" ,libtiff)
|
|
|
|
("libwebp" ,libwebp)))
|
2013-11-21 03:40:45 +01: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.")
|
2016-10-27 10:55:57 +02:00
|
|
|
(home-page "https://www.libsdl.org/projects/SDL_image/")
|
2013-11-21 03:40:45 +01:00
|
|
|
(license zlib)))
|
|
|
|
|
2016-07-29 10:23:51 +02:00
|
|
|
(define-public sdl-mixer
|
2013-11-21 03:40:45 +01:00
|
|
|
(package
|
|
|
|
(name "sdl-mixer")
|
|
|
|
(version "1.2.12")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
2016-10-27 10:55:57 +02:00
|
|
|
(string-append "https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-"
|
2013-11-21 03:40:45 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n"))))
|
|
|
|
(build-system gnu-build-system)
|
2017-10-06 05:26:10 +02:00
|
|
|
(outputs '("out" "debug"))
|
2013-11-21 03:40:45 +01:00
|
|
|
;; no check target
|
|
|
|
;; use libmad instead of smpeg
|
2015-02-12 07:21:40 +01:00
|
|
|
;; explicitly link against shared libraries instead of dlopening them
|
2013-11-21 03:40:45 +01:00
|
|
|
(arguments `(#:tests? #f
|
2015-02-12 07:21:40 +01:00
|
|
|
#:configure-flags '("--enable-music-mp3-mad-gpl"
|
|
|
|
"--disable-music-mod-shared"
|
|
|
|
"--disable-music-fluidsynth-shared"
|
|
|
|
"--disable-music-ogg-shared"
|
|
|
|
"--disable-music-flac-shared"
|
|
|
|
"--disable-music-mp3-shared")))
|
2013-11-21 03:40:45 +01:00
|
|
|
(inputs `(("libvorbis" ,libvorbis)
|
|
|
|
("libflac" ,flac)
|
|
|
|
("libmad" ,libmad)
|
2016-03-26 17:50:28 +01:00
|
|
|
("libmikmod" ,libmikmod)
|
|
|
|
("libmodplug" ,libmodplug)))
|
2013-11-21 03:40:45 +01:00
|
|
|
;; 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.")
|
2016-10-27 10:55:57 +02:00
|
|
|
(home-page "https://www.libsdl.org/projects/SDL_mixer/")
|
2013-11-21 03:40:45 +01:00
|
|
|
(license zlib)))
|
|
|
|
|
2016-07-29 10:23:51 +02:00
|
|
|
(define-public sdl-net
|
2013-11-21 03:40:45 +01:00
|
|
|
(package
|
|
|
|
(name "sdl-net")
|
|
|
|
(version "1.2.8")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
2016-10-27 10:55:57 +02:00
|
|
|
(string-append "https://www.libsdl.org/projects/SDL_net/release/SDL_net-"
|
2013-11-21 03:40:45 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1d5c9xqlf4s1c01gzv6cxmg0r621pq9kfgxcg3197xw4p25pljjz"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(propagated-inputs `(("sdl" ,sdl)))
|
2014-11-07 13:49:37 +01:00
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
2017-10-06 05:26:10 +02:00
|
|
|
(outputs '("out" "debug"))
|
2013-11-21 03:40:45 +01:00
|
|
|
(synopsis "SDL networking library")
|
|
|
|
(description "SDL_net is a small, cross-platform networking library for
|
|
|
|
SDL.")
|
2016-10-27 10:55:57 +02:00
|
|
|
(home-page "https://www.libsdl.org/projects/SDL_net/")
|
2013-11-21 03:40:45 +01:00
|
|
|
(license zlib)))
|
|
|
|
|
2016-07-29 10:23:51 +02:00
|
|
|
(define-public sdl-ttf
|
2013-11-21 03:40:45 +01:00
|
|
|
(package
|
|
|
|
(name "sdl-ttf")
|
|
|
|
(version "2.0.11")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
2016-10-27 10:55:57 +02:00
|
|
|
(string-append "https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-"
|
2013-11-21 03:40:45 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1dydxd4f5kb1288i5n5568kdk2q7f8mqjr7i7sd33nplxjaxhk3j"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(propagated-inputs `(("sdl" ,sdl)))
|
2015-04-14 23:25:37 +02:00
|
|
|
(inputs `(("freetype" ,freetype)
|
2014-11-07 13:49:37 +01:00
|
|
|
("mesa" ,mesa)))
|
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
2017-10-06 05:26:10 +02:00
|
|
|
(outputs '("out" "debug"))
|
2013-11-21 03:40:45 +01:00
|
|
|
(synopsis "SDL TrueType font library")
|
|
|
|
(description "SDL_ttf is a TrueType font rendering library for SDL.")
|
2016-10-27 10:55:57 +02:00
|
|
|
(home-page "https://www.libsdl.org/projects/SDL_ttf/")
|
2013-11-21 03:40:45 +01:00
|
|
|
(license zlib)))
|
2014-11-02 17:54:20 +01:00
|
|
|
|
2015-10-10 10:27:27 +02:00
|
|
|
(define* (sdl-union #:optional (packages (list sdl sdl-gfx sdl-net sdl-ttf
|
|
|
|
sdl-image sdl-mixer)))
|
|
|
|
"Return 'sdl-union' package which is a union of PACKAGES.
|
|
|
|
If PACKAGES are not specified, all SDL packages are used."
|
2014-11-02 17:54:20 +01:00
|
|
|
(package
|
|
|
|
(name "sdl-union")
|
|
|
|
(version (package-version sdl))
|
|
|
|
(source #f)
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:modules ((guix build union))
|
|
|
|
#:builder (begin
|
|
|
|
(use-modules (ice-9 match)
|
|
|
|
(guix build union))
|
|
|
|
(match %build-inputs
|
|
|
|
(((names . directories) ...)
|
|
|
|
(union-build (assoc-ref %outputs "out")
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-28 02:14:05 +02:00
|
|
|
directories)
|
|
|
|
#t)))))
|
2015-10-10 10:27:27 +02:00
|
|
|
(inputs (map (lambda (package)
|
|
|
|
(list (package-name package) package))
|
|
|
|
packages))
|
|
|
|
(synopsis "Union of SDL libraries")
|
2014-11-02 17:54:20 +01:00
|
|
|
(description
|
|
|
|
"A union of SDL and its extension libraries. A union is required because
|
|
|
|
sdl-config assumes that all of the headers and libraries are in the same
|
|
|
|
directory.")
|
|
|
|
(home-page (package-home-page sdl))
|
|
|
|
(license (package-license sdl))))
|
2014-11-02 17:55:21 +01:00
|
|
|
|
2015-12-15 19:30:11 +01:00
|
|
|
(define (propagated-inputs-with-sdl2 package)
|
|
|
|
"Replace the \"sdl\" propagated input of PACKAGE with SDL2."
|
|
|
|
(map (match-lambda
|
|
|
|
(("sdl" _)
|
|
|
|
`("sdl2" ,sdl2))
|
|
|
|
(other other))
|
|
|
|
(package-propagated-inputs package)))
|
|
|
|
|
2019-02-13 03:45:03 +01:00
|
|
|
(define-public sdl2-gfx
|
|
|
|
(package (inherit sdl-gfx)
|
|
|
|
(name "sdl2-gfx")
|
|
|
|
(version "1.0.4")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
|
|
|
(string-append "https://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0qk2ax7f7grlxb13ba0ll3zlm8780s7j8fmrhlpxzjgdvldf1q33"))))
|
|
|
|
(propagated-inputs
|
|
|
|
(propagated-inputs-with-sdl2 sdl-gfx))))
|
|
|
|
|
2015-12-15 19:30:11 +01:00
|
|
|
(define-public sdl2-image
|
|
|
|
(package (inherit sdl-image)
|
|
|
|
(name "sdl2-image")
|
2019-02-14 23:38:10 +01:00
|
|
|
(version "2.0.4")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
|
|
|
(string-append "https://www.libsdl.org/projects/SDL_image/release/"
|
|
|
|
"SDL2_image-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32 "1b6f7002bm007y3zpyxb5r6ag0lml51jyvx1pwpj9sq24jfc8kp7"))))
|
2015-12-15 19:30:11 +01:00
|
|
|
(propagated-inputs
|
|
|
|
(propagated-inputs-with-sdl2 sdl-image))))
|
|
|
|
|
2015-12-15 19:30:56 +01:00
|
|
|
(define-public sdl2-mixer
|
|
|
|
(package (inherit sdl-mixer)
|
|
|
|
(name "sdl2-mixer")
|
2019-02-14 23:38:26 +01:00
|
|
|
(version "2.0.4")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
|
|
|
(string-append "http://www.libsdl.org/projects/SDL_mixer/release/"
|
|
|
|
"SDL2_mixer-" version ".tar.gz"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet '(begin
|
|
|
|
;; Remove bundled libraries.
|
|
|
|
(delete-file-recursively "external")
|
|
|
|
#t))
|
|
|
|
(sha256
|
|
|
|
(base32 "0694vsz5bjkcdgfdra6x9fq8vpzrl8m6q96gh58df7065hw5mkxl"))))
|
2015-12-15 19:30:56 +01:00
|
|
|
(propagated-inputs
|
|
|
|
(propagated-inputs-with-sdl2 sdl-mixer))))
|
|
|
|
|
2015-12-15 19:31:32 +01:00
|
|
|
(define-public sdl2-ttf
|
|
|
|
(package (inherit sdl-ttf)
|
|
|
|
(name "sdl2-ttf")
|
2019-02-08 14:04:22 +01:00
|
|
|
(version "2.0.15")
|
2015-12-15 19:31:32 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
2016-10-27 10:55:57 +02:00
|
|
|
(string-append "https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-"
|
2015-12-15 19:31:32 +01:00
|
|
|
version ".tar.gz"))
|
2016-03-26 17:58:08 +01:00
|
|
|
(modules '((guix build utils)))
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 12:47:34 +01:00
|
|
|
(snippet (begin
|
|
|
|
;; Remove bundled libraries.
|
|
|
|
'(delete-file-recursively "external")
|
|
|
|
#t))
|
2015-12-15 19:31:32 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-02-08 14:04:22 +01:00
|
|
|
"0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59"))))
|
2015-12-15 19:31:32 +01:00
|
|
|
(propagated-inputs
|
|
|
|
(propagated-inputs-with-sdl2 sdl-ttf))))
|
|
|
|
|
2014-11-02 17:55:21 +01:00
|
|
|
(define-public guile-sdl
|
|
|
|
(package
|
|
|
|
(name "guile-sdl")
|
2015-07-05 23:05:28 +02:00
|
|
|
(version "0.5.2")
|
2014-11-02 17:55:21 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
|
|
|
(string-append "mirror://gnu/guile-sdl/guile-sdl-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2015-07-05 23:05:28 +02:00
|
|
|
"0cjgs012a9922hn6xqwj66w6qmfs3nycnm56hyykx5n3g5p7ag01"))))
|
2014-11-02 17:55:21 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
;; Required by test suite.
|
|
|
|
("xorg-server" ,xorg-server)
|
|
|
|
("libjpeg" ,libjpeg)))
|
|
|
|
(inputs
|
2017-10-14 15:24:19 +02:00
|
|
|
`(("guile" ,guile-2.2)
|
2015-10-10 10:27:27 +02:00
|
|
|
("sdl-union" ,(sdl-union))))
|
2014-11-02 17:55:21 +01:00
|
|
|
(arguments
|
|
|
|
'(#:configure-flags
|
|
|
|
(list (string-append "--with-sdl-prefix="
|
|
|
|
(assoc-ref %build-inputs "sdl-union")))
|
2017-10-14 15:21:22 +02:00
|
|
|
#:modules ((ice-9 popen)
|
|
|
|
(guix build utils)
|
|
|
|
(guix build gnu-build-system))
|
|
|
|
|
2014-11-02 17:55:21 +01:00
|
|
|
#:parallel-build? #f ; parallel build fails
|
2017-10-14 15:21:22 +02:00
|
|
|
|
2014-11-02 17:55:21 +01:00
|
|
|
#:phases
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'configure 'fix-env-and-patch
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(setenv "GUILE_AUTO_COMPILE" "0")
|
|
|
|
;; SDL_image needs to dlopen libjpeg in the test suite.
|
|
|
|
(setenv "LD_LIBRARY_PATH"
|
|
|
|
(string-append (assoc-ref inputs "libjpeg") "/lib"))
|
2017-10-14 15:21:22 +02:00
|
|
|
|
|
|
|
;; Change the site directory /site/X.Y like Guile expects.
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
(substitute* "build-aux/guile-baux/re-prefixed-site-dirs"
|
2017-10-14 15:21:22 +02:00
|
|
|
(("\"/site\"")
|
|
|
|
(let ((effective
|
|
|
|
(read
|
|
|
|
(open-pipe* OPEN_READ
|
|
|
|
"guile" "-c"
|
|
|
|
"(write (effective-version))"))))
|
|
|
|
(string-append "\"/site/" effective "\""))))
|
2015-07-05 23:05:28 +02:00
|
|
|
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
;; Skip tests that rely on sound support, which is unavailable in
|
|
|
|
;; the build environment.
|
|
|
|
(substitute* "test/Makefile.in"
|
|
|
|
(("HAVE_MIXER = .*$")
|
|
|
|
"HAVE_MIXER = 0\n"))
|
|
|
|
#t))
|
|
|
|
(add-before 'check 'start-xorg-server
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; The test suite requires a running X server.
|
|
|
|
(system (format #f "~a/bin/Xvfb :1 &"
|
|
|
|
(assoc-ref inputs "xorg-server")))
|
|
|
|
(setenv "DISPLAY" ":1")
|
2017-10-14 15:24:19 +02:00
|
|
|
#t))
|
|
|
|
(add-before 'check 'skip-cursor-test
|
|
|
|
(lambda _
|
|
|
|
;; XXX: This test sometimes enters an endless loop, and sometimes
|
|
|
|
;; crashes with:
|
|
|
|
;; guile: xcb_io.c:147: append_pending_request: Assertion `!xcb_xlib_unknown_seq_number' failed.
|
|
|
|
;; Skip it.
|
|
|
|
(substitute* "test/cursor.scm"
|
|
|
|
(("\\(SDL:init .*" all)
|
|
|
|
(string-append "(exit 77) ;" all "\n")))
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
#t)))))
|
2014-11-02 17:55:21 +01:00
|
|
|
(synopsis "Guile interface for SDL (Simple DirectMedia Layer)")
|
|
|
|
(description "Guile-SDL is a set of bindings to the Simple DirectMedia
|
|
|
|
Layer (SDL). With them, Guile programmers can have easy access to graphics,
|
|
|
|
sound and device input (keyboards, joysticks, mice, etc.).")
|
2017-03-30 00:48:16 +02:00
|
|
|
(home-page "https://www.gnu.org/software/guile-sdl/")
|
2014-11-02 17:55:21 +01:00
|
|
|
(license gpl3+)))
|
2017-01-22 07:31:54 +01:00
|
|
|
|
|
|
|
(define-public guile-sdl2
|
|
|
|
(package
|
|
|
|
(name "guile-sdl2")
|
2018-10-27 20:08:50 +02:00
|
|
|
(version "0.3.1")
|
2017-01-22 07:31:54 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://files.dthompson.us/guile-sdl2/guile-sdl2-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-10-27 20:08:50 +02:00
|
|
|
"0bw7x2lx90k4banc5k7yfkn3as93y25gr1xdr225ll7lmij21k64"))))
|
2017-01-22 07:31:54 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:make-flags '("GUILE_AUTO_COMPILE=0")
|
|
|
|
#:configure-flags
|
|
|
|
(list (string-append "--with-libsdl2-prefix="
|
|
|
|
(assoc-ref %build-inputs "sdl2"))
|
|
|
|
(string-append "--with-libsdl2-image-prefix="
|
|
|
|
(assoc-ref %build-inputs "sdl2-image"))
|
|
|
|
(string-append "--with-libsdl2-ttf-prefix="
|
|
|
|
(assoc-ref %build-inputs "sdl2-ttf"))
|
|
|
|
(string-append "--with-libsdl2-mixer-prefix="
|
2018-07-12 16:24:49 +02:00
|
|
|
(assoc-ref %build-inputs "sdl2-mixer")))))
|
2017-01-22 07:31:54 +01:00
|
|
|
(native-inputs
|
2018-04-25 12:05:39 +02:00
|
|
|
`(("guile" ,guile-2.2)
|
2017-01-22 07:31:54 +01:00
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("sdl2" ,sdl2)
|
|
|
|
("sdl2-image" ,sdl2-image)
|
|
|
|
("sdl2-mixer" ,sdl2-mixer)
|
|
|
|
("sdl2-ttf" ,sdl2-ttf)))
|
|
|
|
(synopsis "Guile bindings for SDL2")
|
|
|
|
(home-page "https://dthompson.us/projects/guile-sdl2.html")
|
|
|
|
(description
|
|
|
|
"Guile-SDL2 provides Guile Scheme bindings for the SDL2 C shared library.
|
|
|
|
The bindings are written in pure Scheme using Guile's foreign function
|
|
|
|
interface.")
|
|
|
|
(license lgpl3+)))
|
2018-09-28 08:31:11 +02:00
|
|
|
|
|
|
|
(define-public ghc-sdl2
|
|
|
|
(package
|
|
|
|
(name "ghc-sdl2")
|
|
|
|
(version "2.4.1.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://hackage.haskell.org/package/"
|
|
|
|
"sdl2/sdl2-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0p4b12fmxps0sbnkqdfy0qw19s355yrkw7fgw6xz53wzq706k991"))))
|
|
|
|
(build-system haskell-build-system)
|
|
|
|
(arguments '(#:tests? #f)) ; tests require graphical environment
|
|
|
|
(inputs
|
|
|
|
`(("ghc-exceptions" ,ghc-exceptions)
|
|
|
|
("ghc-linear" ,ghc-linear)
|
|
|
|
("ghc-statevar" ,ghc-statevar)
|
|
|
|
("ghc-text" ,ghc-text)
|
|
|
|
("ghc-vector" ,ghc-vector)
|
|
|
|
("sdl2" ,sdl2)))
|
|
|
|
(native-inputs
|
|
|
|
`(("ghc-weigh" ,ghc-weigh)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://hackage.haskell.org/package/sdl2")
|
|
|
|
(synopsis "High- and low-level bindings to the SDL library")
|
|
|
|
(description
|
|
|
|
"This package contains bindings to the SDL 2 library, in both high- and
|
|
|
|
low-level forms. The @code{SDL} namespace contains high-level bindings, where
|
|
|
|
enumerations are split into sum types, and we perform automatic
|
|
|
|
error-checking. The @code{SDL.Raw} namespace contains an almost 1-1
|
|
|
|
translation of the C API into Haskell FFI calls. As such, this does not
|
|
|
|
contain sum types nor error checking. Thus this namespace is suitable for
|
|
|
|
building your own abstraction over SDL, but is not recommended for day-to-day
|
|
|
|
programming.")
|
|
|
|
(license bsd-3)))
|
2018-09-28 08:31:25 +02:00
|
|
|
|
|
|
|
(define-public ghc-sdl2-mixer
|
|
|
|
(package
|
|
|
|
(name "ghc-sdl2-mixer")
|
|
|
|
(version "1.1.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://hackage.haskell.org/package/sdl2-mixer/"
|
|
|
|
"sdl2-mixer-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1k8avyccq5l9z7bwxigim312yaancxl1sr3q6a96bcm7pnhiak0g"))))
|
|
|
|
(build-system haskell-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("ghc-data-default-class" ,ghc-data-default-class)
|
|
|
|
("ghc-lifted-base" ,ghc-lifted-base)
|
|
|
|
("ghc-monad-control" ,ghc-monad-control)
|
|
|
|
("ghc-sdl2" ,ghc-sdl2)
|
|
|
|
("ghc-vector" ,ghc-vector)
|
|
|
|
("sdl2-mixer" ,sdl2-mixer)))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://hackage.haskell.org/package/sdl2-mixer")
|
|
|
|
(synopsis "Bindings to SDL2 mixer")
|
|
|
|
(description "This package provides Haskell bindings to
|
|
|
|
@code{SDL2_mixer}.")
|
|
|
|
(license bsd-3)))
|
2018-09-28 08:31:36 +02:00
|
|
|
|
|
|
|
(define-public ghc-sdl2-image
|
|
|
|
(package
|
|
|
|
(name "ghc-sdl2-image")
|
|
|
|
(version "2.0.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://hackage.haskell.org/package/sdl2-image/"
|
|
|
|
"sdl2-image-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1pr6dkg73cy9z0w54lrkj9c5bhxj56nl92lxikjy8kz6nyr455rr"))))
|
|
|
|
(build-system haskell-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("ghc-sdl2" ,ghc-sdl2)
|
|
|
|
("ghc-text" ,ghc-text)
|
|
|
|
("sdl2-image" ,sdl2-image)))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "http://hackage.haskell.org/package/sdl2-image")
|
|
|
|
(synopsis "Bindings to SDL2_image")
|
|
|
|
(description "This package provides Haskell bindings to
|
|
|
|
@code{SDL2_image}.")
|
|
|
|
(license expat)))
|