2013-12-14 00:14:50 -08:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gst_plugins_base, bzip2, yasm, orc
|
2011-07-25 13:10:13 -07:00
|
|
|
, useInternalFfmpeg ? false, ffmpeg ? null }:
|
2008-11-11 04:08:28 -08:00
|
|
|
|
2009-04-21 16:18:09 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-14 00:14:50 -08:00
|
|
|
name = "gst-ffmpeg-0.10.13";
|
2008-11-11 04:08:28 -08:00
|
|
|
|
2009-04-21 16:18:09 -07:00
|
|
|
src = fetchurl {
|
2009-09-30 05:45:15 -07:00
|
|
|
urls = [
|
|
|
|
"http://gstreamer.freedesktop.org/src/gst-ffmpeg/${name}.tar.bz2"
|
|
|
|
"mirror://gentoo/distfiles/${name}.tar.bz2"
|
|
|
|
];
|
2013-12-14 00:14:50 -08:00
|
|
|
sha256 = "0qmvgwcfybci78sd73mhvm4bsb7l0xsk9yljrgik80g011ds1z3n";
|
2009-04-21 16:18:09 -07:00
|
|
|
};
|
2008-11-11 04:08:28 -08:00
|
|
|
|
2011-07-25 13:10:13 -07: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 04:08:28 -08:00
|
|
|
|
2011-07-25 13:10:13 -07:00
|
|
|
buildInputs =
|
2013-12-14 00:14:50 -08:00
|
|
|
[ pkgconfig bzip2 gst_plugins_base orc ]
|
2011-07-25 13:10:13 -07:00
|
|
|
++ (if useInternalFfmpeg then [ yasm ] else [ ffmpeg ]);
|
2008-11-11 04:08:28 -08:00
|
|
|
|
2009-04-21 16:18:09 -07:00
|
|
|
meta = {
|
|
|
|
homepage = "http://gstreamer.freedesktop.org/releases/gst-ffmpeg";
|
|
|
|
description = "GStreamer's plug-in using FFmpeg";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-04-21 16:18:09 -07:00
|
|
|
};
|
|
|
|
}
|