aocl-utils: 4.2 -> 5.0
This commit is contained in:
parent
c636130b36
commit
05f9c44a02
@ -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";
|
||||
|
14
pkgs/by-name/ao/aocl-utils/pkg-config.patch
Normal file
14
pkgs/by-name/ao/aocl-utils/pkg-config.patch
Normal 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@
|
Loading…
Reference in New Issue
Block a user