GNU Ball and Paddle 0.8.1.

svn path=/nixpkgs/trunk/; revision=16410
This commit is contained in:
Ludovic Courtès 2009-07-16 21:38:30 +00:00
parent 92662d3d0f
commit 179c9415db
2 changed files with 20 additions and 3 deletions

View file

@ -1,16 +1,18 @@
{ fetchurl, stdenv, SDL, SDL_image, SDL_mixer, SDL_ttf, guile, gettext }:
stdenv.mkDerivation rec {
name = "ballandpaddle-0.8.0";
name = "ballandpaddle-0.8.1";
src = fetchurl {
url = "mirror://gnu/ballandpaddle/${name}.tar.gz";
sha256 = "0m81vvwibisaxrqmzlq6k8r5qxv4hpsq2hi6xjmfm1ffzaayplsh";
sha256 = "0zgpydad0mj7fbkippw3n9hlda6nac084dq5xfbsks9jn1xd30ny";
};
buildInputs = [ SDL SDL_image SDL_mixer SDL_ttf guile gettext ];
patchPhase = ''
patches = [ ./getenv-decl.patch ];
preConfigure = ''
sed -i "Makefile.in" \
-e "s|desktopdir *=.*$|desktopdir = $out/share/applications|g ;
s|pixmapsdir *=.*$|pixmapsdir = $out/share/pixmaps|g"
@ -32,5 +34,7 @@ stdenv.mkDerivation rec {
license = "GPLv3+";
homepage = http://www.gnu.org/software/ballandpaddle/;
maintainers = [ stdenv.lib.maintainers.ludo ];
};
}

View file

@ -0,0 +1,13 @@
Make the getenv(3) declaration visible.
--- ballandpaddle-0.8.1/src/settingsmanager.cpp 2009-07-08 02:13:16.000000000 +0200
+++ ballandpaddle-0.8.1/src/settingsmanager.cpp 2009-07-16 23:30:28.000000000 +0200
@@ -17,6 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
**/
+#include <stdlib.h>
#include "settingsmanager.h"
SettingsManager::SettingsManager ()