|
@@ -17,168 +17,96 @@ CAIRO_IGNORE_CVES += CVE-2019-6462
|
|
# 0002-Fix-mask-usage-in-image-compositor.patch
|
|
# 0002-Fix-mask-usage-in-image-compositor.patch
|
|
CAIRO_IGNORE_CVES += CVE-2020-35492
|
|
CAIRO_IGNORE_CVES += CVE-2020-35492
|
|
|
|
|
|
-CAIRO_CONF_ENV = LIBS="$(CAIRO_LIBS)"
|
|
|
|
|
|
+CAIRO_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
+CAIRO_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
|
|
# relocation truncated to fit: R_68K_GOT16O
|
|
# relocation truncated to fit: R_68K_GOT16O
|
|
ifeq ($(BR2_m68k_cf),y)
|
|
ifeq ($(BR2_m68k_cf),y)
|
|
-CAIRO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),)
|
|
|
|
-CAIRO_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -DCAIRO_NO_MUTEX=1"
|
|
|
|
|
|
+CAIRO_CFLAGS += -mxgot
|
|
endif
|
|
endif
|
|
|
|
|
|
# cairo can use C++11 atomics when available, so we need to link with
|
|
# cairo can use C++11 atomics when available, so we need to link with
|
|
# libatomic for the architectures who need libatomic.
|
|
# libatomic for the architectures who need libatomic.
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
-CAIRO_LIBS += -latomic
|
|
|
|
|
|
+CAIRO_LDFLAGS += -latomic
|
|
endif
|
|
endif
|
|
|
|
|
|
CAIRO_CONF_OPTS = \
|
|
CAIRO_CONF_OPTS = \
|
|
- --enable-trace=no \
|
|
|
|
- --enable-interpreter=no
|
|
|
|
-
|
|
|
|
-CAIRO_DEPENDENCIES = host-pkgconf fontconfig pixman
|
|
|
|
|
|
+ -Dfontconfig=enabled \
|
|
|
|
+ -Dtests=disabled \
|
|
|
|
+ -Dspectre=disabled \
|
|
|
|
+ -Dc_std=gnu11
|
|
|
|
+CAIRO_DEPENDENCIES = \
|
|
|
|
+ host-pkgconf \
|
|
|
|
+ fontconfig \
|
|
|
|
+ pixman
|
|
|
|
|
|
# Just the bare minimum to make other host-* packages happy
|
|
# Just the bare minimum to make other host-* packages happy
|
|
HOST_CAIRO_CONF_OPTS = \
|
|
HOST_CAIRO_CONF_OPTS = \
|
|
- --enable-trace=no \
|
|
|
|
- --enable-interpreter=no \
|
|
|
|
- --disable-directfb \
|
|
|
|
- --enable-ft \
|
|
|
|
- --enable-gobject \
|
|
|
|
- --disable-glesv2 \
|
|
|
|
- --disable-vg \
|
|
|
|
- --disable-xlib \
|
|
|
|
- --disable-xcb \
|
|
|
|
- --without-x \
|
|
|
|
- --disable-xlib-xrender \
|
|
|
|
- --disable-ps \
|
|
|
|
- --disable-pdf \
|
|
|
|
- --enable-png \
|
|
|
|
- --enable-script \
|
|
|
|
- --disable-svg \
|
|
|
|
- --disable-tee \
|
|
|
|
- --disable-xml
|
|
|
|
|
|
+ -Dfontconfig=enabled \
|
|
|
|
+ -Dfreetype=enabled \
|
|
|
|
+ -Dpng=enabled \
|
|
|
|
+ -Dtee=disabled \
|
|
|
|
+ -Dxcb=disabled \
|
|
|
|
+ -Dxlib=disabled \
|
|
|
|
+ -Dzlib=enabled \
|
|
|
|
+ -Dtests=disabled \
|
|
|
|
+ -Dglib=enabled \
|
|
|
|
+ -Dspectre=disabled \
|
|
|
|
+ -Dc_std=gnu11
|
|
HOST_CAIRO_DEPENDENCIES = \
|
|
HOST_CAIRO_DEPENDENCIES = \
|
|
host-freetype \
|
|
host-freetype \
|
|
host-fontconfig \
|
|
host-fontconfig \
|
|
host-libglib2 \
|
|
host-libglib2 \
|
|
host-libpng \
|
|
host-libpng \
|
|
host-pixman \
|
|
host-pixman \
|
|
- host-pkgconf
|
|
|
|
|
|
+ host-pkgconf \
|
|
|
|
+ host-zlib
|
|
|
|
|
|
-# DirectFB svg support rely on Cairo and Cairo DirectFB support depends on
|
|
|
|
-# DirectFB. Break circular dependency by disabling DirectFB support in Cairo
|
|
|
|
-# (which is experimental)
|
|
|
|
-ifeq ($(BR2_PACKAGE_DIRECTFB)x$(BR2_PACKAGE_DIRECTFB_SVG),yx)
|
|
|
|
-CAIRO_CONF_OPTS += --enable-directfb
|
|
|
|
-CAIRO_DEPENDENCIES += directfb
|
|
|
|
-else
|
|
|
|
-CAIRO_CONF_OPTS += --disable-directfb
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_LZO),y)
|
|
|
|
+CAIRO_DEPENDENCIES += lzo
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
|
-CAIRO_CONF_OPTS += --enable-ft
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dfreetype=enabled
|
|
CAIRO_DEPENDENCIES += freetype
|
|
CAIRO_DEPENDENCIES += freetype
|
|
else
|
|
else
|
|
-CAIRO_CONF_OPTS += --disable-ft
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
|
|
|
|
-CAIRO_DEPENDENCIES += libexecinfo
|
|
|
|
-CAIRO_LIBS += -lexecinfo
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dfreetype=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
-CAIRO_CONF_OPTS += --enable-gobject
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dglib=enabled
|
|
CAIRO_DEPENDENCIES += libglib2
|
|
CAIRO_DEPENDENCIES += libglib2
|
|
else
|
|
else
|
|
-CAIRO_CONF_OPTS += --disable-gobject
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-# Can use GL or GLESv2 but not both
|
|
|
|
-ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
|
|
-CAIRO_CONF_OPTS += --enable-gl --disable-glesv2
|
|
|
|
-CAIRO_DEPENDENCIES += libgl
|
|
|
|
-else
|
|
|
|
-ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
|
|
|
-CAIRO_CONF_OPTS += --disable-gl --enable-glesv2
|
|
|
|
-CAIRO_DEPENDENCIES += libgles
|
|
|
|
-else
|
|
|
|
-CAIRO_CONF_OPTS += --disable-gl --disable-glesv2
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifeq ($(BR2_PACKAGE_HAS_LIBOPENVG),y)
|
|
|
|
-CAIRO_CONF_OPTS += --enable-vg
|
|
|
|
-CAIRO_DEPENDENCIES += libopenvg
|
|
|
|
-else
|
|
|
|
-CAIRO_CONF_OPTS += --disable-vg
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifeq ($(BR2_PACKAGE_LZO),y)
|
|
|
|
-CAIRO_DEPENDENCIES += lzo
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dglib=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
-CAIRO_CONF_OPTS += --enable-xlib --enable-xcb --with-x
|
|
|
|
-CAIRO_DEPENDENCIES += xlib_libX11 xlib_libXext
|
|
|
|
-else
|
|
|
|
-CAIRO_CONF_OPTS += --disable-xlib --disable-xcb --without-x
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y)
|
|
|
|
-CAIRO_CONF_OPTS += --enable-xlib-xrender
|
|
|
|
-CAIRO_DEPENDENCIES += xlib_libXrender
|
|
|
|
-else
|
|
|
|
-CAIRO_CONF_OPTS += --disable-xlib-xrender
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifeq ($(BR2_PACKAGE_CAIRO_PS),y)
|
|
|
|
-CAIRO_CONF_OPTS += --enable-ps
|
|
|
|
-CAIRO_DEPENDENCIES += zlib
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dxcb=enabled -Dxlib=enabled
|
|
|
|
+CAIRO_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXrender
|
|
else
|
|
else
|
|
-CAIRO_CONF_OPTS += --disable-ps
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifeq ($(BR2_PACKAGE_CAIRO_PDF),y)
|
|
|
|
-CAIRO_CONF_OPTS += --enable-pdf
|
|
|
|
-CAIRO_DEPENDENCIES += zlib
|
|
|
|
-else
|
|
|
|
-CAIRO_CONF_OPTS += --disable-pdf
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dxcb=disabled -Dxlib=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CAIRO_PNG),y)
|
|
ifeq ($(BR2_PACKAGE_CAIRO_PNG),y)
|
|
-CAIRO_CONF_OPTS += --enable-png
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dpng=enabled
|
|
CAIRO_DEPENDENCIES += libpng
|
|
CAIRO_DEPENDENCIES += libpng
|
|
else
|
|
else
|
|
-CAIRO_CONF_OPTS += --disable-png
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifeq ($(BR2_PACKAGE_CAIRO_SCRIPT),y)
|
|
|
|
-CAIRO_CONF_OPTS += --enable-script
|
|
|
|
-else
|
|
|
|
-CAIRO_CONF_OPTS += --disable-script
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-ifeq ($(BR2_PACKAGE_CAIRO_SVG),y)
|
|
|
|
-CAIRO_CONF_OPTS += --enable-svg
|
|
|
|
-else
|
|
|
|
-CAIRO_CONF_OPTS += --disable-svg
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dpng=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CAIRO_TEE),y)
|
|
ifeq ($(BR2_PACKAGE_CAIRO_TEE),y)
|
|
-CAIRO_CONF_OPTS += --enable-tee
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dtee=enabled
|
|
else
|
|
else
|
|
-CAIRO_CONF_OPTS += --disable-tee
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dtee=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_CAIRO_XML),y)
|
|
|
|
-CAIRO_CONF_OPTS += --enable-xml
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_CAIRO_ZLIB),y)
|
|
|
|
+CAIRO_CONF_OPTS += -Dzlib=enabled
|
|
|
|
+CAIRO_DEPENDENCIES += zlib
|
|
else
|
|
else
|
|
-CAIRO_CONF_OPTS += --disable-xml
|
|
|
|
|
|
+CAIRO_CONF_OPTS += -Dzlib=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
-$(eval $(autotools-package))
|
|
|
|
-$(eval $(host-autotools-package))
|
|
|
|
|
|
+$(eval $(meson-package))
|
|
|
|
+$(eval $(host-meson-package))
|