From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH] gnu: Add glfw. Date: Mon, 22 Aug 2016 21:47:26 -0400 Message-ID: <20160823014726.28296-1-dthompson2@worcester.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bc0pY-0003lK-Ev for guix-devel@gnu.org; Mon, 22 Aug 2016 21:48:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bc0pT-000599-CL for guix-devel@gnu.org; Mon, 22 Aug 2016 21:48:43 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:33754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bc0pT-000595-7K for guix-devel@gnu.org; Mon, 22 Aug 2016 21:48:39 -0400 Received: by mail-qk0-f193.google.com with SMTP id n66so6089121qkf.0 for ; Mon, 22 Aug 2016 18:48:38 -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" To: guix-devel@gnu.org * gnu/packages/gl.scm (glfw): New variable. --- gnu/packages/gl.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index a4bffe4..4b5646e 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013, 2015 Andreas Enge ;;; Copyright © 2013 Joshua Grant -;;; Copyright © 2014 David Thompson +;;; Copyright © 2014, 2016 David Thompson ;;; Copyright © 2014, 2015 Mark H Weaver ;;; ;;; This file is part of GNU Guix. @@ -22,6 +22,7 @@ (define-module (gnu packages gl) #:use-module (gnu packages autotools) #:use-module (gnu packages bison) + #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) @@ -538,3 +539,36 @@ OpenGL graphics API.") "SOIL is a tiny C library used primarily for uploading textures into OpenGL.") (license license:public-domain))) + +(define-public glfw + (package + (name "glfw") + (version "3.2.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/glfw/glfw" + "/releases/download/" version + "/glfw-" version ".zip")) + (sha256 + (base32 + "09kk5yc1zhss9add8ryqrngrr16hdmc94rszgng135bhw09mxmdp")))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f ; no test target + #:configure-flags '("-DBUILD_SHARED_LIBS=ON"))) + (native-inputs + `(("doxygen" ,doxygen) + ("unzip" ,unzip))) + (inputs + `(("mesa" ,mesa) + ("libx11" ,libx11) + ("libxrandr" ,libxrandr) + ("libxinerama" ,libxinerama) + ("libxcursor" ,libxcursor))) + (home-page "http://www.glfw.org") + (synopsis "OpenGL application development library") + (description + "GLFW is a library for OpenGL, OpenGL ES and Vulkan development for +desktop computers. It provides a simple API for creating windows, contexts +and surfaces, receiving input and events.") + (license license:zlib))) -- 2.8.3