mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
xine-lib: ffmpeg_3 -> ffmpeg
And refactor.
This commit is contained in:
parent
8518bfeae1
commit
f223a67c65
@ -1,7 +1,27 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, xorg, alsaLib, libGLU, libGL, aalib
|
{ lib
|
||||||
, libvorbis, libtheora, speex, zlib, perl, ffmpeg_3
|
, stdenv
|
||||||
, flac, libcaca, libpulseaudio, libmng, libcdio, libv4l, vcdimager
|
, fetchurl
|
||||||
, libmpcdec, ncurses
|
, fetchpatch
|
||||||
|
, aalib
|
||||||
|
, alsaLib
|
||||||
|
, ffmpeg
|
||||||
|
, flac
|
||||||
|
, libGL
|
||||||
|
, libGLU
|
||||||
|
, libcaca
|
||||||
|
, libcdio
|
||||||
|
, libmng
|
||||||
|
, libmpcdec
|
||||||
|
, libpulseaudio
|
||||||
|
, libtheora
|
||||||
|
, libv4l
|
||||||
|
, libvorbis
|
||||||
|
, perl
|
||||||
|
, pkg-config
|
||||||
|
, speex
|
||||||
|
, vcdimager
|
||||||
|
, xorg
|
||||||
|
, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -10,27 +30,58 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/xine/xine-lib-${version}.tar.xz";
|
url = "mirror://sourceforge/xine/xine-lib-${version}.tar.xz";
|
||||||
sha256 = "01bhq27g5zbgy6y36hl7lajz1nngf68vs4fplxgh98fx20fv4lgg";
|
sha256 = "sha256-71GyHRDdoQRfp9cRvZFxz9rwpaKHQjO88W/98o7AcAU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config perl ];
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
perl
|
||||||
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
xorg.libX11 xorg.libXv xorg.libXinerama xorg.libxcb xorg.libXext
|
aalib
|
||||||
alsaLib libGLU libGL aalib libvorbis libtheora speex perl ffmpeg_3 flac
|
alsaLib
|
||||||
libcaca libpulseaudio libmng libcdio libv4l vcdimager libmpcdec ncurses
|
ffmpeg
|
||||||
|
flac
|
||||||
|
libGL
|
||||||
|
libGLU
|
||||||
|
libcaca
|
||||||
|
libcdio
|
||||||
|
libmng
|
||||||
|
libmpcdec
|
||||||
|
libpulseaudio
|
||||||
|
libtheora
|
||||||
|
libv4l
|
||||||
|
libvorbis
|
||||||
|
perl
|
||||||
|
speex
|
||||||
|
vcdimager
|
||||||
|
zlib
|
||||||
|
] ++ (with xorg; [
|
||||||
|
libX11
|
||||||
|
libXext
|
||||||
|
libXinerama
|
||||||
|
libXv
|
||||||
|
libxcb
|
||||||
|
]);
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# splitting path plugin
|
||||||
|
(fetchpatch {
|
||||||
|
name = "0001-fix-XINE_PLUGIN_PATH-splitting.patch";
|
||||||
|
url = "https://sourceforge.net/p/xine/mailman/attachment/32394053-5e27-6558-f0c9-49e0da0bc3cc%40gmx.de/1/";
|
||||||
|
sha256 = "sha256-LJedxrD8JWITDo9pnS9BCmy7wiPTyJyoQ1puX49tOls=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_LDFLAGS = "-lxcb-shm";
|
NIX_LDFLAGS = "-lxcb-shm";
|
||||||
|
|
||||||
propagatedBuildInputs = [zlib];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://xine.sourceforge.net/home";
|
homepage = "http://www.xinehq.de/";
|
||||||
description = "A high-performance, portable and reusable multimedia playback engine";
|
description = "A high-performance, portable and reusable multimedia playback engine";
|
||||||
platforms = platforms.linux;
|
|
||||||
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
||||||
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user