1 { lib, stdenv, fetchsvn, SDL, autoconf, automake, libtool, gtk2, m4, pkg-config, libGLU, libGL, makeWrapper }:
3 stdenv.mkDerivation rec {
4 name = "smpeg-svn${version}";
8 url = "svn://svn.icculus.org/smpeg/trunk";
10 sha256 = "0ynwn7ih5l2b1kpzpibns9bb9wzfjak7mgrb1ji0dkn2q5pv6lr0";
19 enableParallelBuilding = true;
21 buildInputs = [ SDL gtk2 libGLU libGL ];
23 nativeBuildInputs = [ autoconf automake libtool m4 pkg-config makeWrapper ];
26 touch NEWS AUTHORS ChangeLog
31 sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
32 -e 's,"SDL_mutex.h",<SDL/SDL_mutex.h>,' \
33 -e 's,"SDL_audio.h",<SDL/SDL_audio.h>,' \
34 -e 's,"SDL_thread.h",<SDL/SDL_thread.h>,' \
35 -e 's,"SDL_types.h",<SDL/SDL_types.h>,' \
36 $out/include/smpeg/*.h
38 wrapProgram $out/bin/smpeg-config \
39 --prefix PATH ":" "${pkg-config}/bin" \
40 --prefix PKG_CONFIG_PATH ":" "${SDL.dev}/lib/pkgconfig"
43 NIX_LDFLAGS = "-lX11";
46 homepage = "http://icculus.org/smpeg/";
47 description = "MPEG decoding library";
48 license = lib.licenses.gpl2Plus;
49 platforms = lib.platforms.unix;