* Added SDL, Simple DirectMedia Layer.
* Added NASM, the Netwide Assembler. * Added Generator, an emulator for Sega Genesis / Mega Drive machines. Built with XVideo patch. Strangely it crashes with a GDK error when started in normal mode. However, with the "-a" switch (arcade mode) it works, and subsequently switching back to windowed mode (Ctrl-F) also works. svn path=/nixpkgs/trunk/; revision=1509
This commit is contained in:
11
pkgs/development/libraries/SDL/default.nix
Normal file
11
pkgs/development/libraries/SDL/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{stdenv, fetchurl, x11}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "SDL-1.2.7";
|
||||
src = fetchurl {
|
||||
url = http://www.libsdl.org/release/SDL-1.2.7.tar.gz;
|
||||
md5 = "d29b34b6ba3ed213893fc9d8d35e357a";
|
||||
};
|
||||
buildInputs = [x11];
|
||||
patches = [./gcc-3.4.patch];
|
||||
}
|
||||
37
pkgs/development/libraries/SDL/gcc-3.4.patch
Normal file
37
pkgs/development/libraries/SDL/gcc-3.4.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
diff -rc SDL-orig/src/cpuinfo/SDL_cpuinfo.c SDL-1.2.7/src/cpuinfo/SDL_cpuinfo.c
|
||||
*** SDL-orig/src/cpuinfo/SDL_cpuinfo.c 2004-02-10 16:31:35.000000000 +0100
|
||||
--- SDL-1.2.7/src/cpuinfo/SDL_cpuinfo.c 2004-09-26 18:49:50.000000000 +0200
|
||||
***************
|
||||
*** 118,124 ****
|
||||
" movl %%edi,%%ebx\n"
|
||||
: "=m" (features)
|
||||
:
|
||||
! : "%eax", "%ebx", "%ecx", "%edx", "%edi"
|
||||
);
|
||||
#elif defined(_MSC_VER)
|
||||
__asm {
|
||||
--- 118,124 ----
|
||||
" movl %%edi,%%ebx\n"
|
||||
: "=m" (features)
|
||||
:
|
||||
! : "%eax", "%ecx", "%edx", "%edi"
|
||||
);
|
||||
#elif defined(_MSC_VER)
|
||||
__asm {
|
||||
***************
|
||||
*** 153,159 ****
|
||||
" movl %%edi,%%ebx\n"
|
||||
: "=m" (features)
|
||||
:
|
||||
! : "%eax", "%ebx", "%ecx", "%edx", "%edi"
|
||||
);
|
||||
#elif defined(_MSC_VER)
|
||||
__asm {
|
||||
--- 153,159 ----
|
||||
" movl %%edi,%%ebx\n"
|
||||
: "=m" (features)
|
||||
:
|
||||
! : "%eax", "%ecx", "%edx", "%edi"
|
||||
);
|
||||
#elif defined(_MSC_VER)
|
||||
__asm {
|
||||
Reference in New Issue
Block a user