2013-12-14 09:14:50 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gst_plugins_base, bzip2, yasm, orc
|
2011-07-25 22:10:13 +02:00
|
|
|
, useInternalFfmpeg ? false, ffmpeg ? null }:
|
2008-11-11 13:08:28 +01:00
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-14 09:14:50 +01:00
|
|
|
name = "gst-ffmpeg-0.10.13";
|
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"
|
|
|
|
];
|
2013-12-14 09:14:50 +01:00
|
|
|
sha256 = "0qmvgwcfybci78sd73mhvm4bsb7l0xsk9yljrgik80g011ds1z3n";
|
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 =
|
2013-12-14 09:14:50 +01:00
|
|
|
[ pkgconfig bzip2 gst_plugins_base orc ]
|
2011-07-25 22:10:13 +02:00
|
|
|
++ (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+";
|
|
|
|
};
|
|
|
|
}
|