aboutsummaryrefslogtreecommitdiff
path: root/ports/x265
diff options
context:
space:
mode:
authorras0219 <533828+ras0219@users.noreply.github.com>2020-12-07 18:17:19 -0800
committerGitHub <noreply@github.com>2020-12-07 18:17:19 -0800
commitdd4421808cc9131a0a68e71d9c41b0b6b9ce06d3 (patch)
treedea4a8afd788b8e21d3c2a5a02b2a62ba54bb08a /ports/x265
parentced334b24dfc992ab0d1fd3af803dbf20481be25 (diff)
downloadvcpkg-dd4421808cc9131a0a68e71d9c41b0b6b9ce06d3.tar.gz
vcpkg-dd4421808cc9131a0a68e71d9c41b0b6b9ce06d3.zip
[vcpkg_fixup_pkgconfig] Handle spaces in path, do not validate individual libraries (#13126)
Diffstat (limited to 'ports/x265')
-rw-r--r--ports/x265/CONTROL2
-rw-r--r--ports/x265/portfile.cmake11
2 files changed, 12 insertions, 1 deletions
diff --git a/ports/x265/CONTROL b/ports/x265/CONTROL
index 58fe1b99e..269a4c30d 100644
--- a/ports/x265/CONTROL
+++ b/ports/x265/CONTROL
@@ -1,5 +1,5 @@
Source: x265
Version: 3.4
-Port-Version: 1
+Port-Version: 2
Homepage: https://github.com/videolan/x265
Description: x265 is a H.265 / HEVC video encoder application library, designed to encode video or images into an H.265 / HEVC encoded bitstream.
diff --git a/ports/x265/portfile.cmake b/ports/x265/portfile.cmake
index 754e4127f..01fa6688d 100644
--- a/ports/x265/portfile.cmake
+++ b/ports/x265/portfile.cmake
@@ -63,6 +63,17 @@ if(VCPKG_TARGET_IS_MINGW AND ENABLE_SHARED)
endif()
if(UNIX)
+ foreach(FILE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/x265.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/x265.pc")
+ if(EXISTS "${FILE}")
+ file(READ "${FILE}" _contents)
+ string(REPLACE " -lstdc++" "" _contents "${_contents}")
+ string(REPLACE " -lc++" "" _contents "${_contents}")
+ string(REPLACE " -lgcc_s" "" _contents "${_contents}")
+ string(REPLACE " -lgcc" "" _contents "${_contents}")
+ string(REPLACE " -lrt" "" _contents "${_contents}")
+ file(WRITE "${FILE}" "${_contents}")
+ endif()
+ endforeach()
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES numa)
else()
vcpkg_fixup_pkgconfig()