2019-06-14 10:04:27 +02:00
|
|
|
{ stdenv, fetchurl, lib, vdr
|
|
|
|
, libav, libcap, libvdpau
|
2019-06-20 21:01:58 +02:00
|
|
|
, xineLib, libjpeg, libextractor, mesa, libGLU
|
2019-06-14 10:04:27 +02:00
|
|
|
, libX11, libXext, libXrender, libXrandr
|
|
|
|
, makeWrapper
|
|
|
|
}: let
|
|
|
|
name = "vdr-xineliboutput-2.1.0";
|
|
|
|
|
|
|
|
makeXinePluginPath = l: lib.concatStringsSep ":" (map (p: "${p}/lib/xine/plugins") l);
|
|
|
|
|
|
|
|
self = stdenv.mkDerivation {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-06-17 18:48:48 +02:00
|
|
|
url = "mirror://sourceforge/project/xineliboutput/xineliboutput/${name}/${name}.tgz";
|
|
|
|
sha256 = "1phrxpaz8li7z0qy241spawalhcmwkv5hh3gdijbv4h7mm899yba";
|
2019-06-14 10:04:27 +02:00
|
|
|
};
|
|
|
|
|
2019-06-17 18:48:48 +02:00
|
|
|
# configure don't accept argument --prefix
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
postConfigure = ''
|
2019-06-14 10:04:27 +02:00
|
|
|
sed -i config.mak \
|
|
|
|
-e 's,XINEPLUGINDIR=/[^/]*/[^/]*/[^/]*/,XINEPLUGINDIR=/,'
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for f in $out/bin/*; do
|
|
|
|
wrapProgram $f \
|
|
|
|
--prefix XINE_PLUGIN_PATH ":" "${makeXinePluginPath [ "$out" xineLib ]}"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libav
|
|
|
|
libcap
|
|
|
|
libextractor
|
|
|
|
libjpeg
|
|
|
|
libGLU
|
|
|
|
libvdpau
|
|
|
|
libXext
|
|
|
|
libXrandr
|
|
|
|
libXrender
|
|
|
|
libX11
|
2019-06-20 21:01:58 +02:00
|
|
|
mesa
|
2019-06-14 10:04:27 +02:00
|
|
|
vdr
|
|
|
|
xineLib
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.requiredXinePlugins = [ xineLib self ];
|
|
|
|
|
|
|
|
meta = with lib;{
|
2019-06-17 18:48:48 +02:00
|
|
|
homepage = "https://sourceforge.net/projects/xineliboutput/";
|
|
|
|
description = "Xine-lib based software output device for VDR";
|
2019-06-14 10:04:27 +02:00
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
license = licenses.gpl2;
|
2019-06-17 18:48:48 +02:00
|
|
|
inherit (vdr.meta) platforms;
|
2019-06-14 10:04:27 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in self
|