From 935084675779e9ad2bab224810cd440ca8f9f460 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 2 May 2022 01:33:29 +0200 Subject: [PATCH] miniupnpc: add Homepage url, version and desc in miniupnpc.pc generated by CMake build --- miniupnpc/CMakeLists.txt | 2 ++ miniupnpc/miniupnpc.pc.in | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/miniupnpc/CMakeLists.txt b/miniupnpc/CMakeLists.txt index 56c97ab..d029acc 100644 --- a/miniupnpc/CMakeLists.txt +++ b/miniupnpc/CMakeLists.txt @@ -4,6 +4,8 @@ project (miniupnpc C) set (MINIUPNPC_VERSION 2.2.3) set (MINIUPNPC_API_VERSION 17) +set (MINIUPNPC_DESCRIPTION "UPnP IGD client lightweight library") +set (MINIUPNPC_HOMEPAGE_URL https://miniupnp.tuxfamily.org/) option (UPNPC_BUILD_STATIC "Build static library" TRUE) option (UPNPC_BUILD_SHARED "Build shared library" TRUE) diff --git a/miniupnpc/miniupnpc.pc.in b/miniupnpc/miniupnpc.pc.in index 155cf0f..2ba7c62 100644 --- a/miniupnpc/miniupnpc.pc.in +++ b/miniupnpc/miniupnpc.pc.in @@ -11,8 +11,8 @@ libdir="${prefix}/lib" includedir="${prefix}/include" Name: @PROJECT_NAME@ -Description: @CMAKE_PROJECT_DESCRIPTION@ -URL: @CMAKE_PROJECT_HOMEPAGE_URL@ -Version: @PROJECT_VERSION@ +Description: @MINIUPNPC_DESCRIPTION@ +URL: @MINIUPNPC_HOMEPAGE_URL@ +Version: @MINIUPNPC_VERSION@ Libs: -L"${libdir}" -lminiupnpc Cflags: -I"${includedir}"