* 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:
13
pkgs/misc/emulators/generator/default.nix
Normal file
13
pkgs/misc/emulators/generator/default.nix
Normal 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];
|
||||
}
|
||||
20
pkgs/misc/emulators/generator/soundcard.patch
Normal file
20
pkgs/misc/emulators/generator/soundcard.patch
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user