2018-02-24 12:06:44 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, xorg, libGL }:
|
2010-12-27 18:30:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-01 09:57:51 +01:00
|
|
|
name = "libvdpau-1.1.1";
|
2013-02-02 15:18:48 +00:00
|
|
|
|
2010-12-27 18:30:52 +00:00
|
|
|
src = fetchurl {
|
2018-01-05 19:42:46 +00:00
|
|
|
url = "https://people.freedesktop.org/~aplattner/vdpau/${name}.tar.bz2";
|
2015-09-01 09:57:51 +01:00
|
|
|
sha256 = "857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736";
|
2010-12-27 18:30:52 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2015-10-06 16:34:08 +01:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = with xorg; [ dri2proto libXext ];
|
2012-07-02 15:14:14 +01:00
|
|
|
|
2014-07-02 21:30:28 +01:00
|
|
|
propagatedBuildInputs = [ xorg.libX11 ];
|
2013-11-16 20:25:57 +00:00
|
|
|
|
2016-02-07 13:23:24 +00:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.isLinux
|
2018-02-24 12:06:44 +00:00
|
|
|
"--with-module-dir=${libGL.driverLink}/lib/vdpau";
|
2016-01-24 23:56:41 +00:00
|
|
|
|
2016-02-02 03:56:56 +00:00
|
|
|
installFlags = [ "moduledir=$(out)/lib/vdpau" ];
|
2016-01-24 23:56:41 +00:00
|
|
|
|
2014-07-02 21:30:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://people.freedesktop.org/~aplattner/vdpau/;
|
2010-12-27 18:30:52 +00:00
|
|
|
description = "Library to use the Video Decode and Presentation API for Unix (VDPAU)";
|
2014-12-25 08:42:31 +00:00
|
|
|
license = licenses.mit; # expat version
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.vcunat ];
|
2010-12-27 18:30:52 +00:00
|
|
|
};
|
|
|
|
}
|