File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed
pkgs/by-name/ao/aocl-utils Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 1- { lib , stdenv , fetchFromGitHub , cmake } :
1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ cmake ,
6+ } :
27
38stdenv . mkDerivation rec {
49 pname = "aocl-utils" ;
5- version = "4.2 " ;
10+ version = "5.0 " ;
611
712 src = fetchFromGitHub {
813 owner = "amd" ;
914 repo = "aocl-utils" ;
1015 rev = version ;
11- hash = "sha256-tjmCgVSU4XjBhbKMUY3hsvj3bvuXvVdf5Bqva5nr1tc =" ;
16+ hash = "sha256-96j3Sw+Ts+CZzjPpUlt8cRYO5z0iASo+W/x1nrrAyQE =" ;
1217 } ;
1318
19+ patches = [ ./pkg-config.patch ] ;
20+
1421 nativeBuildInputs = [ cmake ] ;
1522
23+ cmakeFlags = [
24+ ( lib . cmakeBool "AU_BUILD_STATIC_LIBS" stdenv . hostPlatform . isStatic )
25+ ( lib . cmakeBool "AU_BUILD_SHARED_LIBS" ( ! stdenv . hostPlatform . isStatic ) )
26+ ] ;
27+
1628 meta = with lib ; {
1729 description = "Interface to all AMD AOCL libraries to access CPU features" ;
1830 homepage = "https://github.com/amd/aocl-utils" ;
Original file line number Diff line number Diff line change 1+ diff --git a/CMake/aocl-utils.pc.in b/CMake/aocl-utils.pc.in
2+ index 18ce5eb..bcdc39b 100644
3+ --- a/CMake/aocl-utils.pc.in
4+ +++ b/CMake/aocl-utils.pc.in
5+ @@ -1,7 +1,7 @@
6+ prefix=@CMAKE_INSTALL_PREFIX@
7+ exec_prefix=${prefix}
8+ - libdir=${prefix}/@AU_INSTALL_LIB_DIR@
9+ - includedir=${prefix}/@AU_INSTALL_INCLUDE_DIR@
10+ + libdir=@AU_INSTALL_LIB_DIR@
11+ + includedir=@AU_INSTALL_INCLUDE_DIR@
12+
13+ Name: @PROJECT_FULL_NAME@
14+ Description: @AU_DESCRIPTION@
You can’t perform that action at this time.
0 commit comments