* Added the OpenAL sound library.
* Enabled (optional) 3D support in SDL. svn path=/nixpkgs/trunk/; revision=4594
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
{stdenv, fetchurl, x11}:
|
||||
{stdenv, fetchurl, x11, openglSupport ? false, mesa ? null}:
|
||||
|
||||
assert openglSupport -> mesa != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "SDL-1.2.9";
|
||||
@@ -6,7 +8,11 @@ stdenv.mkDerivation {
|
||||
url = http://www.libsdl.org/release/SDL-1.2.9.tar.gz;
|
||||
md5 = "80919ef556425ff82a8555ff40a579a0";
|
||||
};
|
||||
buildInputs = [x11];
|
||||
buildInputs = [
|
||||
x11
|
||||
(if openglSupport then mesa else null)
|
||||
];
|
||||
patches = [./no-cxx.patch];
|
||||
NIX_CFLAGS_COMPILE = "-DBITS_PER_LONG=32"; /* !!! hack around kernel header bug */
|
||||
inherit openglSupport;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user