From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: [PATCH] Add extremetuxracer (Note: needs help!) Date: Mon, 27 Apr 2015 11:40:19 -0500 Message-ID: <87mw1tikxb.fsf@earlgrey.lan> References: <87sibmi38e.fsf@earlgrey.lan> <878udexhxz.fsf@gmail.com> <87pp6pitxb.fsf@earlgrey.lan> <874mo11vjj.fsf@gmail.com> <87oam9ilo5.fsf@earlgrey.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymm4u-00042C-P9 for guix-devel@gnu.org; Mon, 27 Apr 2015 12:40:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ymm4q-00080U-HY for guix-devel@gnu.org; Mon, 27 Apr 2015 12:40:16 -0400 Received: from [2600:3c02::f03c:91ff:feae:cb51] (port=54360 helo=dustycloud.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymm4q-0007xa-CQ for guix-devel@gnu.org; Mon, 27 Apr 2015 12:40:12 -0400 In-reply-to: <87oam9ilo5.fsf@earlgrey.lan> 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: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Christopher Allan Webber writes: > =E5=AE=8B=E6=96=87=E6=AD=A6 writes: > >>> make[1]: *** [all-recursive] Error 1 >>> make[1]: Leaving directory '/tmp/nix-build-extremetuxracer-0.6.0.dr= v-0/etr-0.6.0' >>> Makefile:457: recipe for target 'all' failed >>> make: *** [all] Error 2 >>> >>> sdl is an input, so I don't know what's going on... >>> >>> Sorry! I thought this one was going to be an easy package that I >>> wouldn't need much help on! >> oops, I take a deep look. It turn out that >> this package set the flags (for SDL, etc.) as 'CFLAGS', >> but it only use 'CXXFLAGS' (only have freetype) when compile cpp files= . >> I think we can patch the Makefile after 'configure' phase, by: >> >> (substitute* "Makefile" >> (("CXXFLAGS =3D") "CXXFLAGS =3D ${CFLAGS)")) >> >> And better, ask upstream for a real fix :-) > > Spot on! (Well mostly! ${CFLAGS} not ${CFLAGS), I was confused for a > minute :)) But this was exactly what was needed! We now have a workin= g > (extreme) tuxracer! > > We're a REAL distro now! > - cwebb Okay, Dave Thompson pointed out I should use modify-phases. Done! --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-extremetuxracer.patch Content-Transfer-Encoding: quoted-printable >From fce4cb6603ebb390904f09fdd1959bb6cddd8024 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 26 Apr 2015 23:40:40 -0500 Subject: [PATCH] gnu: Add extremetuxracer * gnu/packages/games.scm (extremetuxracer): New variable. --- gnu/packages/games.scm | 56 ++++++++++++++++++++++++++++++++++++++++++++= ++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 192d0db..fb551d1 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -9,6 +9,7 @@ ;;; Copyright =C2=A9 2014 Mark H Weaver ;;; Copyright =C2=A9 2015 Andreas Enge ;;; Copyright =C2=A9 2015 David Hashe +;;; Copyright =C2=A9 2015 Christopher Allan Webber ;;; ;;; This file is part of GNU Guix. ;;; @@ -42,6 +43,7 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages guile) #:use-module (gnu packages libcanberra) + #:use-module (gnu packages libunwind) #:use-module (gnu packages image) #:use-module (gnu packages ncurses) #:use-module (gnu packages python) @@ -65,6 +67,7 @@ #:use-module (gnu packages lua) #:use-module (gnu packages video) #:use-module (gnu packages xml) + #:use-module (gnu packages tcl) #:use-module (guix build-system trivial) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) @@ -822,3 +825,56 @@ interfaces or even in Emacs. It supports the standa= rd game storage format Modem Protocol).") (home-page "http://www.gnu.org/software/gnugo/") (license license:gpl3+))) + +(define-public extremetuxracer + (package + (name "extremetuxracer") + (version "0.6.0") + (source (origin + (method url-fetch) + (uri (string-append + "http://downloads.sourceforge.net/project/extremetux= racer/releases/" + version + "/etr-" version ".tar.xz")) + (sha256 + (base32 + "0fl9pwkywqnsmgr6plfj9zb05xrdnl5xb2hcmbjk7ap9l4cjfca4"))= )) + (build-system gnu-build-system) + (native-inputs `(("pkg-config" ,pkg-config))) + (inputs `(("freetype" ,freetype) + ("mesa" ,mesa) + ("glu" ,glu) + ("libice" ,libice) + ("libpng" ,libpng) + ("sdl" ,sdl) + ("sdl-mixer" ,sdl-mixer) + ("sdl-image" ,sdl-image) + ("libsm" ,libsm) + ("libunwind" ,libunwind) + ("libx11" ,libx11) + ("libxext" ,libxext) + ("libxi" ,libxi) + ("libxmu" ,libxmu) + ("libxt" ,libxt) + ("tcl" ,tcl) + ("zlib" ,zlib))) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'configure 'patch-makefile + (lambda _ + (substitute* "Makefile" + (("CXXFLAGS =3D") "CXXFLAGS =3D ${CFLAGS}"))))))= ) + (synopsis "High speed arctic racing game based on Tux Racer") + ;; Snarfed straight from Debian + (description "Extreme Tux Racer, or etracer as it is called for shor= t, is +a simple OpenGL racing game featuring Tux, the Linux mascot. The goal o= f the +game is to slide down a snow- and ice-covered mountain as quickly as pos= sible, +avoiding the trees and rocks that will slow you down. + +Collect herrings and other goodies while sliding down the hill, but avoi= d fish +bones. + +This game is based on the GPL version of the famous game TuxRacer.") + (home-page "http://sourceforge.net/projects/extremetuxracer/") + (license license:gpl2+))) --=20 2.1.4 --=-=-=--