guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/11: gnu: Add mupen64plus-video-glide64.


From: Taylan Ulrich Bay?rl?/Kammer
Subject: 07/11: gnu: Add mupen64plus-video-glide64.
Date: Tue, 10 Nov 2015 21:43:45 +0000

taylanub pushed a commit to branch master
in repository guix.

commit 9a3fe16b9963d4ec17bfda635722f32586565cc6
Author: Taylan Ulrich Bayırlı/Kammer <address@hidden>
Date:   Mon Nov 2 00:39:58 2015 +0100

    gnu: Add mupen64plus-video-glide64.
    
    * gnu/packages/games.scm (mupen64plus-video-glide64): New variable.
---
 gnu/packages/games.scm |   54 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 36a76cc..8e0f25f 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1482,6 +1482,60 @@ which is capable of accurately playing many games.  This 
package contains the
 Arachnoid video plugin.")
     (license license:gpl2+)))
 
+(define-public mupen64plus-video-glide64
+  (package
+    (name "mupen64plus-video-glide64")
+    (version "2.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             
"https://github.com/mupen64plus/mupen64plus-video-glide64/archive/";
+             version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rm55dbf6xgsq1blbzs6swa2ajv0qkn38acbljj346abnk6s3dla"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("which" ,which)))
+    (inputs
+     `(("mesa" ,mesa)
+       ("mupen64plus-core" ,mupen64plus-core)
+       ("sdl2" ,sdl2)))
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         ;; The mupen64plus build system has no configure phase.
+         (delete 'configure)
+         ;; Makefile is in a subdirectory.
+         (add-before
+          'build 'cd-to-project-dir
+          (lambda _
+            (chdir "projects/unix")))
+         ;; XXX Should be unnecessary with the next release.
+         (add-before
+          'build 'use-sdl2
+          (lambda _
+            (substitute* "Makefile"
+              (("SDL_CONFIG = (.*)sdl-config" all prefix)
+               (string-append "SDL_CONFIG = " prefix "sdl2-config"))))))
+       #:make-flags
+       (let ((out (assoc-ref %outputs "out"))
+             (m64p (assoc-ref %build-inputs "mupen64plus-core")))
+         (list "all"
+               (string-append "PREFIX=" out)
+               (string-append "APIDIR=" m64p "/include/mupen64plus")))
+       ;; There are no tests.
+       #:tests? #f))
+    (home-page "http://www.mupen64plus.org/";)
+    (synopsis "Mupen64Plus Rice Video plugin")
+    (description
+     "Mupen64Plus is a cross-platform plugin-based Nintendo 64 (N64) emulator
+which is capable of accurately playing many games.  This package contains the
+Glide64 video plugin.")
+    (license license:gpl2+)))
+
 (define-public nestopia-ue
   (package
     (name "nestopia-ue")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]