Fix incorrect library name in jasper.pc (#31158)

This commit is contained in:
Mengna Li 2023-05-05 01:28:55 +08:00 committed by GitHub
parent 13a0b7ba8d
commit 1c0b81956d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,13 @@
diff --git a/build/jasper.pc.in b/build/jasper.pc.in
index a4ce38f..a9a7bc4 100644
--- a/build/jasper.pc.in
+++ b/build/jasper.pc.in
@@ -6,7 +6,7 @@ Name: JasPer
Description: Image Processing/Coding Tool Kit with JPEG-2000 Support
Version: @JAS_VERSION@
-Libs: -L${libdir} -ljasper
+Libs: -L${libdir} -ljasper@CMAKE_DEBUG_POSTFIX@
Requires.private: @JAS_PKGCONFIG_REQUIRES@
Cflags: -I${includedir}/jasper -I${includedir}
Cflags.private: -DLIBJASPER_STATIC_DEFINE

View File

@ -6,6 +6,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
no_stdc_check.patch
fix-library-name.patch
)
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
@ -42,4 +43,4 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST ${SOURCE_PATH}/LICENSE.txt)

View File

@ -1,7 +1,7 @@
{
"name": "jasper",
"version": "4.0.0",
"port-version": 1,
"port-version": 2,
"description": "Open source implementation of the JPEG-2000 Part-1 standard",
"homepage": "https://github.com/jasper-software/jasper",
"license": null,

View File

@ -3398,7 +3398,7 @@
},
"jasper": {
"baseline": "4.0.0",
"port-version": 1
"port-version": 2
},
"jbig2dec": {
"baseline": "0.19",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d7f51c26899ba9433a5a3ab92fc5b5887d5c764c",
"version": "4.0.0",
"port-version": 2
},
{
"git-tree": "1da5fa9a12bf207bf641f903856418e3aed7258d",
"version": "4.0.0",