From: David Thompson <dthompson2@worcester.edu>
To: guix-devel@gnu.org
Subject: [PATCH 2/3] gnu: Add irrlicht.
Date: Fri, 5 Sep 2014 14:53:17 -0400 [thread overview]
Message-ID: <1409943198-858-2-git-send-email-dthompson2@worcester.edu> (raw)
In-Reply-To: <1409943198-858-1-git-send-email-dthompson2@worcester.edu>
* gnu/packages/games.scm (irrlicht): New variable.
---
gnu/packages/games.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index e6ef402..86ad436 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -20,6 +20,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages games)
+ #:use-module (srfi srfi-1)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
@@ -43,6 +44,7 @@
#:use-module (gnu packages texinfo)
#: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))
@@ -353,3 +355,48 @@ 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+)))
+
+(define-public irrlicht
+ (package
+ (name "irrlicht")
+ (version "1.8.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
+ (string-join (take (string-split version #\.) 2) ".")
+ "/" 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 ((prefix (assoc-ref outputs "out")))
+ (substitute* "Makefile"
+ (("INSTALL_DIR = /usr/local/lib")
+ (string-append "INSTALL_DIR = " prefix "/lib")))
+ ;; The Makefile assumes these directories exist.
+ (mkdir-p (string-append prefix "/lib"))
+ (mkdir-p (string-append prefix "/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")
+ (description
+ "3D game engine.")
+ (home-page "http://irrlicht.sourceforge.net/")
+ (license bsd-3)))
--
2.1.0
next prev parent reply other threads:[~2014-09-05 18:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-05 18:53 [PATCH 1/3] gnu: Add openal David Thompson
2014-09-05 18:53 ` David Thompson [this message]
2014-09-05 19:10 ` [PATCH 2/3] gnu: Add irrlicht Eric Bavier
2014-09-05 19:42 ` David Thompson
2014-09-05 18:53 ` [PATCH 3/3] gnu: Add minetest David Thompson
2014-09-05 20:18 ` Ludovic Courtès
2014-09-06 3:56 ` David Thompson
2014-09-06 10:52 ` Ludovic Courtès
2014-09-06 18:26 ` David Thompson
2014-09-05 20:13 ` [PATCH 1/3] gnu: Add openal 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1409943198-858-2-git-send-email-dthompson2@worcester.edu \
--to=dthompson2@worcester.edu \
--cc=guix-devel@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.