2011-07-25 20:07:36 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-29 14:33:25 +01:00
|
|
|
version = "0.5.1";
|
|
|
|
name = "libmpeg2-${version}";
|
|
|
|
|
2011-07-25 20:07:36 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libmpeg2.sourceforge.net/files/${name}.tar.gz";
|
|
|
|
sha256 = "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny";
|
|
|
|
};
|
|
|
|
|
2015-03-05 20:47:40 +00:00
|
|
|
# Otherwise clang fails with 'duplicate symbol ___sputc'
|
|
|
|
buildFlags = stdenv.lib.optionalString stdenv.isDarwin "CFLAGS=-std=gnu89";
|
|
|
|
|
2011-07-25 20:07:36 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://libmpeg2.sourceforge.net/;
|
|
|
|
description = "A free library for decoding mpeg-2 and mpeg-1 video streams";
|
2014-08-29 14:33:25 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2014-09-26 22:44:29 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2011-07-25 20:07:36 +01:00
|
|
|
};
|
|
|
|
}
|