Add amdadl-sdk: amd display library sdk, usefull for ati gpu statistics

This commit is contained in:
Jaka Hudoklin 2013-06-16 21:36:04 +00:00
parent 4817f34f2b
commit a826c359c2
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ fetchurl, stdenv, unzip }:
stdenv.mkDerivation rec {
version = "4.0";
name = "amdadl-sdk-${version}";
src = fetchurl {
url = "http://download2-developer.amd.com/amd/GPU/zip/ADL_SDK_${version}.zip";
sha256 = "4265ee2f265b69cc39b61e10f79741c1d799f4edb71dce14a7d88509fbec0efa";
};
buildInputs = [ unzip ];
doCheck = false;
unpackPhase = ''
unzip $src
'';
buildPhase = ''
#Build adlutil
cd adlutil
gcc main.c -o adlutil -DLINUX -ldl -I ../include/
cd ..
'';
installPhase = ''
#Install SDK
mkdir -p $out/bin
cp -r include "$out/"
cp "adlutil/adlutil" "$out/bin/adlutil"
#Fix modes
chmod -R 755 "$out/bin/"
'';
meta = with stdenv.lib; {
description = "API to access display driver functionality for ATI graphics cards";
homepage = http://developer.amd.com/tools/graphics-development/display-library-adl-sdk/;
license = licenses.amdadl;
maintainers = [ maintainers.offline ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}

View File

@ -22,6 +22,12 @@
url = "http://developer.amd.com/amd-license-agreement/"; url = "http://developer.amd.com/amd-license-agreement/";
}; };
amdadl = {
shortName = "amd-adl";
fullName = "amd-adl license";
url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/licenses/AMD-ADL?revision=1.1";
};
asl20 = { asl20 = {
shortName = "ASL2.0"; shortName = "ASL2.0";
fullName = "Apache Software License 2.0"; fullName = "Apache Software License 2.0";

View File

@ -3094,6 +3094,8 @@ let
### DEVELOPMENT / MISC ### DEVELOPMENT / MISC
amdadlsdk = callPackage ../development/misc/amdadl-sdk { };
amdappsdk26 = callPackage ../development/misc/amdapp-sdk { amdappsdk26 = callPackage ../development/misc/amdapp-sdk {
version = "2.6"; version = "2.6";
}; };