libvncserver: fix generated pkg-config file

This commit is contained in:
K900 2024-08-22 16:16:06 +03:00
parent 5e4cafbcea
commit 1a9be38901
2 changed files with 33 additions and 0 deletions

View File

@ -25,6 +25,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-kqVZeCTp+Z6BtB6nzkwmtkJ4wtmjlSQBg05lD02cVvQ=";
};
patches = [
# fix generated pkg-config files
./pkgconfig.patch
];
nativeBuildInputs = [
cmake
];

View File

@ -0,0 +1,28 @@
diff --git a/libvncclient.pc.cmakein b/libvncclient.pc.cmakein
index ceeda39d..2516e643 100644
--- a/libvncclient.pc.cmakein
+++ b/libvncclient.pc.cmakein
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
-libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
-includedir=@CMAKE_INSTALL_PREFIX@/include
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: LibVNCClient
Description: A library for easy implementation of a VNC client.
diff --git a/libvncserver.pc.cmakein b/libvncserver.pc.cmakein
index 33ec6685..57244742 100644
--- a/libvncserver.pc.cmakein
+++ b/libvncserver.pc.cmakein
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
-libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
-includedir=@CMAKE_INSTALL_PREFIX@/include
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
Name: LibVNCServer
Description: A library for easy implementation of a VNC server.