3
0
Fork 0
forked from mirrors/nixpkgs

PyGame: Use SDL_mixer.

svn path=/nixpkgs/trunk/; revision=12977
This commit is contained in:
Ludovic Courtès 2008-10-06 22:47:20 +00:00
parent c82c0b17f1
commit b7ba44dff3
2 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,5 @@
{ fetchurl, stdenv, python, pkgconfig, SDL, SDL_image, SDL_ttf, numeric }:
{ fetchurl, stdenv, python, pkgconfig, SDL, SDL_image, SDL_mixer, SDL_ttf
, numeric }:
stdenv.mkDerivation {
name = "pygame-1.7";
@ -14,6 +15,8 @@ stdenv.mkDerivation {
export LOCALBASE=///
sed -e "/origincdirs =/a'${SDL_image}/include/SDL','${SDL_image}/include'," -i config_unix.py
sed -e "/origlibdirs =/aoriglibdirs += '${SDL_image}/lib'," -i config_unix.py
sed -e "/origincdirs =/a'${SDL_mixer}/include/SDL','${SDL_mixer}/include'," -i config_unix.py
sed -e "/origlibdirs =/aoriglibdirs += '${SDL_mixer}/lib'," -i config_unix.py
sed -e "/origincdirs =/a'${SDL_ttf}/include/SDL','${SDL_ttf}/include'," -i config_unix.py
sed -e "/origlibdirs =/aoriglibdirs += '${SDL_ttf}/lib'," -i config_unix.py
sed -e "/origincdirs =/a'${numeric}/include/python2.5'," -i config_unix.py
@ -29,13 +32,14 @@ stdenv.mkDerivation {
# That `config.py' is really deeply broken.
sed -i Setup \
-e "s|^NUMERIC *=.*$|NUMERIC = -I${numeric}/include/python2.5|g"
-e "s|^NUMERIC *=.*$|NUMERIC = -I${numeric}/include/python2.5|g ;
s|^MIXER *=.*$|MIXER = -I${SDL_mixer}/include -L${SDL_mixer}/lib -lSDL_mixer|g"
'';
buildPhase = "yes Y | python setup.py build";
installPhase = "yes Y | python setup.py install --prefix=\${out} ";
meta = {
description = "
Python library for games.

View file

@ -4584,7 +4584,7 @@ let
pygame = import ../development/python-modules/pygame {
inherit fetchurl stdenv python pkgconfig SDL SDL_image
SDL_ttf numeric;
SDL_mixer SDL_ttf numeric;
};
pygobject = import ../development/python-modules/pygobject {