summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2015-06-17 02:56:02 -0400
committerMark H Weaver <mhw@netris.org>2015-06-23 01:04:53 -0400
commitba421ab73480a94545a0d285d8b475277ce2bcde (patch)
treed114dd0f9f08a615490bf85e90cb184ac52ff067 /gnu
parente5c35d9a7b27bb9007e57ca5cc797580ba095457 (diff)
gnu: Add cogl.
* gnu/packages/gnome.scm (cogl): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/gnome.scm69
1 files changed, 69 insertions, 0 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index f7a6465eb6d..6482973b10b 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8,6 +8,7 @@
8;;; Copyright © 2015 Andy Wingo <wingo@igalia.com> 8;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
9;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com> 9;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
10;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> 10;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
11;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
11;;; 12;;;
12;;; This file is part of GNU Guix. 13;;; This file is part of GNU Guix.
13;;; 14;;;
@@ -71,6 +72,7 @@
71 #:use-module (gnu packages webkit) 72 #:use-module (gnu packages webkit)
72 #:use-module (gnu packages xorg) 73 #:use-module (gnu packages xorg)
73 #:use-module (gnu packages xdisorg) 74 #:use-module (gnu packages xdisorg)
75 #:use-module (gnu packages freedesktop)
74 #:use-module (gnu packages mail) 76 #:use-module (gnu packages mail)
75 #:use-module (gnu packages backup) 77 #:use-module (gnu packages backup)
76 #:use-module (gnu packages nettle) 78 #:use-module (gnu packages nettle)
@@ -2481,3 +2483,70 @@ which are easy to play with the aid of a mouse.")
2481natively with GTK-Doc (the API reference system developed for GTK+ and used 2483natively with GTK-Doc (the API reference system developed for GTK+ and used
2482throughout GNOME for API documentation).") 2484throughout GNOME for API documentation).")
2483 (license license:gpl2+))) 2485 (license license:gpl2+)))
2486
2487(define-public cogl
2488 (package
2489 (name "cogl")
2490 (version "1.20.0")
2491 (source
2492 (origin
2493 (method url-fetch)
2494 (uri (string-append "mirror://gnome/sources/" name "/"
2495 (version-major+minor version) "/"
2496 name "-" version ".tar.xz"))
2497 (sha256
2498 (base32
2499 "0aqrj7gc0x7v536vdycgn2i23fj3nx3qwdd3mwgx7rr9b14kb7kj"))))
2500 (build-system gnu-build-system)
2501 (native-inputs
2502 `(("glib:bin" ,glib "bin") ; for glib-mkenums
2503 ("gobject-introspection" ,gobject-introspection)
2504 ;;("xorg-server" ,xorg-server) ; for the test suite
2505 ("pkg-config" ,pkg-config)))
2506 (propagated-inputs
2507 `(("glib" ,glib)
2508 ("gdk-pixbuf" ,gdk-pixbuf)
2509 ("libx11" ,libx11)
2510 ("libxext" ,libxext)
2511 ("libxfixes" ,libxfixes)
2512 ("libxdamage" ,libxdamage)
2513 ("libxcomposite" ,libxcomposite)
2514 ("libxrandr" ,libxrandr)))
2515 (inputs
2516 `(("mesa" ,mesa)
2517 ("cairo" ,cairo)
2518 ("pango" ,pango)
2519 ("gstreamer" ,gstreamer)
2520 ("gst-plugins-base" ,gst-plugins-base)))
2521 (arguments
2522 `(#:configure-flags (list "--enable-cogl-gst"
2523 ;; Arrange to pass an absolute file name to
2524 ;; dlopen for libGL.so.
2525 (string-append "--with-gl-libname="
2526 (assoc-ref %build-inputs "mesa")
2527 "/lib/libGL.so"))
2528 ;; XXX FIXME: All tests fail, with many warnings printed like this:
2529 ;; _FontTransOpen: Unable to Parse address
2530 ;; ${prefix}/share/fonts/X11/misc/
2531 #:tests? #f
2532 #; #:phases
2533 #;
2534 (modify-phases %standard-phases
2535 (add-before 'check 'start-xorg-server
2536 (lambda* (#:key inputs #:allow-other-keys)
2537 ;; The test suite requires a running X server.
2538 (system (format #f "~a/bin/Xvfb :1 &"
2539 (assoc-ref inputs "xorg-server")))
2540 (setenv "DISPLAY" ":1")
2541 #t)))))
2542 (home-page "http://www.cogl3d.org")
2543 (synopsis "Object oriented GL/GLES Abstraction/Utility Layer")
2544 (description
2545 "Cogl is a small library for using 3D graphics hardware to draw pretty
2546pictures. The API departs from the flat state machine style of OpenGL and is
2547designed to make it easy to write orthogonal components that can render
2548without stepping on each others toes.")
2549 (license (list license:expat ; most of the code
2550 license:bsd-3 ; cogl/cogl-point-in-poly.c
2551 license:sgifreeb2.0 ; cogl-path/tesselator/
2552 license:asl2.0)))) ; examples/android/