2011-07-25 19:07:36 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-29 13:33:25 +00:00
|
|
|
version = "0.5.1";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libmpeg2";
|
2014-08-29 13:33:25 +00:00
|
|
|
|
2011-07-25 19:07:36 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://libmpeg2.sourceforge.net/files/${pname}-${version}.tar.gz";
|
2011-07-25 19:07:36 +00:00
|
|
|
sha256 = "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny";
|
|
|
|
};
|
|
|
|
|
2015-03-05 20:47:40 +00:00
|
|
|
# Otherwise clang fails with 'duplicate symbol ___sputc'
|
2019-10-26 15:39:27 +00:00
|
|
|
buildFlags = stdenv.lib.optional stdenv.isDarwin "CFLAGS=-std=gnu89";
|
2015-03-05 20:47:40 +00:00
|
|
|
|
2011-07-25 19:07:36 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://libmpeg2.sourceforge.net/";
|
2011-07-25 19:07:36 +00:00
|
|
|
description = "A free library for decoding mpeg-2 and mpeg-1 video streams";
|
2014-08-29 13:33:25 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2019-12-05 07:29:48 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2011-07-25 19:07:36 +00:00
|
|
|
};
|
|
|
|
}
|