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