2018-03-17 08:47:55 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, xorg, libGL_driver }:
|
2010-12-27 10:30:52 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-17 08:47:55 -07:00
|
|
|
name = "libvdpau-${version}";
|
2019-02-28 11:15:21 -08:00
|
|
|
version = "1.2";
|
2013-02-02 07:18:48 -08:00
|
|
|
|
2010-12-27 10:30:52 -08:00
|
|
|
src = fetchurl {
|
2019-02-28 11:15:21 -08:00
|
|
|
url = "https://gitlab.freedesktop.org/vdpau/libvdpau/uploads/14b620084c027d546fa0b3f083b800c6/${name}.tar.bz2";
|
|
|
|
sha256 = "6a499b186f524e1c16b4f5b57a6a2de70dfceb25c4ee546515f26073cd33fa06";
|
2010-12-27 10:30:52 -08:00
|
|
|
};
|
|
|
|
|
2016-08-28 17:30:01 -07:00
|
|
|
outputs = [ "out" "dev" ];
|
2015-10-06 08:34:08 -07:00
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-12-30 19:40:47 -08:00
|
|
|
buildInputs = with xorg; [ xorgproto 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
|
2018-03-17 08:47:55 -07:00
|
|
|
"--with-module-dir=${libGL_driver.driverLink}/lib/vdpau";
|
2016-01-24 15:56:41 -08:00
|
|
|
|
2019-02-05 16:27:39 -08:00
|
|
|
NIX_LDFLAGS = if stdenv.isDarwin then "-lX11" else null;
|
|
|
|
|
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; {
|
2018-01-05 11:42:46 -08:00
|
|
|
homepage = https://people.freedesktop.org/~aplattner/vdpau/;
|
2010-12-27 10:30:52 -08:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|