diff --git a/ports/cairomm/build-support-msvc2022.diff b/ports/cairomm/build-support-msvc2022.diff deleted file mode 100644 index b83bdd85f3f740..00000000000000 --- a/ports/cairomm/build-support-msvc2022.diff +++ /dev/null @@ -1,41 +0,0 @@ -commit ed1ce9a630b375b0f43435e34fbe690eb8276178 -Author: Chun-wei Fan -Date: Wed Nov 10 16:11:04 2021 +0800 - - build: Support Visual Studio 2022 - - Make these builds distinct from the Visual Studio 2019 builds. - -diff --git a/MSVC_NMake/detectenv-msvc.mak b/MSVC_NMake/detectenv-msvc.mak -index bf2e906..58b7092 100644 ---- a/MSVC_NMake/detectenv-msvc.mak -+++ b/MSVC_NMake/detectenv-msvc.mak -@@ -98,9 +98,12 @@ PDBVER = 14 - !if $(VCVERSION) > 1909 && $(VCVERSION) < 1920 - VSVER_SUFFIX = 1 - VSVER = 15 --!elseif $(VCVERSION) > 1919 && $(VCVERSION) < 2000 -+!elseif $(VCVERSION) > 1919 && $(VCVERSION) < 1930 - VSVER_SUFFIX = 2 - VSVER = 16 -+!elseif $(VCVERSION) > 1929 && $(VCVERSION) < 2000 -+VSVER_SUFFIX = 3 -+VSVER = 17 - !else - VSVER = $(PDBVER) - !endif -diff --git a/meson.build b/meson.build -index 8b18fc2..1fa2da0 100644 ---- a/meson.build -+++ b/meson.build -@@ -238,7 +238,9 @@ if is_msvc - add_project_arguments(disabled_warning, language: 'cpp') - endforeach - if use_msvc14x_toolset_ver -- if cpp_compiler.version().version_compare('>=19.20') -+ if cpp_compiler.version().version_compare('>=19.30') -+ msvc14x_toolset_ver = '-vc143' -+ elif cpp_compiler.version().version_compare('>=19.20') - msvc14x_toolset_ver = '-vc142' - elif cpp_compiler.version().version_compare('>=19.10') - msvc14x_toolset_ver = '-vc141' diff --git a/ports/cairomm/portfile.cmake b/ports/cairomm/portfile.cmake index 212310565f4445..17e844b7ca0b77 100644 --- a/ports/cairomm/portfile.cmake +++ b/ports/cairomm/portfile.cmake @@ -1,21 +1,16 @@ -set(CAIROMM_VERSION 1.16.1) -set(CAIROMM_HASH 2dbdd41f712d43573ad3118f37d443d2b9ae98737c240d5db8d830ef38f2b4a95182b2fc857577c7564eb94649e629f70380f16ee84f4978759f40e19d802757) - vcpkg_download_distfile(ARCHIVE - URLS "https://www.cairographics.org/releases/cairomm-${CAIROMM_VERSION}.tar.xz" - FILENAME "cairomm-${CAIROMM_VERSION}.tar.xz" - SHA512 ${CAIROMM_HASH} + URLS "https://www.cairographics.org/releases/cairomm-${VERSION}.tar.xz" + FILENAME "cairomm-${VERSION}.tar.xz" + SHA512 61dc639eabe8502e1262c53c92fe57c5647e5ab9931f86ed51e657df1b7d0e3e58c2571910a05236cc0dca8d52f1f693aed99a553430f14d0fb87be1832a6b62 ) vcpkg_extract_source_archive_ex( OUT_SOURCE_PATH SOURCE_PATH - ARCHIVE ${ARCHIVE} - PATCHES - build-support-msvc2022.diff + ARCHIVE "${ARCHIVE}" ) vcpkg_configure_meson( - SOURCE_PATH ${SOURCE_PATH} + SOURCE_PATH "${SOURCE_PATH}" OPTIONS -Dbuild-examples=false -Dmsvc14x-parallel-installable=false # Use separate DLL and LIB filenames for Visual Studio 2017 and 2019 @@ -29,13 +24,9 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) -if(VCPKG_LIBRARY_LINAKGE STREQUAL "static") - set(_file "${CURRENT_PACKAGES_DIR}/lib/cairomm-1.16/include/cairommconfig.h") - if(EXISTS "${_file}") - vcpkg_replace_string("${_file}" "# define CAIROMM_DLL 1" "# undef CAIROMM_DLL\n# define CAIROMM_STATIC_LIB 1") - endif() - set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/cairomm-1.16/include/cairommconfig.h") - if(EXISTS "${_file}") - vcpkg_replace_string("${_file}" "# define CAIROMM_DLL 1" "# undef CAIROMM_DLL\n# define CAIROMM_STATIC_LIB 1") +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/cairomm-1.16/include/cairommconfig.h" "# define CAIROMM_DLL 1" "# undef CAIROMM_DLL\n# define CAIROMM_STATIC_LIB 1") + if (NOT VCPKG_BUILD_TYPE) + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/cairomm-1.16/include/cairommconfig.h" "# define CAIROMM_DLL 1" "# undef CAIROMM_DLL\n# define CAIROMM_STATIC_LIB 1") endif() endif() diff --git a/ports/cairomm/vcpkg.json b/ports/cairomm/vcpkg.json index 467d320c6ab062..c519c8d606a77b 100644 --- a/ports/cairomm/vcpkg.json +++ b/ports/cairomm/vcpkg.json @@ -1,6 +1,6 @@ { "name": "cairomm", - "version": "1.16.1", + "version": "1.16.2", "description": "A C++ wrapper for the cairo graphics library", "homepage": "https://www.cairographics.org", "license": "LGPL-2.0-only", diff --git a/versions/baseline.json b/versions/baseline.json index 2c1cb7f42af800..5fabf99a1abf78 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1273,7 +1273,7 @@ "port-version": 4 }, "cairomm": { - "baseline": "1.16.1", + "baseline": "1.16.2", "port-version": 0 }, "calceph": { diff --git a/versions/c-/cairomm.json b/versions/c-/cairomm.json index 7bfd0bf732e058..03696b212e9d42 100644 --- a/versions/c-/cairomm.json +++ b/versions/c-/cairomm.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "07289b1edb75fecd2b706118b1a0919c5903c1c3", + "version": "1.16.2", + "port-version": 0 + }, { "git-tree": "5ae92557bdcf5f6dc8364cb179fd8fe57b0698ce", "version": "1.16.1",