mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
libgtk2: bump to version 2.24.18 and drop DirectFB
* Drop DirectFB support from libgtk2 * bump libgtk2 to version 2.24.18 [Peter: fixup patch whitespace changes] Signed-off-by: Spenser Gilliland <spenser@gillilanding.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
003a000d62
commit
4b3d949b8a
@ -8,11 +8,11 @@ config BR2_PACKAGE_LIBGTK2
|
|||||||
select BR2_PACKAGE_LIBGLIB2
|
select BR2_PACKAGE_LIBGLIB2
|
||||||
select BR2_PACKAGE_PANGO
|
select BR2_PACKAGE_PANGO
|
||||||
select BR2_PACKAGE_GDK_PIXBUF
|
select BR2_PACKAGE_GDK_PIXBUF
|
||||||
select BR2_PACKAGE_FONTCONFIG if BR2_PACKAGE_XORG7
|
select BR2_PACKAGE_FONTCONFIG
|
||||||
select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
|
select BR2_PACKAGE_XLIB_LIBX11
|
||||||
select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
|
select BR2_PACKAGE_XLIB_LIBXEXT
|
||||||
select BR2_PACKAGE_XLIB_LIBXRENDER if BR2_PACKAGE_XORG7
|
select BR2_PACKAGE_XLIB_LIBXRENDER
|
||||||
depends on BR2_PACKAGE_XORG7||BR2_PACKAGE_DIRECTFB
|
depends on BR2_PACKAGE_XORG7
|
||||||
depends on BR2_USE_WCHAR # glib2
|
depends on BR2_USE_WCHAR # glib2
|
||||||
depends on BR2_INSTALL_LIBSTDCPP # pango
|
depends on BR2_INSTALL_LIBSTDCPP # pango
|
||||||
help
|
help
|
||||||
@ -29,6 +29,3 @@ config BR2_PACKAGE_LIBGTK2_DEMO
|
|||||||
|
|
||||||
comment "libgtk2 requires a toolchain with WCHAR and C++ support"
|
comment "libgtk2 requires a toolchain with WCHAR and C++ support"
|
||||||
depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
|
depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
|
||||||
|
|
||||||
comment "WARNING: Libgtk2 directfb backend is deprecated"
|
|
||||||
depends on BR2_PACKAGE_LIBGTK2 && !BR2_PACKAGE_XORG7
|
|
||||||
|
@ -3,16 +3,17 @@ dependencies on graphic backends such as X.org or DirectFB. Gtk does
|
|||||||
not fully build in this mode, but it builds sufficiently to build the
|
not fully build in this mode, but it builds sufficiently to build the
|
||||||
host tools that are needed to build the target Gtk.
|
host tools that are needed to build the target Gtk.
|
||||||
|
|
||||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
Changes:
|
||||||
---
|
Ported to 2.24.18
|
||||||
configure.in | 34 +++++++++++++++++++++++++++-------
|
|
||||||
1 file changed, 27 insertions(+), 7 deletions(-)
|
|
||||||
|
|
||||||
Index: b/configure.in
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
|
||||||
|
---
|
||||||
|
Index: libgtk2-2.24.18/configure.ac
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/configure.in
|
--- libgtk2-2.24.18.orig/configure.ac 2013-05-13 07:02:44.000000000 -0500
|
||||||
+++ b/configure.in
|
+++ libgtk2-2.24.18/configure.ac 2013-05-27 02:12:09.947030335 -0500
|
||||||
@@ -259,12 +259,12 @@
|
@@ -258,12 +258,12 @@
|
||||||
gdktarget=x11
|
gdktarget=x11
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -27,7 +28,7 @@ Index: b/configure.in
|
|||||||
*) AC_MSG_ERROR([Invalid target for GDK: use x11, quartz, directfb or win32.]);;
|
*) AC_MSG_ERROR([Invalid target for GDK: use x11, quartz, directfb or win32.]);;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -374,11 +374,15 @@
|
@@ -372,11 +373,15 @@
|
||||||
## annoying to construct
|
## annoying to construct
|
||||||
PKG_CHECK_MODULES(BASE_DEPENDENCIES,
|
PKG_CHECK_MODULES(BASE_DEPENDENCIES,
|
||||||
[glib-2.0 >= glib_required_version dnl
|
[glib-2.0 >= glib_required_version dnl
|
||||||
@ -46,7 +47,7 @@ Index: b/configure.in
|
|||||||
## In addition to checking that cairo is present, we also need to
|
## In addition to checking that cairo is present, we also need to
|
||||||
## check that the correct cairo backend is there. E.g. if the GDK
|
## check that the correct cairo backend is there. E.g. if the GDK
|
||||||
## target is win32 we need the cairo-win32 backend and so on.
|
## target is win32 we need the cairo-win32 backend and so on.
|
||||||
@@ -389,8 +393,11 @@
|
@@ -387,8 +392,11 @@
|
||||||
if test "x$cairo_backend" = "xx11"; then
|
if test "x$cairo_backend" = "xx11"; then
|
||||||
cairo_backend=xlib
|
cairo_backend=xlib
|
||||||
fi
|
fi
|
||||||
@ -60,7 +61,7 @@ Index: b/configure.in
|
|||||||
|
|
||||||
PKG_CHECK_MODULES(GMODULE, [gmodule-2.0])
|
PKG_CHECK_MODULES(GMODULE, [gmodule-2.0])
|
||||||
|
|
||||||
@@ -1281,6 +1288,7 @@
|
@@ -1279,6 +1287,7 @@
|
||||||
AM_CONDITIONAL(USE_DIRECTFB, false)
|
AM_CONDITIONAL(USE_DIRECTFB, false)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -68,7 +69,7 @@ Index: b/configure.in
|
|||||||
|
|
||||||
# Check for Pango flags
|
# Check for Pango flags
|
||||||
|
|
||||||
@@ -1326,6 +1334,8 @@
|
@@ -1324,6 +1333,8 @@
|
||||||
GDK_PACKAGES="$PANGO_PACKAGES gio-2.0 gdk-pixbuf-2.0 cairo-$cairo_backend"
|
GDK_PACKAGES="$PANGO_PACKAGES gio-2.0 gdk-pixbuf-2.0 cairo-$cairo_backend"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -77,16 +78,15 @@ Index: b/configure.in
|
|||||||
GDK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GDK_PACKAGES` $MATH_LIB"
|
GDK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GDK_PACKAGES` $MATH_LIB"
|
||||||
GDK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PACKAGES` $GDK_EXTRA_CFLAGS"
|
GDK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PACKAGES` $GDK_EXTRA_CFLAGS"
|
||||||
#
|
#
|
||||||
@@ -1344,6 +1354,8 @@
|
@@ -1341,6 +1352,7 @@
|
||||||
|
AC_SUBST(GDK_DEP_LIBS)
|
||||||
AC_SUBST(GDK_DEP_CFLAGS)
|
AC_SUBST(GDK_DEP_CFLAGS)
|
||||||
|
|
||||||
|
|
||||||
+if test "x$gdktarget" != "xnone"; then
|
+if test "x$gdktarget" != "xnone"; then
|
||||||
+
|
|
||||||
########################################
|
########################################
|
||||||
# Check for Accessibility Toolkit flags
|
# Check for Accessibility Toolkit flags
|
||||||
########################################
|
@@ -1372,6 +1384,10 @@
|
||||||
@@ -1374,6 +1386,10 @@
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GTK_PACKAGES="atk cairo gdk-pixbuf-2.0 gio-2.0"
|
GTK_PACKAGES="atk cairo gdk-pixbuf-2.0 gio-2.0"
|
||||||
@ -97,7 +97,7 @@ Index: b/configure.in
|
|||||||
if test "x$gdktarget" = "xx11"; then
|
if test "x$gdktarget" = "xx11"; then
|
||||||
GTK_PACKAGES="$GTK_PACKAGES pangoft2"
|
GTK_PACKAGES="$GTK_PACKAGES pangoft2"
|
||||||
fi
|
fi
|
||||||
@@ -1529,6 +1545,8 @@
|
@@ -1533,6 +1549,8 @@
|
||||||
gtk_save_cppflags="$CPPFLAGS"
|
gtk_save_cppflags="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $GTK_DEP_CFLAGS $GDK_DEP_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $GTK_DEP_CFLAGS $GDK_DEP_CFLAGS"
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ Index: b/configure.in
|
|||||||
AC_CHECK_HEADER(cairo-pdf.h,,AC_MSG_ERROR([
|
AC_CHECK_HEADER(cairo-pdf.h,,AC_MSG_ERROR([
|
||||||
*** Can't find cairo-pdf.h. You must build Cairo with the pdf
|
*** Can't find cairo-pdf.h. You must build Cairo with the pdf
|
||||||
*** backend enabled.]))
|
*** backend enabled.]))
|
||||||
@@ -1543,6 +1561,8 @@
|
@@ -1547,6 +1565,8 @@
|
||||||
*** svg backend enabled.]))
|
*** svg backend enabled.]))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
LIBGTK2_VERSION_MAJOR = 2.24
|
LIBGTK2_VERSION_MAJOR = 2.24
|
||||||
LIBGTK2_VERSION_MINOR = 10
|
LIBGTK2_VERSION_MINOR = 18
|
||||||
LIBGTK2_VERSION = $(LIBGTK2_VERSION_MAJOR).$(LIBGTK2_VERSION_MINOR)
|
LIBGTK2_VERSION = $(LIBGTK2_VERSION_MAJOR).$(LIBGTK2_VERSION_MINOR)
|
||||||
|
|
||||||
LIBGTK2_SOURCE = gtk+-$(LIBGTK2_VERSION).tar.xz
|
LIBGTK2_SOURCE = gtk+-$(LIBGTK2_VERSION).tar.xz
|
||||||
@ -74,18 +74,13 @@ LIBGTK2_CONF_OPT = --disable-glibtest \
|
|||||||
|
|
||||||
LIBGTK2_DEPENDENCIES = host-pkgconf host-libgtk2 libglib2 cairo pango atk gdk-pixbuf
|
LIBGTK2_DEPENDENCIES = host-pkgconf host-libgtk2 libglib2 cairo pango atk gdk-pixbuf
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_DIRECTFB),y)
|
# Xorg dependencies
|
||||||
LIBGTK2_CONF_OPT += --with-gdktarget=directfb
|
LIBGTK2_CONF_OPT += \
|
||||||
LIBGTK2_DEPENDENCIES += directfb
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
||||||
LIBGTK2_CONF_OPT += \
|
|
||||||
--with-x \
|
--with-x \
|
||||||
--x-includes=$(STAGING_DIR)/usr/include/X11 \
|
--x-includes=$(STAGING_DIR)/usr/include/X11 \
|
||||||
--x-libraries=$(STAGING_DIR)/usr/lib \
|
--x-libraries=$(STAGING_DIR)/usr/lib \
|
||||||
--with-gdktarget=x11
|
--with-gdktarget=x11
|
||||||
LIBGTK2_DEPENDENCIES += xlib_libXcomposite fontconfig xlib_libX11 \
|
LIBGTK2_DEPENDENCIES += xlib_libXcomposite fontconfig xlib_libX11 \
|
||||||
xlib_libXext xlib_libXrender
|
xlib_libXext xlib_libXrender
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
|
||||||
@ -122,10 +117,6 @@ ifeq ($(BR2_PACKAGE_XLIB_LIBXDAMAGE),y)
|
|||||||
LIBGTK2_DEPENDENCIES += xlib_libXdamage
|
LIBGTK2_DEPENDENCIES += xlib_libXdamage
|
||||||
endif
|
endif
|
||||||
|
|
||||||
else
|
|
||||||
LIBGTK2_CONF_OPT += --without-x
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
||||||
LIBGTK2_DEPENDENCIES += libpng
|
LIBGTK2_DEPENDENCIES += libpng
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user