aocl-utils: 4.2 -> 5.0

This commit is contained in:
Markus Kowalewski 2024-10-12 11:15:28 +02:00
parent c636130b36
commit 05f9c44a02
2 changed files with 23 additions and 2 deletions

View File

@ -2,17 +2,24 @@
stdenv.mkDerivation rec {
pname = "aocl-utils";
version = "4.2";
version = "5.0";
src = fetchFromGitHub {
owner = "amd";
repo = "aocl-utils";
rev = version;
hash = "sha256-tjmCgVSU4XjBhbKMUY3hsvj3bvuXvVdf5Bqva5nr1tc=";
hash = "sha256-96j3Sw+Ts+CZzjPpUlt8cRYO5z0iASo+W/x1nrrAyQE=";
};
patches = [ ./pkg-config.patch ];
nativeBuildInputs = [ cmake ];
cmakeFlags = [
(lib.cmakeBool "AU_BUILD_STATIC_LIBS" stdenv.hostPlatform.isStatic)
(lib.cmakeBool "AU_BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
];
meta = with lib; {
description = "Interface to all AMD AOCL libraries to access CPU features";
homepage = "https://github.com/amd/aocl-utils";

View File

@ -0,0 +1,14 @@
diff --git a/CMake/aocl-utils.pc.in b/CMake/aocl-utils.pc.in
index 18ce5eb..bcdc39b 100644
--- a/CMake/aocl-utils.pc.in
+++ b/CMake/aocl-utils.pc.in
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
-libdir=${prefix}/@AU_INSTALL_LIB_DIR@
-includedir=${prefix}/@AU_INSTALL_INCLUDE_DIR@
+libdir=@AU_INSTALL_LIB_DIR@
+includedir=@AU_INSTALL_INCLUDE_DIR@
Name: @PROJECT_FULL_NAME@
Description: @AU_DESCRIPTION@