aocl-utils: 4.2 -> 5.0 (#348059)

This commit is contained in:
Markus Kowalewski
2024-10-16 09:51:41 +02:00
committed by GitHub
2 changed files with 29 additions and 3 deletions
+15 -3
View File
@@ -1,18 +1,30 @@
{ lib, stdenv, fetchFromGitHub, cmake } :
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
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";
@@ -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@