forked from mirrors/nixpkgs
PyGame: Use SDL_mixer.
svn path=/nixpkgs/trunk/; revision=12977
This commit is contained in:
parent
c82c0b17f1
commit
b7ba44dff3
|
@ -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 {
|
stdenv.mkDerivation {
|
||||||
name = "pygame-1.7";
|
name = "pygame-1.7";
|
||||||
|
@ -14,6 +15,8 @@ stdenv.mkDerivation {
|
||||||
export LOCALBASE=///
|
export LOCALBASE=///
|
||||||
sed -e "/origincdirs =/a'${SDL_image}/include/SDL','${SDL_image}/include'," -i config_unix.py
|
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 "/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 "/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 "/origlibdirs =/aoriglibdirs += '${SDL_ttf}/lib'," -i config_unix.py
|
||||||
sed -e "/origincdirs =/a'${numeric}/include/python2.5'," -i config_unix.py
|
sed -e "/origincdirs =/a'${numeric}/include/python2.5'," -i config_unix.py
|
||||||
|
@ -29,7 +32,8 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
# That `config.py' is really deeply broken.
|
# That `config.py' is really deeply broken.
|
||||||
sed -i Setup \
|
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";
|
buildPhase = "yes Y | python setup.py build";
|
||||||
|
|
|
@ -4584,7 +4584,7 @@ let
|
||||||
|
|
||||||
pygame = import ../development/python-modules/pygame {
|
pygame = import ../development/python-modules/pygame {
|
||||||
inherit fetchurl stdenv python pkgconfig SDL SDL_image
|
inherit fetchurl stdenv python pkgconfig SDL SDL_image
|
||||||
SDL_ttf numeric;
|
SDL_mixer SDL_ttf numeric;
|
||||||
};
|
};
|
||||||
|
|
||||||
pygobject = import ../development/python-modules/pygobject {
|
pygobject = import ../development/python-modules/pygobject {
|
||||||
|
|
Loading…
Reference in a new issue