From: taylanbayirli@gmail.com (Taylan Ulrich Bayırlı/Kammer)
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add mesa-demos.
Date: Tue, 17 Mar 2015 12:49:18 +0100 [thread overview]
Message-ID: <87lhiv6dz5.fsf@taylan.uni.cx> (raw)
In-Reply-To: <87pp876fj0.fsf@taylan.uni.cx> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Tue, 17 Mar 2015 12:15:47 +0100")
[-- Attachment #1: Type: text/plain, Size: 181 bytes --]
taylanbayirli@gmail.com (Taylan Ulrich "Bayırlı/Kammer") writes:
> Updated patches below.
Apologies; the latter patch was untested and (of course) contained silly
bugs.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 2627 bytes --]
From 807816ec67414770cf5a6fa82c863096e14b276e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
<taylanbayirli@gmail.com>
Date: Fri, 13 Mar 2015 15:58:25 +0100
Subject: [PATCH 4/5] gnu: Add mesa-utils.
* gnu/packages/gl.scm (mesa-utils): New variable.
(mesa-demos-source): New procedure.
---
gnu/packages/gl.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 4866464..5e2f72a 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -260,6 +260,50 @@ emulation to complete hardware acceleration for modern GPUs.")
(assoc-ref outputs "out")
"/include")))))))))
+;;; The mesa-demos distribution contains non-free files, many files with no
+;;; clear license information, and many demos that aren't useful for most
+;;; people, so we just use this for the mesa-utils package below, and possibly
+;;; other packages in the future. This is modeled after Debian's solution.
+(define (mesa-demos-source version)
+ (origin
+ (method url-fetch)
+ (uri (string-append "ftp://ftp.freedesktop.org/pub/mesa/demos/" version
+ "/mesa-demos-" version ".tar.bz2"))
+ (sha256 (base32 "14msj0prbl3ljwd24yaqv9pz1xzicdmqgg616xxlppbdh6syrgz4"))))
+
+(define-public mesa-utils
+ (package
+ (name "mesa-utils")
+ (version "8.2.0")
+ (source (mesa-demos-source version))
+ (build-system gnu-build-system)
+ (inputs
+ `(("mesa" ,mesa)
+ ("glut" ,freeglut)
+ ("glew" ,glew)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace
+ install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (mkdir-p (string-append out "/bin"))
+ (for-each
+ (lambda (file)
+ (copy-file file (string-append out "/bin/" (basename file))))
+ '("src/xdemos/glxdemo" "src/xdemos/glxgears"
+ "src/xdemos/glxinfo" "src/xdemos/glxheads"))))))))
+ (home-page "http://mesa3d.org/")
+ (synopsis "Utility tools for Mesa")
+ (description
+ "The mesa-utils package contains several utility tools for Mesa: glxdemo,
+glxgears, glxheads, and glxinfo.")
+ ;; glxdemo is public domain; others expat.
+ (license (list l:expat l:public-domain))))
+
(define-public glew
(package
(name "glew")
--
2.2.1
next prev parent reply other threads:[~2015-03-17 11:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 15:23 [PATCH] gnu: Add mesa-demos Taylan Ulrich Bayırlı/Kammer
2015-03-14 14:10 ` Ludovic Courtès
2015-03-14 14:58 ` Taylan Ulrich Bayırlı/Kammer
2015-03-14 15:04 ` Taylan Ulrich Bayırlı/Kammer
2015-03-15 14:41 ` Ludovic Courtès
2015-03-15 14:46 ` Ludovic Courtès
2015-03-17 11:15 ` Taylan Ulrich Bayırlı/Kammer
2015-03-17 11:49 ` Taylan Ulrich Bayırlı/Kammer [this message]
2015-03-18 8:49 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lhiv6dz5.fsf@taylan.uni.cx \
--to=taylanbayirli@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).