[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
318/401: gnu: Add eglexternalplatform.
From: |
guix-commits |
Subject: |
318/401: gnu: Add eglexternalplatform. |
Date: |
Tue, 18 Aug 2020 16:22:07 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 30ce0396b45c6a0f3441b20a5a979e7e3398d1d2
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 d4ea1b1..ab4ebc4 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -96,6 +96,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)
@@ -108,6 +109,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")
- 366/401: gnu: network-manager: Include python phases., (continued)
- 366/401: gnu: network-manager: Include python phases., guix-commits, 2020/08/18
- 368/401: gnu: tracker: Include python phases., guix-commits, 2020/08/18
- 369/401: gnu: gnome-boxes: Include python phases., guix-commits, 2020/08/18
- 377/401: gnu: ccextractor: Include python phases., guix-commits, 2020/08/18
- 383/401: gnu: eog: Remove custom typelib wrap., guix-commits, 2020/08/18
- 398/401: Revert "gnu: libpeas: Include python phases.", guix-commits, 2020/08/18
- 399/401: Revert "gnu: gexiv2: Include python phases.", guix-commits, 2020/08/18
- 401/401: gnu: Add gnome desktop services., guix-commits, 2020/08/18
- 236/401: gnu: opencv: Disable structured_light test., guix-commits, 2020/08/18
- 316/401: gnu: wayland: Update package definition., guix-commits, 2020/08/18
- 318/401: gnu: Add eglexternalplatform.,
guix-commits <=
- 320/401: gnu: Add mozjs-68., guix-commits, 2020/08/18
- 325/401: build-system/glib-or-gtk: Include GI_TYPELIB_PATH in wrapper., guix-commits, 2020/08/18
- 329/401: build-system/cmake: Wrap Python executables, too., guix-commits, 2020/08/18
- 333/401: build-system/meson: Only include phases that are enabled., guix-commits, 2020/08/18
- 343/401: gnu: graphene: Include python phases., guix-commits, 2020/08/18
- 361/401: gnu: gom: Include python phases., guix-commits, 2020/08/18
- 364/401: gnu: libchamplain: Include python phases., guix-commits, 2020/08/18
- 365/401: gnu: libpeas: Include python phases., guix-commits, 2020/08/18
- 378/401: gnu: mediasdk: Include python phases., guix-commits, 2020/08/18
- 389/401: gnu: gedit: Replace custom typelib and python wraps., guix-commits, 2020/08/18