diff --git a/ports/cairo/disable-lzo.patch b/ports/cairo/disable-lzo.patch new file mode 100644 index 00000000000000..8945d2dcb83f3d --- /dev/null +++ b/ports/cairo/disable-lzo.patch @@ -0,0 +1,22 @@ +diff --git a/meson.build b/meson.build +index 12512d115..aec6b003a 100644 +--- a/meson.build ++++ b/meson.build +@@ -201,7 +201,16 @@ else + endif + endif + +-lzo_dep = dependency('lzo2', required: false) ++# TSC patch: Never look for lzo (GPL-licensed), but keep lzo_dep around so ++# downstream meson.build files will still work ++# ++# From the docs at https://mesonbuild.com/Reference-manual_functions.html#dependency ++# ++# If dependency_name is '', the dependency is always not found. ++# So with required: false, this always returns a dependency object ++# for which the found() method returns false, and which can be passed ++# like any other dependency to the dependencies: keyword argument of a build_target. ++lzo_dep = dependency('', required: false) + if lzo_dep.found() + conf.set('HAVE_LZO', 1) + endif diff --git a/ports/cairo/portfile.cmake b/ports/cairo/portfile.cmake index 36b876318a5bc3..4b237c8f069ce6 100644 --- a/ports/cairo/portfile.cmake +++ b/ports/cairo/portfile.cmake @@ -13,6 +13,7 @@ vcpkg_from_gitlab( disable-atomic-ops-check.patch # See https://gitlab.freedesktop.org/cairo/cairo/-/issues/554 mingw-dllexport.patch fix-static-missing-lib-msimg32.patch + disable-lzo.patch ${PATCHES} ) diff --git a/ports/cairo/vcpkg.json b/ports/cairo/vcpkg.json index 38e6acd4744542..995deec38e1498 100644 --- a/ports/cairo/vcpkg.json +++ b/ports/cairo/vcpkg.json @@ -1,7 +1,7 @@ { "name": "cairo", "version": "1.17.8", - "port-version": 3, + "port-version": 4, "description": "Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.", "homepage": "https://cairographics.org", "license": "LGPL-2.1-only OR MPL-1.1", @@ -10,7 +10,6 @@ "dirent", "expat", "libpng", - "lzo", "pixman", "pthread", { diff --git a/versions/baseline.json b/versions/baseline.json index 3619404d8ab4aa..442c861cf6d856 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1366,7 +1366,7 @@ }, "cairo": { "baseline": "1.17.8", - "port-version": 3 + "port-version": 4 }, "cairomm": { "baseline": "1.16.2", diff --git a/versions/c-/cairo.json b/versions/c-/cairo.json index d47321464e5f7d..baba06a0755837 100644 --- a/versions/c-/cairo.json +++ b/versions/c-/cairo.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "00cb8b7ffed9ce81f8b93d62e057076430f82948", + "version": "1.17.8", + "port-version": 4 + }, { "git-tree": "e8fda1b05b3f6a99f08c23f8ad94ed43d4a69875", "version": "1.17.8",