Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cairo] Update to 1.18.2 #41717

Merged
merged 5 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions ports/cairo/cairo_static_fix.patch

This file was deleted.

13 changes: 0 additions & 13 deletions ports/cairo/disable-atomic-ops-check.patch

This file was deleted.

15 changes: 0 additions & 15 deletions ports/cairo/fix-alloca-undefine.patch

This file was deleted.

30 changes: 7 additions & 23 deletions ports/cairo/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
set(EXTRA_PATCHES "")
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
set(PATCHES fix_clang-cl_build.patch)
list(APPEND EXTRA_PATCHES fix_clang-cl_build.patch)
endif()

vcpkg_from_gitlab(
OUT_SOURCE_PATH SOURCE_PATH
GITLAB_URL https://gitlab.freedesktop.org
REPO cairo/cairo
REF "${VERSION}"
SHA512 2ef3b948b354a9be5c3afe2bbf47f559a00a6114c67ef50ce19d54a1d4232218311f2277e271faad4df598e19e03492ba97af934ede9411494618ebe46f9eee9
SHA512 5731eaa48857561aad023214ebb7be70344579a4bc75d00c46f8c622b4d34be7f79ab02e2cd54a419086490a3bf31aafa2418d873833b475b9824e3f2f5b17b6
PATCHES
cairo_static_fix.patch
disable-atomic-ops-check.patch # See https://gitlab.freedesktop.org/cairo/cairo/-/issues/554
fix-static-missing-lib-msimg32.patch
${PATCHES}
fix-alloca-undefine.patch # Upstream PR: https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/520
cairo_add_lzo_feature_option.patch
msvc-convenience.diff
${EXTRA_PATCHES}
)

if("fontconfig" IN_LIST FEATURES)
Expand Down Expand Up @@ -69,29 +67,15 @@ vcpkg_install_meson()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

set(_file "${CURRENT_PACKAGES_DIR}/include/cairo/cairo.h")
file(READ ${_file} CAIRO_H)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
string(REPLACE "!defined(CAIRO_WIN32_STATIC_BUILD)" "0" CAIRO_H "${CAIRO_H}")
else()
string(REPLACE "!defined(CAIRO_WIN32_STATIC_BUILD)" "1" CAIRO_H "${CAIRO_H}")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/cairo/cairo.h" "defined(CAIRO_WIN32_STATIC_BUILD)" "1")
endif()
file(WRITE ${_file} "${CAIRO_H}")

vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()

#TODO: Fix script
#set(TOOLS)
#if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/cairo-trace${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
# list(APPEND TOOLS cairo-trace) # sh script which needs to be fixed due to absolute paths in it.
#endif()
#vcpkg_copy_tools(TOOL_NAMES ${TOOLS} AUTO_CLEAN)

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
# Handle copyright
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING" "${SOURCE_PATH}/COPYING-LGPL-2.1" "${SOURCE_PATH}/COPYING-MPL-1.1")
11 changes: 0 additions & 11 deletions ports/cairo/usage

This file was deleted.

18 changes: 10 additions & 8 deletions ports/cairo/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "cairo",
"version": "1.18.0",
"port-version": 1,
"version": "1.18.2",
"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",
Expand All @@ -24,31 +23,34 @@
],
"features": {
"fontconfig": {
"description": "build with fontconfig",
"description": "Build with fontconfig",
"dependencies": [
"fontconfig"
]
},
"freetype": {
"description": "use the freetype font backend",
"description": "Use the freetype font backend",
"dependencies": [
"freetype"
{
"name": "freetype",
"default-features": false
}
]
},
"gobject": {
"description": "build gobject module",
"description": "Build the gobject module",
"dependencies": [
"glib"
]
},
"lzo": {
"description": "build with lzo support",
"description": "Build with lzo support",
"dependencies": [
"lzo"
]
},
"x11": {
"description": "build with x11 support",
"description": "Build with X11 support",
"supports": "!windows"
}
}
Expand Down
3 changes: 2 additions & 1 deletion ports/elements/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "elements",
"version-date": "2022-12-07",
"port-version": 1,
"description": "Elements is a lightweight, fine-grained, resolution independent, modular GUI library.",
"homepage": "https://cycfi.github.io/elements",
"license": "MIT",
Expand All @@ -9,7 +10,7 @@
"cairo",
{
"name": "gtk3",
"platform": "linux"
"platform": "!osx & !windows"
},
{
"name": "vcpkg-cmake",
Expand Down
11 changes: 9 additions & 2 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ caf:arm64-uwp=fail
caf:arm64-android=fail
caf:x64-android=fail
caf:x64-uwp=fail
cairo:x64-android=fail
# file conflict with dbg-macro
c-dbg-macro:x86-windows=skip
c-dbg-macro:x64-windows=skip
Expand Down Expand Up @@ -195,7 +194,6 @@ catch-classic:x64-windows = skip
catch-classic:x64-windows-static = skip
catch-classic:x64-windows-static-md=skip
catch-classic:x86-windows = skip
cairo:arm64-android=fail
cctag:x64-windows-static-md=fail
cello:arm64-uwp=fail
cello:x64-uwp=fail
Expand Down Expand Up @@ -483,6 +481,9 @@ ijg-libjpeg:x86-windows = skip
intelrdfpmathlib:arm-neon-android=fail
intelrdfpmathlib:arm64-android=fail
intelrdfpmathlib:x64-android=fail
io2d:arm-neon-android=fail
io2d:arm64-android=fail
io2d:x64-android=fail
irrlicht:x64-android=fail
isal:x64-android=fail
# Failing on try_run() in cross builds
Expand Down Expand Up @@ -548,6 +549,9 @@ libfreenect2:arm64-windows=fail
libgpod:arm-neon-android=fail
libgpod:arm64-android=fail
libgpod:x64-android=fail
libgxps:arm-neon-android=fail
libgxps:arm64-android=fail
libgxps:x64-android=fail
libgxps:x64-windows-static=fail
libhdfs3:arm-neon-android=fail
libhdfs3:arm64-android=fail
Expand Down Expand Up @@ -879,6 +883,9 @@ orc:arm64-android=fail
orc:x64-android=fail
paho-mqtt:arm64-uwp=fail
paho-mqtt:x64-uwp=fail
pango:arm-neon-android=fail
pango:arm64-android=fail
pango:x64-android=fail
pcl:arm-neon-android=fail
pcl:arm64-android=fail
pcl:x64-android=fail
Expand Down
6 changes: 3 additions & 3 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1481,8 +1481,8 @@
"port-version": 0
},
"cairo": {
"baseline": "1.18.0",
"port-version": 1
"baseline": "1.18.2",
"port-version": 0
},
"cairomm": {
"baseline": "1.18.0",
Expand Down Expand Up @@ -2538,7 +2538,7 @@
},
"elements": {
"baseline": "2022-12-07",
"port-version": 0
"port-version": 1
},
"elfio": {
"baseline": "3.12",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/cairo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "84c6e863f1f936bd0db07b3302e568ac1c98531c",
"version": "1.18.2",
"port-version": 0
},
{
"git-tree": "0fda02793cfc3911468cd200b0a889c65035db1d",
"version": "1.18.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/e-/elements.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1ab41f4881c43e4119c9f80141820e016db62ebf",
"version-date": "2022-12-07",
"port-version": 1
},
{
"git-tree": "ada1c4c9df8d559673c40e083adcab5e94285fc3",
"version-date": "2022-12-07",
Expand Down