From ba421ab73480a94545a0d285d8b475277ce2bcde Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Wed, 17 Jun 2015 02:56:02 -0400 Subject: gnu: Add cogl. * gnu/packages/gnome.scm (cogl): New variable. --- gnu/packages/gnome.scm | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index f7a6465eb6..6482973b10 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2015 Andy Wingo ;;; Copyright © 2015 David Hashe ;;; Copyright © 2015 Ricardo Wurmus +;;; Copyright © 2015 Mark H Weaver ;;; ;;; This file is part of GNU Guix. ;;; @@ -71,6 +72,7 @@ #:use-module (gnu packages webkit) #:use-module (gnu packages xorg) #:use-module (gnu packages xdisorg) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages mail) #:use-module (gnu packages backup) #:use-module (gnu packages nettle) @@ -2481,3 +2483,70 @@ which are easy to play with the aid of a mouse.") natively with GTK-Doc (the API reference system developed for GTK+ and used throughout GNOME for API documentation).") (license license:gpl2+))) + +(define-public cogl + (package + (name "cogl") + (version "1.20.0") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "0aqrj7gc0x7v536vdycgn2i23fj3nx3qwdd3mwgx7rr9b14kb7kj")))) + (build-system gnu-build-system) + (native-inputs + `(("glib:bin" ,glib "bin") ; for glib-mkenums + ("gobject-introspection" ,gobject-introspection) + ;;("xorg-server" ,xorg-server) ; for the test suite + ("pkg-config" ,pkg-config))) + (propagated-inputs + `(("glib" ,glib) + ("gdk-pixbuf" ,gdk-pixbuf) + ("libx11" ,libx11) + ("libxext" ,libxext) + ("libxfixes" ,libxfixes) + ("libxdamage" ,libxdamage) + ("libxcomposite" ,libxcomposite) + ("libxrandr" ,libxrandr))) + (inputs + `(("mesa" ,mesa) + ("cairo" ,cairo) + ("pango" ,pango) + ("gstreamer" ,gstreamer) + ("gst-plugins-base" ,gst-plugins-base))) + (arguments + `(#:configure-flags (list "--enable-cogl-gst" + ;; Arrange to pass an absolute file name to + ;; dlopen for libGL.so. + (string-append "--with-gl-libname=" + (assoc-ref %build-inputs "mesa") + "/lib/libGL.so")) + ;; XXX FIXME: All tests fail, with many warnings printed like this: + ;; _FontTransOpen: Unable to Parse address + ;; ${prefix}/share/fonts/X11/misc/ + #:tests? #f + #; #:phases + #; + (modify-phases %standard-phases + (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") + #t))))) + (home-page "http://www.cogl3d.org") + (synopsis "Object oriented GL/GLES Abstraction/Utility Layer") + (description + "Cogl is a small library for using 3D graphics hardware to draw pretty +pictures. The API departs from the flat state machine style of OpenGL and is +designed to make it easy to write orthogonal components that can render +without stepping on each others toes.") + (license (list license:expat ; most of the code + license:bsd-3 ; cogl/cogl-point-in-poly.c + license:sgifreeb2.0 ; cogl-path/tesselator/ + license:asl2.0)))) ; examples/android/ -- cgit 1.4.1