From 906fc9116f266512b932219c8ae9fcb7474c745d Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Wed, 13 May 2020 19:20:56 -0400 Subject: gnu: Add glmark2. * gnu/packages/gl.scm (glmark2): New variable. --- gnu/packages/gl.scm | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) (limited to 'gnu/packages/gl.scm') diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index a8b142cacb..d9d83e7d32 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2019 Pierre Neidhardt ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2020 Kei Kebreau ;;; ;;; This file is part of GNU Guix. ;;; @@ -60,6 +61,7 @@ (define-module (gnu packages gl) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) #:use-module (guix build-system meson) + #:use-module (guix build-system waf) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix utils) @@ -1013,3 +1015,62 @@ (define-public mojoshader-cs The C# wrapper was written to be used for FNA's platform support. However, this is written in a way that can be used for any general C# application.") (license license:zlib)))) + +(define-public glmark2 + (package + (name "glmark2") + (version "2020.04") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/glmark2/glmark2") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ywpzp0imi3f8iyp7d1739576zx2nsr3db5hp2as4yhflfyq1as2")) + (modules '((guix build utils))) + ;; Fix Python 3 incompatibility. + (snippet + '(begin + (substitute* "wscript" + (("(sorted\\()FLAVORS\\.keys\\(\\)(.*)" _ beginning end) + (string-append beginning "list(FLAVORS)" end))) + #t)))) + (build-system waf-build-system) + (arguments + '(#:tests? #f ; no check target + #:configure-flags + (list (string-append "--with-flavors=" + (string-join '("x11-gl" "x11-glesv2" + "drm-gl" "drm-glesv2" + "wayland-gl" "wayland-glesv2") + ","))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((mesa (assoc-ref inputs "mesa"))) + (substitute* (find-files "src" "gl-state-.*\\.cpp$") + (("libGL.so") (string-append mesa "/lib/libGL.so")) + (("libEGL.so") (string-append mesa "/lib/libEGL.so")) + (("libGLESv2.so") (string-append mesa "/lib/libGLESv2.so"))) + #t)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("eudev" ,eudev) + ("libdrm" ,libdrm) + ("libjpeg-turbo" ,libjpeg-turbo) + ("libpng" ,libpng) + ("libx11" ,libx11) + ("libxcb" ,libxcb) + ("mesa" ,mesa) + ("wayland" ,wayland) + ("wayland-protocols" ,wayland-protocols))) + (home-page "https://github.com/glmark2/glmark2") + (synopsis "OpenGL 2.0 and OpenGL ES 2.0 benchmark") + (description + "glmark2 is an OpenGL 2.0 and OpenGL ES 2.0 benchmark based on the +original glmark benchmark by Ben Smith.") + (license license:gpl3+))) -- cgit v1.2.3 From 8115b5d4b2e59e431737f0caa926389e1e9e49ce Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 12 Dec 2020 16:25:39 +0100 Subject: gnu: mesa: Update to 20.2.4. * gnu/packages/gl.scm (mesa): Update to 20.2.4. --- gnu/packages/gl.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/gl.scm') diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index d9d83e7d32..966459fb51 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -235,7 +235,7 @@ (define libva-without-mesa (define-public mesa (package (name "mesa") - (version "20.1.9") + (version "20.2.4") (source (origin (method url-fetch) @@ -247,7 +247,7 @@ (define-public mesa version "/mesa-" version ".tar.xz"))) (sha256 (base32 - "10kk8a8k7f4ip8yaiqdyrx162nbw8pw4h3b4hs4ha8mpd43wlldj")) + "14m09bk7akj0k02lg8fhvvzbdsashlbdsgl2cw7wbqfj2mhdqwh5")) (patches (search-patches "mesa-skip-disk-cache-test.patch")))) (build-system meson-build-system) -- cgit v1.2.3 From 4b4c93d63937a764482e2bba83358d7bee65034c Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 13 Dec 2020 20:55:05 +0100 Subject: gnu: mesa: Build with LLVM 11. * gnu/packages/gl.scm (mesa)[inputs]: Change from LLVM-10 to LLVM-11. (mesa-opencl)[native-inputs]: Change from CLANG-10 to CLANG-11. --- gnu/packages/gl.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/gl.scm') diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index 966459fb51..dc64ccf85e 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -272,7 +272,7 @@ (define-public mesa ,@(match (%current-system) ((or "x86_64-linux" "i686-linux") ;; Note: update the 'clang' input of mesa-opencl when bumping this. - `(("llvm" ,llvm-10))) + `(("llvm" ,llvm-11))) (_ `())) ("wayland" ,wayland) @@ -452,7 +452,7 @@ (define-public mesa-opencl `(("libclc" ,libclc) ,@(package-inputs mesa))) (native-inputs - `(("clang" ,clang-10) + `(("clang" ,clang-11) ,@(package-native-inputs mesa))))) (define-public mesa-opencl-icd -- cgit v1.2.3