* 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:
Eelco Dolstra
2004-09-26 18:12:51 +00:00
parent 09e3335664
commit dc29a4ac48
7 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
{stdenv, fetchurl, gtk, SDL, nasm}:
stdenv.mkDerivation {
name = "generator-0.35-cbiere";
src = fetchurl {
url = http://www.ghostwhitecrab.com/generator/generator-0.35-cbiere.tar.bz2;
md5 = "6ec4379d8c6c794ec59b9d61e73fb73d";
};
configureFlags = "--with-gtk --with-raze --with-sdl-audio";
buildInputs = [gtk SDL nasm];
# Only required when not using SDL audio.
# patches = [./soundcard.patch];
}

View File

@@ -0,0 +1,20 @@
diff -rc generator-orig/main/gensoundp-unix.c generator-0.35-cbiere/main/gensoundp-unix.c
*** generator-orig/main/gensoundp-unix.c 2004-09-26 19:07:44.000000000 +0200
--- generator-0.35-cbiere/main/gensoundp-unix.c 2004-09-26 19:07:56.000000000 +0200
***************
*** 196,202 ****
#include <soundcard.h>
#else
! #ifdef HAVE_SOUNDCARD_H
#include <sys/soundcard.h>
#endif
--- 196,202 ----
#include <soundcard.h>
#else
! #ifdef HAVE_SYS_SOUNDCARD_H
#include <sys/soundcard.h>
#endif