Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
From 78258169cf0c380754804b5835203a199ba8efab Mon Sep 17 00:00:00 2001
From: Stephan Bergmann <stephan.bergmann@collabora.com>
Date: Mon, 22 Sep 2025 17:08:36 +0200
Subject: [PATCH] external/cairo: Silence some -Wincompatible-pointer-types
Downloaded from
https://github.com/LibreOffice/core/blob/36e0812a01ae5b94a1bb7549b0db20812d0f821a/external/cairo/cairo/Wincompatible-pointer-types.patch.0
Upstream: https://gitlab.freedesktop.org/cairo/cairo/-/issues/921
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/cairo-image-source.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/cairo-image-source.c b/src/cairo-image-source.c
index eaf72e2cc..05ffa5660 100644
--- a/src/cairo-image-source.c
+++ b/src/cairo-image-source.c
@@ -86,7 +86,7 @@ _pixman_transparent_image (void)
if (unlikely (image == NULL))
return NULL;
- if (_cairo_atomic_ptr_cmpxchg (&__pixman_transparent_image,
+ if (_cairo_atomic_ptr_cmpxchg ((cairo_atomic_intptr_t *) &__pixman_transparent_image,
NULL, image))
{
pixman_image_ref (image);
@@ -118,7 +118,7 @@ _pixman_black_image (void)
if (unlikely (image == NULL))
return NULL;
- if (_cairo_atomic_ptr_cmpxchg (&__pixman_black_image,
+ if (_cairo_atomic_ptr_cmpxchg ((cairo_atomic_intptr_t *) &__pixman_black_image,
NULL, image))
{
pixman_image_ref (image);
@@ -150,7 +150,7 @@ _pixman_white_image (void)
if (unlikely (image == NULL))
return NULL;
- if (_cairo_atomic_ptr_cmpxchg (&__pixman_white_image,
+ if (_cairo_atomic_ptr_cmpxchg ((cairo_atomic_intptr_t *) &__pixman_white_image,
NULL, image))
{
pixman_image_ref (image);
--
2.47.3

30
package/cairo/Config.in Normal file
View File

@@ -0,0 +1,30 @@
config BR2_PACKAGE_CAIRO
bool "cairo"
select BR2_PACKAGE_PIXMAN
select BR2_PACKAGE_FONTCONFIG
select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
select BR2_PACKAGE_XLIB_LIBXRENDER if BR2_PACKAGE_XORG7
help
Cairo is a 2D graphics library with support for multiple
output devices. Currently supported output targets include
the X Window System, Win32, image buffers, and PostScript,
PDF, and SVG file output. Experimental backends include
OpenGL (through glitz), Quartz, and XCB.
http://cairographics.org/
if BR2_PACKAGE_CAIRO
config BR2_PACKAGE_CAIRO_PNG
bool "png support (png and svg surfaces)"
select BR2_PACKAGE_LIBPNG
config BR2_PACKAGE_CAIRO_TEE
bool "tee support"
config BR2_PACKAGE_CAIRO_ZLIB
bool "zlib support (script, ps, pdf, and xml surfaces)"
select BR2_PACKAGE_ZLIB
endif

7
package/cairo/cairo.hash Normal file
View File

@@ -0,0 +1,7 @@
# From https://www.cairographics.org/releases/cairo-1.18.4.tar.xz.sha256sum
sha256 445ed8208a6e4823de1226a74ca319d3600e83f6369f99b14265006599c32ccb cairo-1.18.4.tar.xz
# Hash for license files:
sha256 67228a9f7c5f9b67c58f556f1be178f62da4d9e2e6285318d8c74d567255abdf COPYING
sha256 9e9e8608c4cdda51a78cc3a385f4ec9a2e4c96d5ecad74ac8bca5fca3e563b7d COPYING-LGPL-2.1
sha256 53692a2ed6c6a2c6ec9b32dd0b820dfae91e0a1fcdf625ca9ed0bdf8705fcc4f COPYING-MPL-1.1

120
package/cairo/cairo.mk Normal file
View File

@@ -0,0 +1,120 @@
################################################################################
#
# cairo
#
################################################################################
CAIRO_VERSION = 1.18.4
CAIRO_SOURCE = cairo-$(CAIRO_VERSION).tar.xz
CAIRO_LICENSE = LGPL-2.1 or MPL-1.1 (library)
CAIRO_LICENSE_FILES = COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
CAIRO_CPE_ID_VENDOR = cairographics
CAIRO_SITE = http://cairographics.org/releases
CAIRO_INSTALL_STAGING = YES
CAIRO_CFLAGS = $(TARGET_CFLAGS)
CAIRO_LDFLAGS = $(TARGET_LDFLAGS)
# relocation truncated to fit: R_68K_GOT16O
ifeq ($(BR2_m68k_cf),y)
CAIRO_CFLAGS += -mxgot
endif
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
CAIRO_CFLAGS += -DCAIRO_NO_MUTEX=1
endif
# cairo can use C++11 atomics when available, so we need to link with
# libatomic for the architectures who need libatomic.
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
CAIRO_LDFLAGS += -latomic
endif
CAIRO_CONF_OPTS = \
-Ddwrite=disabled \
-Dfontconfig=enabled \
-Dquartz=disabled \
-Dtests=disabled \
-Dspectre=disabled \
-Dsymbol-lookup=disabled \
-Dgtk_doc=false
CAIRO_DEPENDENCIES = \
host-pkgconf \
fontconfig \
pixman
# Just the bare minimum to make other host-* packages happy
HOST_CAIRO_CONF_OPTS = \
-Ddwrite=disabled \
-Dfontconfig=enabled \
-Dfreetype=enabled \
-Dpng=enabled \
-Dquartz=disabled \
-Dtee=disabled \
-Dxcb=disabled \
-Dxlib=disabled \
-Dzlib=enabled \
-Dtests=disabled \
-Dglib=enabled \
-Dspectre=disabled \
-Dsymbol-lookup=disabled \
-Dgtk_doc=false
HOST_CAIRO_DEPENDENCIES = \
host-freetype \
host-fontconfig \
host-libglib2 \
host-libpng \
host-pixman \
host-pkgconf \
host-zlib
ifeq ($(BR2_PACKAGE_LZO),y)
CAIRO_CONF_OPTS += -Dlzo=enabled
CAIRO_DEPENDENCIES += lzo
else
CAIRO_CONF_OPTS += -Dlzo=disabled
endif
ifeq ($(BR2_PACKAGE_FREETYPE),y)
CAIRO_CONF_OPTS += -Dfreetype=enabled
CAIRO_DEPENDENCIES += freetype
else
CAIRO_CONF_OPTS += -Dfreetype=disabled
endif
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
CAIRO_CONF_OPTS += -Dglib=enabled
CAIRO_DEPENDENCIES += libglib2
else
CAIRO_CONF_OPTS += -Dglib=disabled
endif
ifeq ($(BR2_PACKAGE_XORG7),y)
CAIRO_CONF_OPTS += -Dxcb=enabled -Dxlib=enabled -Dxlib-xcb=enabled
CAIRO_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXrender
else
CAIRO_CONF_OPTS += -Dxcb=disabled -Dxlib=disabled -Dxlib-xcb=disabled
endif
ifeq ($(BR2_PACKAGE_CAIRO_PNG),y)
CAIRO_CONF_OPTS += -Dpng=enabled
CAIRO_DEPENDENCIES += libpng
else
CAIRO_CONF_OPTS += -Dpng=disabled
endif
ifeq ($(BR2_PACKAGE_CAIRO_TEE),y)
CAIRO_CONF_OPTS += -Dtee=enabled
else
CAIRO_CONF_OPTS += -Dtee=disabled
endif
ifeq ($(BR2_PACKAGE_CAIRO_ZLIB),y)
CAIRO_CONF_OPTS += -Dzlib=enabled
CAIRO_DEPENDENCIES += zlib
else
CAIRO_CONF_OPTS += -Dzlib=disabled
endif
$(eval $(meson-package))
$(eval $(host-meson-package))