2014-10-23 02:31:14 +02:00
|
|
|
{ stdenv, fetchsvn, SDL, autoconf, automake, libtool, gtk, m4, pkgconfig, mesa, makeWrapper }:
|
2011-03-28 20:58:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-06-09 04:41:44 +02:00
|
|
|
name = "smpeg-svn${version}";
|
2011-03-28 20:58:49 +02:00
|
|
|
version = "390";
|
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = svn://svn.icculus.org/smpeg/trunk;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0ynwn7ih5l2b1kpzpibns9bb9wzfjak7mgrb1ji0dkn2q5pv6lr0";
|
|
|
|
};
|
|
|
|
|
2012-09-27 01:29:53 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-10-23 02:31:14 +02:00
|
|
|
buildInputs = [ SDL gtk mesa ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool m4 pkgconfig makeWrapper ];
|
2011-03-28 20:58:49 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
touch NEWS AUTHORS ChangeLog
|
2012-09-27 01:29:53 +02:00
|
|
|
sh autogen.sh
|
2011-03-28 20:58:49 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
2014-10-23 02:31:14 +02:00
|
|
|
|
|
|
|
wrapProgram $out/bin/smpeg-config \
|
|
|
|
--prefix PATH ":" "${pkgconfig}/bin" \
|
|
|
|
--prefix PKG_CONFIG_PATH ":" "${SDL}/lib/pkgconfig"
|
2011-03-28 20:58:49 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://icculus.org/smpeg/;
|
|
|
|
description = "MPEG decoding library";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-03-28 20:58:49 +02:00
|
|
|
};
|
|
|
|
}
|