Skip to content

Commit 5e30d97

Browse files
authored
aocl-utils: 4.2 -> 5.0 (#348059)
2 parents ea2a73f + ed49a12 commit 5e30d97

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
1-
{ lib, stdenv, fetchFromGitHub, cmake } :
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
cmake,
6+
}:
27

38
stdenv.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";
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)