summary refs log tree commit diff
path: root/pkgs/development/libraries/smpeg/default.nix
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-28 18:58:49 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-28 18:58:49 +0000
commit497fc7bb94925f884a3ffd37f0660e2416be5d61 (patch)
treed4b6a4e4103051b1ace118f9732abb38c073078f /pkgs/development/libraries/smpeg/default.nix
parent3dcaa029ab5b2fa4d9740b401e5ca35d4c08d134 (diff)
downloadnixpkgs-497fc7bb94925f884a3ffd37f0660e2416be5d61.tar
nixpkgs-497fc7bb94925f884a3ffd37f0660e2416be5d61.tar.gz
nixpkgs-497fc7bb94925f884a3ffd37f0660e2416be5d61.tar.bz2
nixpkgs-497fc7bb94925f884a3ffd37f0660e2416be5d61.tar.lz
nixpkgs-497fc7bb94925f884a3ffd37f0660e2416be5d61.tar.xz
nixpkgs-497fc7bb94925f884a3ffd37f0660e2416be5d61.tar.zst
nixpkgs-497fc7bb94925f884a3ffd37f0660e2416be5d61.zip
Making btanks work (and adding smpeg).
svn path=/nixpkgs/trunk/; revision=26585
Diffstat (limited to 'pkgs/development/libraries/smpeg/default.nix')
-rw-r--r--pkgs/development/libraries/smpeg/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/libraries/smpeg/default.nix b/pkgs/development/libraries/smpeg/default.nix
new file mode 100644
index 00000000000..3e7baf77df8
--- /dev/null
+++ b/pkgs/development/libraries/smpeg/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchsvn, SDL, autoconf, automake, libtool, gtk, m4, pkgconfig, mesa }:
+
+stdenv.mkDerivation rec {
+  name = "smpeg-svn-${version}";
+  version = "390";
+
+  src = fetchsvn {
+    url = svn://svn.icculus.org/smpeg/trunk;
+    rev = version;
+    sha256 = "0ynwn7ih5l2b1kpzpibns9bb9wzfjak7mgrb1ji0dkn2q5pv6lr0";
+  };
+
+  buildInputs = [ SDL autoconf automake libtool gtk m4 pkgconfig mesa ];
+
+  preConfigure = ''
+    touch NEWS AUTHORS ChangeLog
+    autoreconf -fvi -I acinclude
+  '';
+
+  postInstall = ''
+    sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
+    -e 's,"SDL_mutex.h",<SDL/SDL_mutex.h>,' \
+    -e 's,"SDL_audio.h",<SDL/SDL_audio.h>,' \
+    -e 's,"SDL_thread.h",<SDL/SDL_thread.h>,' \
+    -e 's,"SDL_types.h",<SDL/SDL_types.h>,' \
+      $out/include/smpeg/*.h
+  '';
+
+  meta = {
+    homepage = http://icculus.org/smpeg/;
+    description = "MPEG decoding library";
+    license = "GPLv2+";
+  };
+}