From d58c5e2821018930d253ef090ced322cf4dd53e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 10 Mar 2011 22:20:35 +0000 Subject: [PATCH] Adding GMU, a music player for small portable devices, written in SDL. svn path=/nixpkgs/trunk/; revision=26266 --- pkgs/applications/audio/gmu/default.nix | 35 +++++++++++++++++++ pkgs/development/libraries/tremor/default.nix | 22 ++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 3 files changed, 61 insertions(+) create mode 100644 pkgs/applications/audio/gmu/default.nix create mode 100644 pkgs/development/libraries/tremor/default.nix diff --git a/pkgs/applications/audio/gmu/default.nix b/pkgs/applications/audio/gmu/default.nix new file mode 100644 index 000000000000..bdda1c6d8d96 --- /dev/null +++ b/pkgs/applications/audio/gmu/default.nix @@ -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"; + }; +} diff --git a/pkgs/development/libraries/tremor/default.nix b/pkgs/development/libraries/tremor/default.nix new file mode 100644 index 000000000000..3709172911ec --- /dev/null +++ b/pkgs/development/libraries/tremor/default.nix @@ -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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 95a84044e13c..3741bcb5028b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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;