miniupnpc: add Homepage url, version and desc in miniupnpc.pc generated by CMake build

This commit is contained in:
Thomas Bernard 2022-05-02 01:33:29 +02:00
parent 5a398006b9
commit 9350846757
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,8 @@ project (miniupnpc C)
set (MINIUPNPC_VERSION 2.2.3) set (MINIUPNPC_VERSION 2.2.3)
set (MINIUPNPC_API_VERSION 17) 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_STATIC "Build static library" TRUE)
option (UPNPC_BUILD_SHARED "Build shared library" TRUE) option (UPNPC_BUILD_SHARED "Build shared library" TRUE)

View File

@ -11,8 +11,8 @@ libdir="${prefix}/lib"
includedir="${prefix}/include" includedir="${prefix}/include"
Name: @PROJECT_NAME@ Name: @PROJECT_NAME@
Description: @CMAKE_PROJECT_DESCRIPTION@ Description: @MINIUPNPC_DESCRIPTION@
URL: @CMAKE_PROJECT_HOMEPAGE_URL@ URL: @MINIUPNPC_HOMEPAGE_URL@
Version: @PROJECT_VERSION@ Version: @MINIUPNPC_VERSION@
Libs: -L"${libdir}" -lminiupnpc Libs: -L"${libdir}" -lminiupnpc
Cflags: -I"${includedir}" Cflags: -I"${includedir}"