|
|
@ -109,6 +109,10 @@ package("libcurl") |
|
|
|
if package:is_plat("mingw") and version:le("7.85.0") then |
|
|
|
if package:is_plat("mingw") and version:le("7.85.0") then |
|
|
|
io.replace("src/CMakeLists.txt", 'COMMAND ${CMAKE_COMMAND} -E echo "/* built-in manual is disabled, blank function */" > tool_hugehelp.c', "", {plain = true}) |
|
|
|
io.replace("src/CMakeLists.txt", 'COMMAND ${CMAKE_COMMAND} -E echo "/* built-in manual is disabled, blank function */" > tool_hugehelp.c', "", {plain = true}) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
if package:is_plat("linux", "cross") then |
|
|
|
|
|
|
|
io.replace("CMakeLists.txt", "list(APPEND CURL_LIBS OpenSSL::SSL OpenSSL::Crypto)", "list(APPEND CURL_LIBS OpenSSL::SSL OpenSSL::Crypto dl)", {plain = true}) |
|
|
|
|
|
|
|
io.replace("CMakeLists.txt", "list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})", "list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES} dl)", {plain = true}) |
|
|
|
|
|
|
|
end |
|
|
|
import("package.tools.cmake").install(package, configs, opt) |
|
|
|
import("package.tools.cmake").install(package, configs, opt) |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|