[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
318/331: gnu: Add eglexternalplatform.
From: |
guix-commits |
Subject: |
318/331: gnu: Add eglexternalplatform. |
Date: |
Fri, 14 Aug 2020 11:14:23 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 9ba801e048e1442daa11deff409bc41142916e09
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Sun Aug 9 23:55:18 2020 -0400
gnu: Add eglexternalplatform.
* gnu/packages/graphics.scm (eglexternalplatform): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/graphics.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 4ed67a9..51ab7a6 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -92,6 +92,7 @@
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
#:use-module (gnu packages xdisorg)
+ #:use-module (guix build-system copy)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
@@ -103,6 +104,57 @@
#:use-module (guix packages)
#:use-module (guix utils))
+(define-public eglexternalplatform
+ (package
+ (name "eglexternalplatform")
+ (version "1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/NVIDIA/eglexternalplatform.git")
+ (commit version)))
+ (file-name
+ (git-file-name name version))
+ (sha256
+ (base32 "0lr5s2xa1zn220ghmbsiwgmx77l156wk54c7hybia0xpr9yr2nhb"))))
+ (build-system copy-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-pkgconfig
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "eglexternalplatform.pc"
+ (("/usr")
+ (assoc-ref outputs "out")))
+ #t))
+ (add-after 'install 'revise
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (mkdir-p (string-append out "/include/EGL"))
+ (rename-file
+ (string-append out "/interface")
+ (string-append out "/include/EGL"))
+ (mkdir-p (string-append out "/share/pkgconfig"))
+ (rename-file
+ (string-append out "/eglexternalplatform.pc")
+ (string-append out "/share/pkgconfig/eglexternalplatform.pc"))
+ (for-each delete-file-recursively
+ (list
+ (string-append out "/samples")
+ (string-append out "/COPYING")
+ (string-append out "/README.md"))))
+ #t)))))
+ (synopsis "EGL External Platform interface")
+ (description "EGLExternalPlatform is an specification of the EGL External
+Platform interface for writing EGL platforms and their interactions with modern
+window systems on top of existing low-level EGL platform implementations. This
+keeps window system implementation specifics out of EGL drivers by using
+application-facing EGL functions.")
+ (home-page "https://github.com/NVIDIA/eglexternalplatform")
+ (license license:expat)))
+
(define-public mmm
(package
(name "mmm")
- 316/331: gnu: wayland: Update package definition., (continued)
- 316/331: gnu: wayland: Update package definition., guix-commits, 2020/08/14
- 322/331: gnu: mutter: Update package definition., guix-commits, 2020/08/14
- 325/331: build-system/glib-or-gtk: Include GI_TYPELIB_PATH in wrapper., guix-commits, 2020/08/14
- 328/331: build-system/meson: Wrap Python executables, too., guix-commits, 2020/08/14
- 302/331: gnu: gnome-weather: Update package definition., guix-commits, 2020/08/14
- 303/331: gnu: nautilus: Update package definition., guix-commits, 2020/08/14
- 305/331: gnu: Add liblouisutdml., guix-commits, 2020/08/14
- 306/331: gnu: Add latex2html., guix-commits, 2020/08/14
- 307/331: gnu: Add libbraille., guix-commits, 2020/08/14
- 310/331: gnu: gst-editing-services: Update package definition., guix-commits, 2020/08/14
- 318/331: gnu: Add eglexternalplatform.,
guix-commits <=
- 320/331: gnu: Add mozjs-68., guix-commits, 2020/08/14
- 323/331: gnu: gdm: Update package definition., guix-commits, 2020/08/14
- 324/331: gnu: gnome-shell: Update package definition., guix-commits, 2020/08/14
- 326/331: build-system/glib-or-gtk: Also wrap executables that are in "sbin"., guix-commits, 2020/08/14
- 330/331: gnu: gnome: Revise package definition., guix-commits, 2020/08/14
- 331/331: gnu: Add gnome-minimal., guix-commits, 2020/08/14