mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
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 {
|
||||
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.
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue