From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZrSj-0005NY-H3 for guix-patches@gnu.org; Fri, 12 Jan 2018 00:01:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZrSg-0005lN-FW for guix-patches@gnu.org; Fri, 12 Jan 2018 00:01:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:44895) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZrSg-0005lE-BN for guix-patches@gnu.org; Fri, 12 Jan 2018 00:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZrSg-00089M-37 for guix-patches@gnu.org; Fri, 12 Jan 2018 00:01:02 -0500 Subject: [bug#30084] [PATCH] gnu: Add urho3d. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZrRw-0004tc-BZ for guix-patches@gnu.org; Fri, 12 Jan 2018 00:00:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZrRt-0004xQ-7Y for guix-patches@gnu.org; Fri, 12 Jan 2018 00:00:16 -0500 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:35182) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZrRs-0004tv-OU for guix-patches@gnu.org; Fri, 12 Jan 2018 00:00:13 -0500 Received: by mail-lf0-x22a.google.com with SMTP id h5so4613367lfj.2 for ; Thu, 11 Jan 2018 21:00:12 -0800 (PST) Received: from magnolia (ppp91-122-120-78.pppoe.avangarddsl.ru. [91.122.120.78]) by smtp.gmail.com with ESMTPSA id h11sm3553349lfd.35.2018.01.11.21.00.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Jan 2018 21:00:09 -0800 (PST) From: Oleg Pykhalov Date: Thu, 11 Jan 2018 01:24:16 +0300 Message-ID: <87y3l5ic8f.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30084@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Guix, This patch adds a 3D game engine. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-urho3d.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH] gnu: Add urho3d. From=20186090075a1ae515bb4893763e7c528568e15939 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Thu, 11 Jan 2018 01:14:41 +0300 Subject: [PATCH] gnu: Add urho3d. * gnu/packages/game-development.scm (urho3d): New public variable. =2D-- gnu/packages/game-development.scm | 51 +++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-developm= ent.scm index 363d9a253..69045cf9c 100644 =2D-- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -1150,3 +1150,54 @@ features design tools such as a visual editor, can i= mport 3D models and provide high-quality 3D rendering, it contains an animation editor, and ca= n be scripted in a Python-like language.") (license license:expat))) + +(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* (string-append "../build/Source/ThirdParty" + "/SDL/include/generated/SDL_confi= g.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_DYNAM= IC" + " \"libpulse-simple\\.so\\.0\"")) + (string-append "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMI= C \"" + (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 "Lightweight, cross-platform 2D and 3D game engine +implemented in C++. Inspired by OGRE and Horde3D.") + (license license:expat))) =2D-=20 2.15.1 --=-=-= Content-Type: text/plain Also the latest version of engine could be build with: --8<---------------cut here---------------start------------->8--- (define-public urho3d-checkout (let ((commit "4af4148048a6443154c6f0498d32626d10f1e86b") (revision "1")) (package (inherit urho3d) (name "urho3d-checkout") (version (string-append (package-version urho3d) "-" revision "." (string-take commit 7))) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/urho3d/Urho3D") (commit commit))) (file-name (string-append name "-" version "-checkout")) (sha256 (base32 "1nchxswrkfgzsxghi6c55b27zy9127ni7yvnb4xw2xdddyfm1wl0")))))))--8<---------------cut here---------------end--------------->8--- Thanks, Oleg. --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlpWkpAACgkQckbhHGm3 lWm/BRAAzts0nCH+6yQfDertSyeaO34uGRegQuSoAsAd9l7vl9sSto2gdvScnUe8 QjQtKP2DtKRFf8dZsISlDKqkJLU4dz05t86M51j2zXoQY3gLIi/50DmfBH1zMCRD 3N8nRhw+GetWW4o0ikWW4uXghPPZU/8yihqz5sPbz6fCDi0Z3cuP5q5KPN+lFnHo gE6E2keYH9iJkzTvsEzlM7TBDl1S5rPwr6Qb8nC28MA0YA15dPLPHEpkUuP3+9Ic WXn3FuCe+dj2tZ1V4vG9XY5e7FuY7nPZO+Ef59JGEaiDOlLJdwT5fiqwNipSiQx0 +9h+x596P5lXDSbe+XZEISHmPgtLcFGMh+T3A5K1xtrFz9nCRtQfRfxxd7+4/Z5A ddsHtIvHQGDrrGTswxt8N+xxcPPwiUNatsacchw1Yaff4DikQaBNkvs7ogEGtbae 9tT6VyOdUsnOPRmn6apsCDhSEOTXpJIyl8/FVhDbZfq/UqkzmzIjxv5GFML0AS2f jVUxLm2BemPvga3wEok+ordfYb+SCgIPOXsYL5jrhq0m24DgOq5QBFhZ8vbWGV7f NpG/vo5o2zJQqBJEnl75nQKcTxu+cQMEyt/CqY+aAutVgplxJVeK99i4cyq0oeac sq63M65RsTOpxDzVKOry+LJTaXl25XWN27rDYzWJ5TI8dw6Bfks= =qpid -----END PGP SIGNATURE----- --==-=-=--