GNU Ball and Paddle 0.8.1.
svn path=/nixpkgs/trunk/; revision=16410
This commit is contained in:
parent
92662d3d0f
commit
179c9415db
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
13
pkgs/games/ball-and-paddle/getenv-decl.patch
Normal file
13
pkgs/games/ball-and-paddle/getenv-decl.patch
Normal 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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user