[libpcap] Fix incorrect library name in libpcap.pc of non-windows build (#30398)

* [libpcap] Fix incorrect library name in libpcap.pc of non-windows build

* update version
This commit is contained in:
Lily Wang 2023-03-25 13:03:38 +08:00 committed by GitHub
parent 2e1322f775
commit 5dfb5ff680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View File

@ -10,10 +10,10 @@ index b83fbbd..2f675d1 100644
-# pcap-config and process man pages and arrange that they be installed.
-if(NOT MSVC)
+# Generate libpcap.pc
+if(BUILD_SHARED_LIBS)
+ set(PACKAGE_NAME ${LIBRARY_NAME})
+else()
+if(MSVC AND NOT BUILD_SHARED_LIBS)
+ set(PACKAGE_NAME ${LIBRARY_NAME}_static)
+else()
+ set(PACKAGE_NAME ${LIBRARY_NAME})
+endif()
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "\${prefix}")

View File

@ -1,9 +1,10 @@
{
"name": "libpcap",
"version-semver": "1.10.1",
"port-version": 2,
"port-version": 3,
"description": "A portable C/C++ library for network traffic capture",
"homepage": "https://www.tcpdump.org/",
"license": "BSD-3-Clause",
"supports": "!uwp",
"dependencies": [
{

View File

@ -4286,7 +4286,7 @@
},
"libpcap": {
"baseline": "1.10.1",
"port-version": 2
"port-version": 3
},
"libpff": {
"baseline": "2021-11-14",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6cf3667c0320e2ff5d92d45e91b07fb3bf2fe05e",
"version-semver": "1.10.1",
"port-version": 3
},
{
"git-tree": "b21dafcbcbd4a428b3800a6a686a473db8625ca6",
"version-semver": "1.10.1",