diff options
author | Pierre Neidhardt <mail@ambrevar.xyz> | 2019-05-20 17:00:45 +0200 |
---|---|---|
committer | Pierre Neidhardt <mail@ambrevar.xyz> | 2019-05-20 17:02:39 +0200 |
commit | 9fd50db3ae9d3582751087974566a926f8db9680 (patch) | |
tree | f9d9fe82b7c4bb70f822e1a1ab2cd10f492fded1 /gnu | |
parent | 47f4d5d32f6519ef133fa6188c12d872b346734a (diff) | |
download | guix-9fd50db3ae9d3582751087974566a926f8db9680.tar.gz |
gnu: Add mygui-gl.
* gnu/packages/game-development.scm (mygui-gl): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/game-development.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index a3585630f0..93e2405ed3 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -32,6 +32,7 @@ ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. (define-module (gnu packages game-development) + #:use-module (srfi srfi-1) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) @@ -1076,6 +1077,29 @@ of use.") (home-page "http://mygui.info/") (license license:expat))) +(define-public mygui-gl + ;; Closure size is reduced by some 800 MiB. + (package + (inherit mygui) + (name "mygui-gl") + (version "3.2.2") + (arguments + (substitute-keyword-arguments (package-arguments mygui) + ((#:configure-flags _) + `(cons* "-DMYGUI_RENDERSYSTEM=4" ; 3 is Ogre, 4 is OpenGL. + ;; We can't reuse the flags because of the mention to Ogre. + (list "-DMYGUI_INSTALL_DOCS=TRUE" + ;; Demos and tools are Windows-specific: + ;; https://github.com/MyGUI/mygui/issues/24. + "-DMYGUI_BUILD_DEMOS=FALSE" + "-DMYGUI_BUILD_TOOLS=FALSE"))))) + (inputs + `(("mesa" ,mesa) + ("glu" ,glu) + ,@(fold alist-delete (package-inputs mygui) + '("ogre")))) + (synopsis "Fast, flexible and simple GUI (OpenGL backend)"))) + (define-public openmw (package (name "openmw") |