From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Re: [PATCH 2/4] gnu: Add irrlicht. Date: Sun, 16 Nov 2014 13:05:40 -0500 Message-ID: <87ppcnowaz.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> References: <87ioifqgta.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87fvdjqgrw.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87d28nqgqw.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <874mtzf3y6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xq4Cp-0002rT-S2 for guix-devel@gnu.org; Sun, 16 Nov 2014 13:05:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xq4Cn-0006po-I3 for guix-devel@gnu.org; Sun, 16 Nov 2014 13:05:47 -0500 In-Reply-To: <874mtzf3y6.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > David Thompson skribis: > >> From 2eac67986d62e8d81857a7148421ab79d327f3e1 Mon Sep 17 00:00:00 2001 >> From: David Thompson >> Date: Fri, 5 Sep 2014 13:16:50 -0400 >> Subject: [PATCH 2/4] gnu: Add irrlicht. >> >> * gnu/packages/games.scm (irrlicht): New variable. > > [...] > >> + (uri (string-append >> + "mirror://sourceforge/irrlicht/Irrlicht%20SDK/" >> + (string-join (take (string-split version #\.) 2) ".= ") > > Please use =E2=80=98version-major+minor=E2=80=99. > Oh yeah! That procedure didn't exist when I first wrote this patch. >> + (description >> + "The Irrlicht Engine is a high performance realtime 3D engine writ= ten in >> +C++.") > > Could you expound a little bit? :-) > Done. >> + (license zlib))) > > =E2=80=98zlib=E2=80=99 here refers to the , not to the = . You > probably need to a #:prefix in the import and rename references to the > licenses. Oops! Victim of a rebase. New patch below. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0002-Add-irrlicht.patch >From bfa11e0174182ca477debd409705750969a74f5d Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 16 Nov 2014 12:56:12 -0500 Subject: [PATCH 2/4] Add irrlicht. --- gnu/packages/games.scm | 84 ++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 67 insertions(+), 17 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 2b6475b..52be3bc 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -23,8 +23,8 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages games) - #:use-module ((guix licenses) - #:hide (zlib)) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix download) #:use-module (gnu packages) @@ -54,6 +54,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages linux) + #:use-module (gnu packages zip) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) #:use-module (guix build-system trivial)) @@ -87,7 +88,7 @@ teaching the game. It has an advanced evaluation engine based on artificial neural networks suitable for both beginners and advanced players. In addition to a command-line interface, it also features an attractive, 3D representation of the playing board.") - (license gpl3+))) + (license license:gpl3+))) (define-public gnubik (package @@ -117,7 +118,7 @@ each of its faces have a uniform color. The game is customizable, allowing you to set the size of the cube (the default is 3x3) or to change the colors. You may even apply photos to the faces instead of colors. The game is scriptable with Guile.") - (license gpl3+))) + (license license:gpl3+))) (define-public abbaye (package @@ -179,7 +180,7 @@ France. The Cathars, who preach about good Christian beliefs, were being expelled by the Catholic Church out of the Languedoc region in France. One of them, called Jean Raymond, found an old church in which to hide, not knowing that beneath its ruins lay buried an ancient evil.") - (license gpl3+))) + (license license:gpl3+))) (define-public pingus (package @@ -225,7 +226,7 @@ giving them commands, like build a bridge, dig a hole, or redirect all animals in the other direction. Multiple such commands are necessary to reach the level's exit. The game is presented in a 2D side view.") ;; Some source files are under bsd-3 and gpl2+ licenses. - (license gpl3+))) + (license license:gpl3+))) (define-public talkfilters (package @@ -244,8 +245,8 @@ level's exit. The game is presented in a 2D side view.") (description "The GNU Talk Filters are programs that convert English text into stereotyped or otherwise humorous dialects. The filters are provided as a C library, so they can easily be integrated into other programs.") - (license gpl2+))) - + (license license:gpl2+))) + (define-public cmatrix (package (name "cmatrix") @@ -278,7 +279,7 @@ a C library, so they can easily be integrated into other programs.") based on the screensaver from the movie's website. It works with terminal settings up to 132x300 and can scroll lines all at the same rate or asynchronously and at a user-defined speed.") - (license gpl2+))) + (license license:gpl2+))) (define-public chess (package @@ -298,7 +299,7 @@ asynchronously and at a user-defined speed.") (description "GNU Chess is a chess engine. It allows you to compete against the computer in a game of chess, either through the default terminal interface or via an external visual interface such as GNU XBoard.") - (license gpl3+))) + (license license:gpl3+))) (define freedink-engine (package @@ -329,7 +330,7 @@ interface or via an external visual interface such as GNU XBoard.") for the role-playing game Dink Smallwood. It supports not only the original game data files but it also supports user-produced game mods or \"D-Mods\". To that extent, it also includes a front-end for managing all of your D-Mods.") - (license gpl3+))) + (license license:gpl3+))) (define freedink-data (package @@ -350,7 +351,7 @@ To that extent, it also includes a front-end for managing all of your D-Mods.") (synopsis "Game data for GNU Freedink") (description "This package contains the game data of GNU Freedink.") - (license gpl3+))) + (license license:gpl3+))) ;; TODO: Add freedink-dfarc when there's a wxWidgets package. @@ -416,7 +417,7 @@ including international chess, xiangqi (Chinese chess), shogi (Japanese chess) and Makruk. Several lesser-known variants are also supported. It presents a fully interactive graphical interface and it can load and save games in the Portable Game Notation.") - (license gpl3+))) + (license license:gpl3+))) (define-public xboing @@ -469,7 +470,8 @@ Portable Game Notation.") you control to bounce a ball around the game zone destroying blocks with a proton ball. Each block carries a different point value. The more blocks you destroy, the better your score. The person with the highest score wins.") - (license (x11-style "file://COPYING" "Very similar to the X11 licence.")))) + (license (license:x11-style "file://COPYING" + "Very similar to the X11 licence.")))) (define-public gtypist (package @@ -503,7 +505,7 @@ practice touch-typing. Several tutorials are included; in addition to tutorials for the standard QWERTY layout, there are also tutorials for the alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials are primarily in English, however some in other languages are provided.") - (license gpl3+))) + (license license:gpl3+))) (define-public tiled (package @@ -537,7 +539,7 @@ clone.") ;; As noted in 'COPYING', part of it is under GPLv2+, while the rest is ;; under BSD-2. - (license gpl2+))) + (license license:gpl2+))) (define-public openal (package @@ -566,4 +568,52 @@ including air absorption, occlusion, and environmental reverb, are available through the EFX extension. It also facilitates streaming audio, multi-channel buffers, and audio capture.") (home-page "http://kcat.strangesoft.net/openal.html") - (license lgpl2.0+))) + (license license:lgpl2.0+))) + +(define-public irrlicht + (package + (name "irrlicht") + (version "1.8.1") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/irrlicht/Irrlicht%20SDK/" + (version-major+minor version) + "/" version "/irrlicht-" version ".zip")) + (sha256 + (base32 + "0yz9lvsc8aqk8wj4rnpanxrw90gqpwn9w5hxp94r8hnm2q0vjjw1")))) + (build-system gnu-build-system) + (arguments + '(#:phases (alist-cons-after + 'unpack 'fix-build-env + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* "Makefile" + (("INSTALL_DIR = /usr/local/lib") + (string-append "INSTALL_DIR = " out "/lib"))) + ;; The Makefile assumes these directories exist. + (mkdir-p (string-append out "/lib")) + (mkdir-p (string-append out "/include")))) + (alist-replace + 'unpack + (lambda* (#:key source #:allow-other-keys) + (and (zero? (system* "unzip" source)) + ;; The actual source is buried a few directories deep. + (chdir "irrlicht-1.8.1/source/Irrlicht/"))) + ;; No configure script + (alist-delete 'configure %standard-phases))) + #:tests? #f ; no check target + #:make-flags '("CC=gcc" "sharedlib"))) + (native-inputs + `(("unzip" ,unzip))) + (inputs + `(("mesa" ,mesa))) + (synopsis "3D game engine written in C++") + (description + "The Irrlicht Engine is a high performance realtime 3D engine written in +C++. Features include an OpenGL renderer, extensible materials, scene graph +management, character animation, particle and other special effects, support +for common mesh file formats, and collision detection.") + (home-page "http://irrlicht.sourceforge.net/") + (license license:zlib))) -- 2.1.1 --=-=-= Content-Type: text/plain -- David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate --=-=-=--