* Updated SDL, NASM and Generator to the latest versions.

* Moved Generator to the misc/emulators directory.

svn path=/nixpkgs/trunk/; revision=4330
This commit is contained in:
Eelco Dolstra
2005-12-03 01:33:18 +00:00
parent 5da5239588
commit b6befed50e
5 changed files with 16 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
{stdenv, fetchurl, gtk, SDL, nasm}:
stdenv.mkDerivation {
name = "generator-0.35-cbiere-r2";
src = fetchurl {
url = http://www.ghostwhitecrab.com/generator/generator-0.35-cbiere-r2.tar.bz2;
md5 = "2076c20e0ad1b20d9ac15cab8cb12ad5";
};
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