From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH] gnu: Add supertuxkart. Date: Mon, 17 Oct 2016 23:37:54 +0200 Message-ID: <20161017213754.8462-1-rekado@elephly.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwFee-0006Ni-DJ for guix-devel@gnu.org; Mon, 17 Oct 2016 17:41:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwFeb-0008EH-AU for guix-devel@gnu.org; Mon, 17 Oct 2016 17:41:08 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:21341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwFeb-000890-0R for guix-devel@gnu.org; Mon, 17 Oct 2016 17:41:05 -0400 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/games.scm (supertuxkart): New variable. --- gnu/packages/games.scm | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 17ca12b..90963bd 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -969,6 +969,80 @@ This game is based on the GPL version of the famous game TuxRacer.") (home-page "http://sourceforge.net/projects/extremetuxracer/") (license license:gpl2+))) +(define-public supertuxkart + (package + (name "supertuxkart") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/" + version "/supertuxkart-" version "-src.tar.xz")) + (sha256 + (base32 + "10l2ljmd7mv8f9ylarqmxxryicdnph2qkm3g5maxnsm2k2q0n20b")) + (modules '((guix build utils))) + (snippet + ;; Delete bundled library sources + '(begin + ;; FIXME: try to unbundle enet, and angelscript + (for-each delete-file-recursively + '("lib/zlib" + "lib/libpng" + "lib/jpeglib" + "lib/glew" + "lib/wiiuse")) + #t)))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; no check target + #:configure-flags + (list "-DUSE_WIIUSE=0" + ;; Do not use the bundled zlib + "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE" + ;; Irrlicht returns an integer instead of a boolean + "-DCMAKE_C_FLAGS=-fpermissive") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'unbundle + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "CMakeLists.txt" + ;; Supertuxkart uses modified versions of the Irrlicht engine + ;; and the bullet library. The developers gave an explanation here: + ;; http://forum.freegamedev.net/viewtopic.php?f=17&t=3906 + (("add_subdirectory\\(.*/(glew|zlib)\"\\)") "") + (("glew") + (string-append (assoc-ref inputs "glew") + "/lib/libGLEW.a")) + (("include_directories\\(\"\\$\\{PROJECT_SOURCE_DIR\\}/lib/glew/include\"\\)") + (string-append "include_directories(\"" + (assoc-ref inputs "glew") + "/include\")"))) + #t))))) + (inputs + `(("glew" ,glew) + ("zlib" ,zlib) + ("openal" ,openal) + ("libvorbis" ,libvorbis) + ("freetype" ,freetype) + ("fribidi" ,fribidi) + ("mesa" ,mesa) + ("libx11" ,libx11) + ("libxrandr" ,libxrandr) + ("curl" ,curl) + ;; The following input is needed to build the bundled and modified + ;; version of irrlicht. + ("libjpeg" ,libjpeg))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "http://supertuxkart.net") + (synopsis "3D kart racing game") + (description "SuperTuxKart is a 3D kart racing game, with a focus on +having fun over realism. You can play with up to 4 friends on one PC, racing +against each other or just trying to beat the computer; single-player mode is +also available.") + (license license:gpl3+))) + (define-public gnujump (package (name "gnujump") -- 2.10.0