2011-07-25 21:10:13 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gstPluginsBase, bzip2, yasm
|
|
|
|
, useInternalFfmpeg ? false, ffmpeg ? null }:
|
2008-11-11 12:08:28 +00:00
|
|
|
|
2009-04-22 00:18:09 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-07-25 21:10:13 +01:00
|
|
|
name = "gst-ffmpeg-0.10.12";
|
2008-11-11 12:08:28 +00:00
|
|
|
|
2009-04-22 00:18:09 +01:00
|
|
|
src = fetchurl {
|
2009-09-30 13:45:15 +01:00
|
|
|
urls = [
|
|
|
|
"http://gstreamer.freedesktop.org/src/gst-ffmpeg/${name}.tar.bz2"
|
|
|
|
"mirror://gentoo/distfiles/${name}.tar.bz2"
|
|
|
|
];
|
2011-07-25 21:10:13 +01:00
|
|
|
sha256 = "0fyppl8q18g71jd2r0mbiqk8hhrdxq43dglma06mxyjb5c80fxxi";
|
2009-04-22 00:18:09 +01:00
|
|
|
};
|
2008-11-11 12:08:28 +00:00
|
|
|
|
2011-07-25 21:10:13 +01: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 12:08:28 +00:00
|
|
|
|
2011-07-25 21:10:13 +01:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig bzip2 gstPluginsBase ]
|
|
|
|
++ (if useInternalFfmpeg then [ yasm ] else [ ffmpeg ]);
|
2008-11-11 12:08:28 +00:00
|
|
|
|
2009-04-22 00:18:09 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://gstreamer.freedesktop.org/releases/gst-ffmpeg";
|
|
|
|
description = "GStreamer's plug-in using FFmpeg";
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
|
|
|
}
|