aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2019-12-24 07:43:29 +0800
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2019-12-23 15:43:29 -0800
commit2ee03bab9f864cedbae44a1c8f68de5c358f7065 (patch)
treee58f66711c3a1d17b7d731070d5fdc595a268c92
parent795ecaefed9895d04a3b762c01f0627467d2f643 (diff)
downloadvcpkg-2ee03bab9f864cedbae44a1c8f68de5c358f7065.tar.gz
vcpkg-2ee03bab9f864cedbae44a1c8f68de5c358f7065.zip
[freerdp]Fix linux build, add dependency port glib. (#9176)
-rw-r--r--ports/freerdp/CONTROL4
-rw-r--r--ports/freerdp/fix-linux-build.patch13
-rw-r--r--ports/freerdp/portfile.cmake41
3 files changed, 38 insertions, 20 deletions
diff --git a/ports/freerdp/CONTROL b/ports/freerdp/CONTROL
index c5c3d657e..a88edc424 100644
--- a/ports/freerdp/CONTROL
+++ b/ports/freerdp/CONTROL
@@ -1,5 +1,5 @@
Source: freerdp
-Version: 2.0.0-rc4-2
+Version: 2.0.0-rc4-3
Homepage: https://github.com/FreeRDP/FreeRDP
Description: A free implementation of the Remote Desktop Protocol (RDP)
-Build-Depends: openssl
+Build-Depends: openssl, glib (!windows)
diff --git a/ports/freerdp/fix-linux-build.patch b/ports/freerdp/fix-linux-build.patch
new file mode 100644
index 000000000..92f2cd4c1
--- /dev/null
+++ b/ports/freerdp/fix-linux-build.patch
@@ -0,0 +1,13 @@
+diff --git a/winpr/tools/makecert-cli/CMakeLists.txt b/winpr/tools/makecert-cli/CMakeLists.txt
+index 48fda5b..4e15a22 100644
+--- a/winpr/tools/makecert-cli/CMakeLists.txt
++++ b/winpr/tools/makecert-cli/CMakeLists.txt
+@@ -42,7 +42,7 @@ add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
+
+ set(${MODULE_PREFIX}_LIBS winpr-tools)
+
+-target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS} winpr)
++target_link_libraries(${MODULE_NAME} ${OPENSSL_LIBRARIES} ${${MODULE_PREFIX}_LIBS} winpr)
+
+ set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools")
+
diff --git a/ports/freerdp/portfile.cmake b/ports/freerdp/portfile.cmake
index ca42af8a0..4386e37f4 100644
--- a/ports/freerdp/portfile.cmake
+++ b/ports/freerdp/portfile.cmake
@@ -1,5 +1,3 @@
-include(vcpkg_common_functions)
-
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO FreeRDP/FreeRDP
@@ -8,6 +6,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
DontInstallSystemRuntimeLibs.patch
+ fix-linux-build.patch
)
if(VCPKG_CRT_LINKAGE STREQUAL "static")
@@ -41,16 +40,23 @@ endif()
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
- file(RENAME "${CURRENT_PACKAGES_DIR}/lib/freerdp-client2.dll" "${CURRENT_PACKAGES_DIR}/bin/freerdp-client2.dll")
- file(RENAME "${CURRENT_PACKAGES_DIR}/lib/freerdp2.dll" "${CURRENT_PACKAGES_DIR}/bin/freerdp2.dll")
- file(RENAME "${CURRENT_PACKAGES_DIR}/lib/winpr-tools2.dll" "${CURRENT_PACKAGES_DIR}/bin/winpr-tools2.dll")
- file(RENAME "${CURRENT_PACKAGES_DIR}/lib/winpr2.dll" "${CURRENT_PACKAGES_DIR}/bin/winpr2.dll")
-
- file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/freerdp-client2.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/freerdp-client2.dll")
- file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/freerdp2.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/freerdp2.dll")
- file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/winpr-tools2.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/winpr-tools2.dll")
- file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/winpr2.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/winpr2.dll")
-else()
+ file(GLOB_RECURSE FREERDP_DLLS "${CURRENT_PACKAGES_DIR}/lib/*.dll")
+ foreach(FREERDP_DLL ${FREERDP_DLLS})
+ file(COPY ${FREERDP_DLL} DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
+ file(REMOVE ${FREERDP_DLL})
+ endforeach()
+
+ file(GLOB_RECURSE FREERDP_DLLS "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll")
+ foreach(FREERDP_DLL ${FREERDP_DLLS})
+ file(COPY ${FREERDP_DLL} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
+ file(REMOVE ${FREERDP_DLL})
+ endforeach()
+else()
+ file(GLOB_RECURSE FREERDP_TOOLS "${CURRENT_PACKAGES_DIR}/bin/*")
+ foreach(FREERDP_TOOL ${FREERDP_TOOLS})
+ file(COPY ${FREERDP_TOOL} DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
+ file(REMOVE ${FREERDP_TOOL})
+ endforeach()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
@@ -65,10 +71,9 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/FreeRDP-Client2_temp/FreeRDP-Cli
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/FreeRDP2_temp/FreeRDP2)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/WinPR2_temp/WinPR2 TARGET_PATH share/winpr)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
+ ${CURRENT_PACKAGES_DIR}/debug/share
+ ${CURRENT_PACKAGES_DIR}/debug/lib/cmake
+ ${CURRENT_PACKAGES_DIR}/lib/cmake)
-file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/freerdp)
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/freerdp/LICENSE ${CURRENT_PACKAGES_DIR}/share/freerdp/copyright)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)