2011-07-25 22:10:13 +02:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gstPluginsBase, bzip2, yasm
|
|
|
|
, useInternalFfmpeg ? false, ffmpeg ? null }:
|
2008-11-11 13:08:28 +01:00
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2011-07-25 22:10:13 +02:00
|
|
|
name = "gst-ffmpeg-0.10.12";
|
2008-11-11 13:08:28 +01:00
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
src = fetchurl {
|
2009-09-30 14:45:15 +02:00
|
|
|
urls = [
|
|
|
|
"http://gstreamer.freedesktop.org/src/gst-ffmpeg/${name}.tar.bz2"
|
|
|
|
"mirror://gentoo/distfiles/${name}.tar.bz2"
|
|
|
|
];
|
2011-07-25 22:10:13 +02:00
|
|
|
sha256 = "0fyppl8q18g71jd2r0mbiqk8hhrdxq43dglma06mxyjb5c80fxxi";
|
2009-04-22 01:18:09 +02:00
|
|
|
};
|
2008-11-11 13:08:28 +01:00
|
|
|
|
2011-07-25 22:10:13 +02:00
|
|
|
# Upstream strongly recommends against using --with-system-ffmpeg,
|
|
|
|
# but we do it anyway because we're so hardcore (and we don't want
|
|
|
|
# multiple copies of ffmpeg).
|
|
|
|
configureFlags = stdenv.lib.optionalString (!useInternalFfmpeg) "--with-system-ffmpeg";
|
2008-11-11 13:08:28 +01:00
|
|
|
|
2011-07-25 22:10:13 +02:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig bzip2 gstPluginsBase ]
|
|
|
|
++ (if useInternalFfmpeg then [ yasm ] else [ ffmpeg ]);
|
2008-11-11 13:08:28 +01:00
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "http://gstreamer.freedesktop.org/releases/gst-ffmpeg";
|
|
|
|
description = "GStreamer's plug-in using FFmpeg";
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
|
|
|
}
|