Adding GMU, a music player for small portable devices, written in SDL.

svn path=/nixpkgs/trunk/; revision=26266
This commit is contained in:
Lluís Batlle i Rossell 2011-03-10 22:20:35 +00:00
parent e7ed35ecd8
commit d58c5e2821
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{stdenv, fetchurl, SDL, SDL_gfx, SDL_image, tremor, flac, mpg123, libmikmod
, speex
, keymap ? "newdefault"
, conf ? "unknown"
}:
stdenv.mkDerivation rec {
name = "gmu-0.7.2";
src = fetchurl {
url = http://wejp.k.vu/files/gmu-0.7.2.tar.gz;
sha256 = "0gvhwhhlj64lc425wqch4g6v59ldd5i3rxll3zdcrdgk2vkh8nys";
};
buildInputs = [ SDL SDL_gfx SDL_image tremor flac mpg123 libmikmod speex ];
NIX_LDFLAGS = "-lgcc_s";
preBuild = ''
makeFlags="$makeFlags PREFIX=$out"
'';
postInstall = ''
cp ${keymap}.keymap $out/share/gmu/default.keymap
cp gmuinput.${conf}.conf $out/share/gmu/gmuinput.conf
ensureDir $out/etc/gmu
cp gmu.${conf}.conf $out/etc/gmu/gmu.conf
'';
meta = {
homepage = http://wejp.k.vu/projects/gmu;
description = "Open source music player for portable gaming consoles and handhelds";
license = "GPLv2";
};
}

View File

@ -0,0 +1,22 @@
{ stdenv, fetchsvn, autoconf, automake, libtool, pkgconfig, libogg }:
stdenv.mkDerivation rec {
name = "tremor-svn-${src.rev}";
src = fetchsvn {
url = http://svn.xiph.org/trunk/Tremor;
rev = "17866";
sha256 = "161411cbefa1527da7a8fc087e78d8e21d19143d3a6eb42fb281e5026aad7568";
};
buildInputs = [ autoconf automake libtool pkgconfig ];
propagatedBuildInputs = [ libogg ];
preConfigure = "autoreconf -vfi";
meta = {
homepage = http://xiph.org/tremor/;
description = "Fixed-point version of the Ogg Vorbis decoder";
license = "BSD";
};
}

View File

@ -4171,6 +4171,8 @@ let
tokyocabinet = callPackage ../development/libraries/tokyo-cabinet { };
tremor = callPackage ../development/libraries/tremor { };
unicap = callPackage ../development/libraries/unicap {};
unixODBC = callPackage ../development/libraries/unixODBC { };
@ -6099,6 +6101,8 @@ let
gkrellm = callPackage ../applications/misc/gkrellm { };
gmu = callPackage ../applications/audio/gmu { };
gnash = callPackage ../applications/video/gnash {
inherit (gnome) gtkglext;
inherit (gst_all) gstreamer gstPluginsBase gstPluginsGood gstFfmpeg;