Skip to content

Commit 05f9c44

Browse files
committed
aocl-utils: 4.2 -> 5.0
1 parent c636130 commit 05f9c44

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

pkgs/by-name/ao/aocl-utils/package.nix

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,24 @@
22

33
stdenv.mkDerivation rec {
44
pname = "aocl-utils";
5-
version = "4.2";
5+
version = "5.0";
66

77
src = fetchFromGitHub {
88
owner = "amd";
99
repo = "aocl-utils";
1010
rev = version;
11-
hash = "sha256-tjmCgVSU4XjBhbKMUY3hsvj3bvuXvVdf5Bqva5nr1tc=";
11+
hash = "sha256-96j3Sw+Ts+CZzjPpUlt8cRYO5z0iASo+W/x1nrrAyQE=";
1212
};
1313

14+
patches = [ ./pkg-config.patch ];
15+
1416
nativeBuildInputs = [ cmake ];
1517

18+
cmakeFlags = [
19+
(lib.cmakeBool "AU_BUILD_STATIC_LIBS" stdenv.hostPlatform.isStatic)
20+
(lib.cmakeBool "AU_BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
21+
];
22+
1623
meta = with lib; {
1724
description = "Interface to all AMD AOCL libraries to access CPU features";
1825
homepage = "https://github.com/amd/aocl-utils";
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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@

0 commit comments

Comments
 (0)