From: Oleg Pykhalov <go.wigust@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 30084@debbugs.gnu.org
Subject: [bug#30084] [PATCH] gnu: Add urho3d.
Date: Tue, 23 Jan 2018 16:29:44 +0300 [thread overview]
Message-ID: <87r2qgput3.fsf@gmail.com> (raw)
In-Reply-To: <87shbbqiq5.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 12 Jan 2018 15:01:22 +0100")
[-- Attachment #1.1: Type: text/plain, Size: 2709 bytes --]
Hello Ludovic,
Thank you for review!
ludo@gnu.org (Ludovic Courtès) writes:
> Hi Oleg,
>
> Oleg Pykhalov <go.wigust@gmail.com> skribis:
>
>> From 186090075a1ae515bb4893763e7c528568e15939 Mon Sep 17 00:00:00 2001
>> From: Oleg Pykhalov <go.wigust@gmail.com>
>> Date: Thu, 11 Jan 2018 01:14:41 +0300
>> Subject: [PATCH] gnu: Add urho3d.
>>
>> * gnu/packages/game-development.scm (urho3d): New public variable.
>
> [...]
>
>> + (lambda* (#:key inputs #:allow-other-keys)
>> + (substitute* (string-append "../build/Source/ThirdParty"
>> + "/SDL/include/generated/SDL_config.h")
>
> IIUC there’s a bundled copy of SDL, right? Can we instead build against
> our SDL?
Yes, it's a bundled copy. We probably can, but how? The build system
probably configured look for 'Source/ThirdParty/SDL'. So should we make
a symbolic link like 'Source/ThirdParty/SDL' -> '/gnu/store/…-SDL'?
I'll check this later. Maybe it will search for a system first SDL and
if not find it use their own. Also I have a question about SDL in the
following quote.
> Ideally, to be safe from bundling, we should “rm -rf ThirdParty” in a
> snippet. Is that possible?
Unfortunately no. The contents of the 'Source/ThirdParty' has much more
than just SDL. It's too much work for now, but a good TODO.
Source/ThirdParty/SDL
AngelScript Assimp boost Box2D Bullet Civetweb Detour DetourCrowd
DetourTileCache FreeType GLEW ik JO kNet LibCpuId LICENSES Lua
LuaJIT LZ4 MojoShader Mustache nanodbc PugiXml rapidjson Recast SDL
SQLite StanHull STB toluapp WebP
Actually I wonder will those libraries and the engine overall play nice
with OUR SDL library? Should we provide a Guix version and bundled
libraries version?
>> + (((string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC"
>> + " \"libpulse-simple\\.so\\.0\""))
>> + (string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \""
>> + (assoc-ref inputs "pulseaudio")
>> + "/lib/libpulse-simple.so.0"
>> + "\"")))
>
> Please use a literal string in the ‘substitute*’ pattern (you can use
> backslashes to split it on several lines.)
OK. Thanks for notice!
>> + (description "Lightweight, cross-platform 2D and 3D game engine
>> +implemented in C++. Inspired by OGRE and Horde3D.")
>
> Full sentences please! :-)
>
> https://www.gnu.org/software/guix/manual/html_node/Synopses-and-Descriptions.html
Oh, thanks!
> Could you send an updated path?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: [PATCH] gnu: Add urho3d. --]
[-- Type: text/x-patch, Size: 3126 bytes --]
From 5a906d8a8a9ff50ed46b5ffc33714b11517e23ca Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@gmail.com>
Date: Thu, 11 Jan 2018 01:14:41 +0300
Subject: [PATCH] gnu: Add urho3d.
* gnu/packages/game-development.scm (urho3d): New public variable.
---
gnu/packages/game-development.scm | 51 +++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 0b08b04f5..3c5eae5cd 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -1206,3 +1206,54 @@ related games such as Heretic and Hexen. It comes with a 3d preview mode and
a 2D editor view.")
(home-page "http://eureka-editor.sourceforge.net/")
(license license:gpl2+)))
+
+(define-public urho3d
+ (package
+ (name "urho3d")
+ (version "1.7")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/urho3d/Urho3D"
+ "/archive/" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1im63n9rx8qq1ks6aq6jrl5ikxg87hqhsy06miqc317hpm1iyav5"))))
+ (build-system cmake-build-system)
+ (inputs `(("libx11" ,libx11)
+ ("libxcursor" ,libxcursor)
+ ("libxext" ,libxext)
+ ("libxi" ,libxi)
+ ("libxinerama" ,libxinerama)
+ ("libxrandr" ,libxrandr)
+ ("libxrender" ,libxrender)
+ ("libxscrnsaver" ,libxscrnsaver)
+ ("mesa" ,mesa)
+ ("alsa-lib" ,alsa-lib)
+ ("pulseaudio" ,pulseaudio)))
+ (arguments
+ '(#:tests?
+ #f ; There are no tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'use-full-library-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "../build/Source/ThirdParty\
+/SDL/include/generated/SDL_config.h"
+ (("#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"libasound\\.so\\.2\"")
+ (string-append "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \""
+ (assoc-ref inputs "alsa-lib")
+ "/lib/libasound.so.2"
+ "\""))
+ (((string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC"
+ " \"libpulse-simple\\.so\\.0\""))
+ (string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \""
+ (assoc-ref inputs "pulseaudio")
+ "/lib/libpulse-simple.so.0"
+ "\"")))
+ #t)))))
+ (home-page "https://urho3d.github.io/")
+ (synopsis "Cross-platform 2D and 3D game engine")
+ (description "This package provides a lightweight, cross-platform 2D and
+3D game engine implemented in C++. Inspired by OGRE and Horde3D.")
+ (license license:expat)))
--
2.15.1
[-- Attachment #1.3: Type: text/plain, Size: 8 bytes --]
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-01-23 13:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 22:24 [bug#30084] [PATCH] gnu: Add urho3d Oleg Pykhalov
2018-01-12 14:01 ` Ludovic Courtès
2018-01-23 13:29 ` Oleg Pykhalov [this message]
2018-01-23 14:07 ` Ludovic Courtès
2020-03-22 20:42 ` Leo Famulari
2020-03-23 7:54 ` bug#30084: " Oleg Pykhalov
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=87r2qgput3.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=30084@debbugs.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).