diff --git a/ports/cppcms/no-tests-and-examples.patch b/ports/cppcms/no-tests-and-examples.patch new file mode 100644 index 00000000000000..7d8e67bdfe0dcf --- /dev/null +++ b/ports/cppcms/no-tests-and-examples.patch @@ -0,0 +1,58 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5ce0d53..5b432c8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -685,9 +685,10 @@ if(NOT DISABLE_SHARED) + endif(NOT DISABLE_SHARED) + + +- ++if(FALSE) + add_executable(hello_world src/hello_world.cpp skin1.cpp skin2.cpp) + target_link_libraries(hello_world ${CPPCMS_LIB}) ++endif() + + if(NOT DISABLE_TCPCACHE) + add_executable(cppcms_scale src/cache_server_main.cpp) +@@ -710,7 +711,7 @@ endif(DISABLE_SHARED) + ######################################### + # Tests + ######################################### +- ++if(FALSE) + set(ALL_TESTS + form_test + proto_test +@@ -775,14 +776,14 @@ set(ALL_TESTS ${ALL_TESTS} external_session_test) + if(NOT DISABLE_GZIP) + target_link_libraries(response_test ${ZLIB}) + endif() +- ++endif() + ##################################### + # End of tests + ##################################### + + # These are use export + if(IS_WINDOWS AND NOT DISABLE_SHARED) +- set_target_properties(${ALL_TESTS} hello_world cppcms PROPERTIES ++ set_target_properties(${ALL_TESTS} cppcms PROPERTIES + COMPILE_DEFINITIONS DLL_EXPORT) + endif() + +@@ -830,7 +831,7 @@ install(DIRECTORY cppcms DESTINATION include + ############# + + +- ++if(FALSE) + set(CNF "${CMAKE_CURRENT_SOURCE_DIR}/tests") + + add_test(base64_test base64_test) +@@ -1103,5 +1104,5 @@ if(NOT IS_WINDOWS) + PROPERTIES TIMEOUT 120) + + endif() +- ++endif() + diff --git a/ports/cppcms/portfile.cmake b/ports/cppcms/portfile.cmake index 54bc5703970e7d..df656168dc926f 100644 --- a/ports/cppcms/portfile.cmake +++ b/ports/cppcms/portfile.cmake @@ -5,24 +5,27 @@ vcpkg_from_github( REPO artyom-beilis/cppcms REF b72b19915794d1af63c9a9e9bea58e20a4ad93d4 SHA512 e99d34d14fbde22be725ac2c0bec069fb584e45c66767af75efaf454ca61a7a5e57434bf86109f910884c72202b8cf98fe16505e7d3d30d9218abd4d8b27d5df + PATCHES + no-tests-and-examples.patch ) vcpkg_find_acquire_program(PYTHON2) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" DISABLE_DYNAMIC) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DPYTHON=${PYTHON2} # Switch to python3 on the next update -DUSE_WINDOWS6_API=ON + -DDISABLE_SHARED=${DISABLE_DYNAMIC} ) -vcpkg_install_cmake() -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_copy_tools(TOOL_NAMES cppcms_scale cppcms_make_key cppcms_config_find_param AUTO_CLEAN) -file(GLOB EXE_DEBUG_FILES ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe) -file(REMOVE ${EXE_DEBUG_FILES}) -file(GLOB EXE_FILES ${CURRENT_PACKAGES_DIR}/bin/*.exe) -file(REMOVE ${EXE_FILES}) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") -file(INSTALL ${SOURCE_PATH}/MIT.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(INSTALL "${SOURCE_PATH}/MIT.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/cppcms/vcpkg.json b/ports/cppcms/vcpkg.json index 601d5755041cdb..8340ea8746e466 100644 --- a/ports/cppcms/vcpkg.json +++ b/ports/cppcms/vcpkg.json @@ -1,14 +1,19 @@ { "name": "cppcms", - "version-string": "1.2.1", - "port-version": 4, + "version": "1.2.1", + "port-version": 5, "description": "CppCMS is a Free High Performance Web Development Framework (not a CMS) aimed at Rapid Web Application Development", "homepage": "https://github.com/artyom-beilis/cppcms", - "supports": "!(linux | osx)", + "license": "MIT", + "supports": "!(linux | osx | (windows & static))", "dependencies": [ "icu", "openssl", "pcre", + { + "name": "vcpkg-cmake", + "host": true + }, "zlib" ] } diff --git a/ports/cudnn/portfile.cmake b/ports/cudnn/portfile.cmake index 594c74fed6e6cb..b5ebb3239d24c7 100644 --- a/ports/cudnn/portfile.cmake +++ b/ports/cudnn/portfile.cmake @@ -1,16 +1,6 @@ -if(VCPKG_TARGET_IS_UWP OR VCPKG_TARGET_IS_OSX) - message(FATAL_ERROR "This port is only for Windows Desktop or Linux") -endif() - -if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") - message(FATAL_ERROR "This port is only for x64 architectures") -endif() - -vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT) - set(MINIMUM_CUDNN_VERSION "7.6.5") -include(${CURRENT_INSTALLED_DIR}/share/cuda/vcpkg_find_cuda.cmake) +include("${CURRENT_INSTALLED_DIR}/share/cuda/vcpkg_find_cuda.cmake") vcpkg_find_cuda(OUT_CUDA_TOOLKIT_ROOT CUDA_TOOLKIT_ROOT OUT_CUDA_VERSION CUDA_VERSION) # Try to find CUDNN if it exists; only download if it doesn't exist @@ -71,6 +61,6 @@ else() message(FATAL_ERROR "Please install CUDNN using your system package manager (the same way you installed CUDA). For example: apt install libcudnn8-dev.") endif() -file(INSTALL "${CURRENT_PORT_DIR}/FindCUDNN.cmake" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) -file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) -file(INSTALL "${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) +file(INSTALL "${CURRENT_PORT_DIR}/FindCUDNN.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(INSTALL "${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/ports/cudnn/vcpkg.json b/ports/cudnn/vcpkg.json index ffb97ee1723f8d..2918c45688babf 100644 --- a/ports/cudnn/vcpkg.json +++ b/ports/cudnn/vcpkg.json @@ -1,7 +1,7 @@ { "name": "cudnn", "version": "7.6.5", - "port-version": 6, + "port-version": 7, "description": "NVIDIA's cuDNN deep neural network acceleration library.", "homepage": "https://developer.nvidia.com/cudnn", "license": null, diff --git a/ports/devicenameresolver/portfile.cmake b/ports/devicenameresolver/portfile.cmake index b08e2f681d90e4..027cf63f363c2d 100644 --- a/ports/devicenameresolver/portfile.cmake +++ b/ports/devicenameresolver/portfile.cmake @@ -1,5 +1,3 @@ -vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) - vcpkg_from_bitbucket( OUT_SOURCE_PATH SOURCE_PATH REPO mrexodia/devicenameresolver diff --git a/ports/devicenameresolver/vcpkg.json b/ports/devicenameresolver/vcpkg.json index 0647d0831645d9..97bcbb4f40b5ea 100644 --- a/ports/devicenameresolver/vcpkg.json +++ b/ports/devicenameresolver/vcpkg.json @@ -1,8 +1,9 @@ { "name": "devicenameresolver", - "version-string": "2016-06-26-0850d88fa6", - "port-version": 3, + "version-date": "2016-06-26", + "port-version": 4, "description": "a little library that resolves a path from a (virtual) device name.", + "license": null, "supports": "windows & !uwp", "dependencies": [ { diff --git a/ports/epsilon/portfile.cmake b/ports/epsilon/portfile.cmake index 525974ab575546..e753526972272b 100644 --- a/ports/epsilon/portfile.cmake +++ b/ports/epsilon/portfile.cmake @@ -1,5 +1,3 @@ -vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) - vcpkg_from_sourceforge( OUT_SOURCE_PATH SOURCE_PATH REPO epsilon-project/epsilon @@ -43,6 +41,13 @@ vcpkg_install_nmake( vcpkg_copy_pdbs() -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +vcpkg_copy_tools(TOOL_NAMES epsilon SEARCH_DIR "${CURRENT_PACKAGES_DIR}/tools") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() -file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/epsilon/vcpkg.json b/ports/epsilon/vcpkg.json index d19ef5749b4126..7973271eaaeff2 100644 --- a/ports/epsilon/vcpkg.json +++ b/ports/epsilon/vcpkg.json @@ -1,9 +1,10 @@ { "name": "epsilon", - "version-string": "0.9.2", - "port-version": 6, + "version": "0.9.2", + "port-version": 7, "description": "EPSILON is an Open Source wavelet image compressor, that is aimed on parallel and robust image processing.", "homepage": "https://sourceforge.net/projects/epsilon-project/", + "license": "GPL-2.0-only OR LGPL-2.0-only", "supports": "windows", "dependencies": [ "libpopt" diff --git a/ports/fann/portfile.cmake b/ports/fann/portfile.cmake index 716bf3e8b94579..b74433baf2f656 100644 --- a/ports/fann/portfile.cmake +++ b/ports/fann/portfile.cmake @@ -1,6 +1,3 @@ -# Official design -vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO libfann/fann @@ -12,12 +9,11 @@ vcpkg_from_github( fix-uwp-build.patch ) -set(INSTALL_BASE_DIR_DBG ${CURRENT_PACKAGES_DIR}/debug) -set(INSTALL_BASE_DIR_REL ${CURRENT_PACKAGES_DIR}) +set(INSTALL_BASE_DIR_DBG "${CURRENT_PACKAGES_DIR}/debug") +set(INSTALL_BASE_DIR_REL "${CURRENT_PACKAGES_DIR}") -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" OPTIONS_DEBUG -DBIN_INSTALL_DIR=${INSTALL_BASE_DIR_DBG}/bin -DSBIN_INSTALL_DIR=${INSTALL_BASE_DIR_DBG}/sbin @@ -50,12 +46,16 @@ vcpkg_configure_cmake( -DINFO_INSTALL_DIR=${INSTALL_BASE_DIR_REL}/share/${PORT}/info ) -vcpkg_install_cmake() +vcpkg_cmake_install() vcpkg_copy_pdbs() vcpkg_fixup_pkgconfig() -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() -file(INSTALL ${SOURCE_PATH}/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file +file(INSTALL "${SOURCE_PATH}/COPYING.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/fann/vcpkg.json b/ports/fann/vcpkg.json index c4bc01717c8b4e..03f16620c3fae4 100644 --- a/ports/fann/vcpkg.json +++ b/ports/fann/vcpkg.json @@ -1,7 +1,14 @@ { "name": "fann", "version": "2.2.0", - "port-version": 2, + "port-version": 3, "description": "Fast Artificial Neural Network (FANN) Library is a free open source neural network library, which implements multilayer artificial neural networks in C with support for both fully connected and sparsely connected networks.", - "homepage": "https://github.com/libfann/fann" + "homepage": "https://github.com/libfann/fann", + "license": "LGPL-2.1-only", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] } diff --git a/ports/libbf/portfile.cmake b/ports/libbf/portfile.cmake index a50abed942aa60..7aa235a24f71cb 100644 --- a/ports/libbf/portfile.cmake +++ b/ports/libbf/portfile.cmake @@ -1,7 +1,3 @@ -if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Windows" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") - message(FATAL_ERROR "libbf does not support MSVC") -endif() - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO mavam/libbf @@ -10,16 +6,13 @@ vcpkg_from_github( HEAD_REF master ) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" ) -vcpkg_install_cmake() +vcpkg_cmake_install() vcpkg_copy_pdbs() +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) - -file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libbf) -file(RENAME ${CURRENT_PACKAGES_DIR}/share/libbf/COPYING ${CURRENT_PACKAGES_DIR}/share/libbf/copyright) \ No newline at end of file +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/libbf/vcpkg.json b/ports/libbf/vcpkg.json index 1b184fddf45f2d..ec43ed92aef425 100644 --- a/ports/libbf/vcpkg.json +++ b/ports/libbf/vcpkg.json @@ -1,6 +1,14 @@ { "name": "libbf", - "version-string": "1.0.0", - "port-version": 2, - "description": "Bloom filters for C++11." + "version": "1.0.0", + "port-version": 3, + "description": "Bloom filters for C++11.", + "license": "BSD-3-Clause", + "supports": "!windows", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] } diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 2b5865219ff1f1..c512c024c598f6 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -159,9 +159,6 @@ coolprop:x64-uwp=fail coroutine:arm-uwp=fail coroutine:x64-linux=fail coroutine:x64-uwp=fail -cppcms:x64-linux=fail -cppcms:x64-osx=fail -cppcms:x64-windows-static=fail cppfs:arm-uwp=fail cppfs:x64-uwp=fail cppmicroservices:arm64-windows=fail @@ -181,11 +178,6 @@ crashpad:x86-windows=fail ctemplate:x64-linux=fail ctemplate:x64-osx=fail cuda:x64-osx=fail -cudnn:arm64-windows=fail -cudnn:arm-uwp=fail -cudnn:x64-uwp=fail -cudnn:x64-windows-static=fail -cudnn:x86-windows=fail # Since pipeline cannot automatically install dbghelp dependency, skip this detection dbghelp:arm-uwp=skip dbghelp:arm64-windows=skip @@ -197,7 +189,6 @@ dbghelp:x64-windows-static-md=skip dbghelp:x64-windows=skip dbghelp:x86-windows=skip dcmtk:x64-uwp=fail -devicenameresolver:x64-windows-static=fail # legacy directxsdk which conflicts with dxsdk-d3dx directxsdk:x86-windows=skip directxsdk:x64-windows=skip @@ -247,8 +238,6 @@ embree2:x64-linux=skip embree2:x64-osx=skip epsilon:arm-uwp=fail epsilon:x64-uwp=fail -epsilon:x64-windows-static=fail -fann:x64-windows-static=fail fastrtps:arm-uwp=fail fastrtps:x64-uwp=fail fastrtps:x64-windows-static=fail @@ -422,13 +411,6 @@ leveldb:arm-uwp=fail leveldb:x64-uwp=fail libaiff:x64-linux=fail libarchive:arm-uwp=fail -libbf:arm64-windows=fail -libbf:arm-uwp=fail -libbf:x64-uwp=fail -libbf:x64-windows=fail -libbf:x64-windows-static=fail -libbf:x64-windows-static-md=fail -libbf:x86-windows=fail libcopp:arm64-windows=fail libcopp:arm-uwp=fail # Missing system libraries on linux to run/prepare autoconf diff --git a/versions/baseline.json b/versions/baseline.json index cfa3bcaa6040df..c9d9589e97cd76 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1610,7 +1610,7 @@ }, "cppcms": { "baseline": "1.2.1", - "port-version": 4 + "port-version": 5 }, "cppcodec": { "baseline": "0.2", @@ -1750,7 +1750,7 @@ }, "cudnn": { "baseline": "7.6.5", - "port-version": 6 + "port-version": 7 }, "cunit": { "baseline": "2.1.3", @@ -1861,8 +1861,8 @@ "port-version": 5 }, "devicenameresolver": { - "baseline": "2016-06-26-0850d88fa6", - "port-version": 3 + "baseline": "2016-06-26", + "port-version": 4 }, "devil": { "baseline": "1.8.0", @@ -2106,7 +2106,7 @@ }, "epsilon": { "baseline": "0.9.2", - "port-version": 6 + "port-version": 7 }, "esaxx": { "baseline": "ca7cb332011ec37", @@ -2162,7 +2162,7 @@ }, "fann": { "baseline": "2.2.0", - "port-version": 2 + "port-version": 3 }, "farmhash": { "baseline": "1.1", @@ -3462,7 +3462,7 @@ }, "libbf": { "baseline": "1.0.0", - "port-version": 2 + "port-version": 3 }, "libbson": { "baseline": "1.17.6", diff --git a/versions/c-/cppcms.json b/versions/c-/cppcms.json index b476ab5426ee59..8086bb93bdbfd8 100644 --- a/versions/c-/cppcms.json +++ b/versions/c-/cppcms.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "33ff6dbb307c2baceec0a21f05e098c0d15a8f88", + "version": "1.2.1", + "port-version": 5 + }, { "git-tree": "05ef150cab0e8f56bd4f06b41baa9125d94e3451", "version-string": "1.2.1", diff --git a/versions/c-/cudnn.json b/versions/c-/cudnn.json index 7c7b0ef9a93491..3ef9d240d946b3 100644 --- a/versions/c-/cudnn.json +++ b/versions/c-/cudnn.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "cfd70db6f58e45dc96c44a61833d821d987c1588", + "version": "7.6.5", + "port-version": 7 + }, { "git-tree": "aa008ef1b1c958146532dbbdabd76b62f9558653", "version": "7.6.5", diff --git a/versions/d-/devicenameresolver.json b/versions/d-/devicenameresolver.json index fe2447d1b9f9fb..3f28e102babcb0 100644 --- a/versions/d-/devicenameresolver.json +++ b/versions/d-/devicenameresolver.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "bb4e35f532b95841344719e4ab90027a2796d5d4", + "version-date": "2016-06-26", + "port-version": 4 + }, { "git-tree": "a87ff3bcc7e455cf7b73ca36ff4e7ac0c54faba1", "version-string": "2016-06-26-0850d88fa6", diff --git a/versions/e-/epsilon.json b/versions/e-/epsilon.json index ab89b1e6aa80d2..39b536af231daa 100644 --- a/versions/e-/epsilon.json +++ b/versions/e-/epsilon.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "800dbc074727df7eded3e5707b828be676bb5943", + "version": "0.9.2", + "port-version": 7 + }, { "git-tree": "ad0883f9e090b404fcef27b3e4304df44472bf90", "version-string": "0.9.2", diff --git a/versions/f-/fann.json b/versions/f-/fann.json index f49c67fc995cf5..e005396d3d4a4a 100644 --- a/versions/f-/fann.json +++ b/versions/f-/fann.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "05d4d344a7295f604f3cf541a9d92b9a680fd830", + "version": "2.2.0", + "port-version": 3 + }, { "git-tree": "9bff6da1b7043e1ab6e344c549a285b7101763e2", "version": "2.2.0", diff --git a/versions/l-/libbf.json b/versions/l-/libbf.json index d338b8248d5d60..183b294f445170 100644 --- a/versions/l-/libbf.json +++ b/versions/l-/libbf.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "3c699adb88cb4cf15b0fb52cb9e506bc91672bf2", + "version": "1.0.0", + "port-version": 3 + }, { "git-tree": "b44ae45673f953a9aa87a1df8bdc04c6a4201aef", "version-string": "1.0.0",