diff options
| author | 宋文武 <iyzsong@gmail.com> | 2015-01-16 19:53:00 +0800 |
|---|---|---|
| committer | 宋文武 <iyzsong@gmail.com> | 2015-01-16 19:58:56 +0800 |
| commit | 72b703cdcaec260733a4e30800cef5eab3f071a6 (patch) | |
| tree | eb9becbad89f5476146e0c10b7fc25c897246cf7 /gnu | |
| parent | aeb1a1d966f881771755f35cdb77ccdf140fcd03 (diff) | |
gnu: add RetroArch.
* gnu/packages/games.scm (retroarch): New variable.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/games.scm | 58 |
1 files changed, 57 insertions, 1 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 82cdbc55c42..c7630fc349c 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com> | 5 | ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com> |
| 6 | ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net> | 6 | ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net> |
| 7 | ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> | 7 | ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> |
| 8 | ;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com> | 8 | ;;; Copyright © 2014, 2015 Sou Bunnbu <iyzsong@gmail.com> |
| 9 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> | 9 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
| 10 | ;;; | 10 | ;;; |
| 11 | ;;; This file is part of GNU Guix. | 11 | ;;; This file is part of GNU Guix. |
| @@ -60,6 +60,9 @@ | |||
| 60 | #:use-module (gnu packages xiph) | 60 | #:use-module (gnu packages xiph) |
| 61 | #:use-module (gnu packages curl) | 61 | #:use-module (gnu packages curl) |
| 62 | #:use-module (gnu packages lua) | 62 | #:use-module (gnu packages lua) |
| 63 | #:use-module (gnu packages video) | ||
| 64 | #:use-module (gnu packages which) | ||
| 65 | #:use-module (gnu packages xml) | ||
| 63 | #:use-module (guix build-system trivial) | 66 | #:use-module (guix build-system trivial) |
| 64 | #:use-module (guix build-system gnu) | 67 | #:use-module (guix build-system gnu) |
| 65 | #:use-module (guix build-system cmake) | 68 | #:use-module (guix build-system cmake) |
| @@ -820,3 +823,56 @@ playing interactive fiction. It was designed by Andrew Plotkin to relieve | |||
| 820 | some of the restrictions in the venerable Z-machine format. This is the | 823 | some of the restrictions in the venerable Z-machine format. This is the |
| 821 | reference interpreter, using Glk API.") | 824 | reference interpreter, using Glk API.") |
| 822 | (license (license:fsf-free "file://README")))) | 825 | (license (license:fsf-free "file://README")))) |
| 826 | |||
| 827 | (define-public retroarch | ||
| 828 | (package | ||
| 829 | (name "retroarch") | ||
| 830 | (version "1.0.0.3-beta") | ||
| 831 | (source | ||
| 832 | (origin | ||
| 833 | (method url-fetch) | ||
| 834 | (uri (string-append "https://github.com/libretro/RetroArch/archive/" | ||
| 835 | version ".tar.gz")) | ||
| 836 | (sha256 | ||
| 837 | (base32 "1iqcrb076xiih20sk8n1w79xsp4fb8pj4vkmdc1xn562h56y4nxx")))) | ||
| 838 | (build-system gnu-build-system) | ||
| 839 | (arguments | ||
| 840 | '(#:tests? #f ; no tests | ||
| 841 | #:phases | ||
| 842 | (alist-replace | ||
| 843 | 'configure | ||
| 844 | (lambda _ | ||
| 845 | (substitute* "qb/qb.libs.sh" | ||
| 846 | (("/bin/true") (which "true"))) | ||
| 847 | (zero? (system* | ||
| 848 | "./configure" | ||
| 849 | (string-append "--prefix=" %output) | ||
| 850 | (string-append "--global-config-dir=" %output "/etc")))) | ||
| 851 | %standard-phases))) | ||
| 852 | (inputs | ||
| 853 | `(("alsa-lib" ,alsa-lib) | ||
| 854 | ("ffmpeg" ,ffmpeg) | ||
| 855 | ("freetype" ,freetype) | ||
| 856 | ("libxinerama" ,libxinerama) | ||
| 857 | ("libxkbcommon" ,libxkbcommon) | ||
| 858 | ("libxml2" ,libxml2) | ||
| 859 | ("libxv" ,libxv) | ||
| 860 | ("mesa" ,mesa) | ||
| 861 | ("openal" ,openal) | ||
| 862 | ("pulseaudio" ,pulseaudio) | ||
| 863 | ("python" ,python) | ||
| 864 | ("sdl" ,sdl2) | ||
| 865 | ("udev" ,eudev) | ||
| 866 | ("zlib" ,zlib))) | ||
| 867 | (native-inputs | ||
| 868 | `(("pkg-config" ,pkg-config) | ||
| 869 | ("which" ,which))) | ||
| 870 | (home-page "http://www.libretro.com/") | ||
| 871 | (synopsis "Reference frontend for the libretro API") | ||
| 872 | (description | ||
| 873 | "Libretro is a simple but powerful development interface that allows for | ||
| 874 | the easy creation of emulators, games and multimedia applications that can plug | ||
| 875 | straight into any libretro-compatible frontend. RetroArch is the official | ||
| 876 | reference frontend for the libretro API, currently used by most as a modular | ||
| 877 | multi-system game/emulator system.") | ||
| 878 | (license license:gpl3+))) | ||
