From mboxrd@z Thu Jan 1 00:00:00 1970 From: youlysses@riseup.net Subject: [PATCH] gnu: add GL Date: Mon, 30 Sep 2013 00:53:19 -0700 Message-ID: <99e60edde98ace6c1c3f70b068d02e70.squirrel@fulvetta.riseup.net> Mime-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20130930005319_97265" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQYIJ-0001CF-DY for guix-devel@gnu.org; Mon, 30 Sep 2013 03:53:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQYIC-0005Hm-NN for guix-devel@gnu.org; Mon, 30 Sep 2013 03:53:27 -0400 Received: from mx1.riseup.net ([198.252.153.129]:34330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQYIC-0005HE-1l for guix-devel@gnu.org; Mon, 30 Sep 2013 03:53:20 -0400 Received: from fulvetta.riseup.net (fulvetta-pn.riseup.net [10.0.1.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 433ED48DD9 for ; Mon, 30 Sep 2013 00:53:19 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org ------=_20130930005319_97265 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I submitted this yesterday, but it appears it never came through, for som= e reason or another ... -- After many unexpected distractions and the near constant barrage of questions I released onto #guix, I finally have my first patch (hopefully) all ready to go! Like always, if there are any criticisms and/or concerns, feel free to mention them. It's been a fun learning process so-far and I'm really looking forward to continuing onward, in the long-run. Attached is a patch to add gl.scm, a set of a applications, extensions, utilities, or what have-you, related to Opengl-- that don't really deserve/fit to be in there own file and/or module. -- JSG ------=_20130930005319_97265 Content-Type: text/x-patch; name="0001-Added-gl.scm-to-packages.patch" Content-Disposition: attachment; filename="0001-Added-gl.scm-to-packages.patch" Content-Transfer-Encoding: quoted-printable >From 08238d180a287cb3b092af0f572d63318d3b1276 Mon Sep 17 00:00:00 2001 From: "Joshua S. Grant" Date: Sun, 29 Sep 2013 15:49:53 -0500 Subject: [PATCH] Added gl.scm to packages --- gnu-system.am | 1 + gnu/packages/gl.scm | 112 ++++++++++++++++++++++++++++++++++++++++++++++= ++++++ 2 files changed, 113 insertions(+) create mode 100644 gnu/packages/gl.scm diff --git a/gnu-system.am b/gnu-system.am index 7b67579..1e6584c 100644 --- a/gnu-system.am +++ b/gnu-system.am @@ -67,6 +67,7 @@ GNU_SYSTEM_MODULES =3D \ gnu/packages/gettext.scm \ gnu/packages/ghostscript.scm \ gnu/packages/gkrellm.scm \ + gnu/packages/gl.scm \ gnu/packages/glib.scm \ gnu/packages/global.scm \ gnu/packages/gnome.scm \ diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm new file mode 100644 index 0000000..48e33b3 --- /dev/null +++ b/gnu/packages/gl.scm @@ -0,0 +1,112 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2013 Joshua S. Grant +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (a= t +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages gl) + #:use-module ((guix licenses)=20 + #:renamer (symbol-prefix-proc 'l:)) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module (guix packages) + #:use-module (gnu packages xorg) + #:use-module (gnu packages fontutils)) + +(define-public glu + (package + (name "glu") + (version "9.0.0") + (source (origin + (method url-fetch) + (uri (string-append "ftp://ftp.freedesktop.org/pub/mesa/glu/glu-"=20 + version ".tar.gz")) + (sha256 + (base32 "0r72yyhj09x3krn3kn629jqbwyq50ji8w5ri2pn6zwrk35m4g1s3")))= ) + (build-system gnu-build-system) + (inputs `(("mesa" ,mesa)))=20 + (home-page "http://www.opengl.org/archives/resources/faq/technical/g= lu.htm") + (synopsis "Mesa OpenGL Utility library") + (description=20 + "GLU, or OpenGL Utility Library provides some higher-level function= ality=20 +not provided by just OpenGL itself. Some of GLU's Features=20 +include: Scaling of 2D images and creation of mipmap pyramids,=20 +Transformation of object coordinates into device coordinates and=20 +vice versa, Support for NURBS surfaces, Support for tessellation=20 +of concave or bow tie polygonal primitives, Specialty transformation=20 +matrices for creating perspective and orthographic projections,=20 +positioning a camera, and selection/picking, Rendering of disk,=20 +cylinder, and sphere primitives, Interpreting OpenGL error values=20 +as ASCII text.")=20 + (license (l:x11-style "http://directory.fsf.org/wiki/License:SGIFree= Bv2")))) +=20 +(define-public freeglut + (package + (name "freeglut") + (version "2.8.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/project/freeglut/= freeglut/"=20 + version "/freeglut-" version ".tar.gz"= )) + (sha256 + (base32 "16lrxxxd9ps9l69y3zsw6iy0drwjsp6m26d1937xj71alqk6dr6x")))= ) + (build-system gnu-build-system) + (inputs `(("mesa" ,mesa)=20 + ("libx11" ,libx11) + ("libxi" ,libxi) + ("libxrandr" ,libxrandr) + ("libxxf86vm" ,libxxf86vm)=20 + ("inputproto" ,inputproto) + ("xinput" ,xinput) + ("glu" ,glu))) + (home-page "http://freeglut.sourceforge.net/") + (synopsis "Alternative to the OpenGL Utility Toolkit (GLUT)") + (description=20 + "Freeglut is a completely Free/OpenSourced alternative to=20 +the OpenGL Utility Toolkit (GLUT) library. GLUT was originally=20 +written by Mark Kilgard to support the sample programs in the=20 +second edition OpenGL 'RedBook'. Since then, GLUT has been used=20 +in a wide variety of practical applications because it is simple,=20 +widely available and highly portable. + +GLUT (and hence freeglut) allows the user to create and manage windows=20 +containing OpenGL contexts on a wide range of platforms and also read=20 +the mouse, keyboard and joystick functions. freeglut is released under=20 +the X-Consortium license.")=20 + (license l:x11))) + +(define-public ftgl=20 + (package + (name "ftgl") + (version "2.1.3-rc5")=20 + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/project/ftgl/FTGL= %20Source/2.1.3~rc5/ftgl-" + version ".tar.gz")) + (sha256 + (base32 "0nsn4s6vnv5xcgxcw6q031amvh2zfj2smy1r5mbnjj2548hxc= n2l")))) + (build-system gnu-build-system) + (inputs `(("freetype" ,freetype) + ("libx11" ,libx11) + ("mesa" ,mesa) + ("glu" ,glu)))=20 + (home-page "http://ftgl.sourceforge.net") = =20 + (synopsis "Font rendering library for OpenGL applications") + (description=20 + "FTGL is a font rendering library for OpenGL applications. Supporte= d=20 +rendering modes are: Bitmaps, Anti-aliased pixmaps, Texture maps, Outlin= es,=20 +Polygon meshes, and Extruded polygon meshes") + (license l:x11))) --=20 1.8.3.1 ------=_20130930005319_97265--