Unverified Commit 5e30d970 authored by Markus Kowalewski's avatar Markus Kowalewski Committed by GitHub
Browse files

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

parents ea2a73f1 ed49a126
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
{ 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";
+14 −0
Original line number Diff line number Diff line
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@