2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-01-11 09:42:34 +01:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# libgtk2
|
2007-01-11 09:42:34 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2011-11-18 13:08:59 +01:00
|
|
|
LIBGTK2_VERSION_MAJOR = 2.24
|
2016-11-17 17:42:32 +01:00
|
|
|
LIBGTK2_VERSION = $(LIBGTK2_VERSION_MAJOR).31
|
2012-01-24 23:34:15 +01:00
|
|
|
LIBGTK2_SOURCE = gtk+-$(LIBGTK2_VERSION).tar.xz
|
2011-05-18 11:59:46 +02:00
|
|
|
LIBGTK2_SITE = http://ftp.gnome.org/pub/gnome/sources/gtk+/$(LIBGTK2_VERSION_MAJOR)
|
2008-03-06 19:15:42 +01:00
|
|
|
LIBGTK2_INSTALL_STAGING = YES
|
2017-03-30 15:43:37 +02:00
|
|
|
LIBGTK2_LICENSE = LGPL-2.0+
|
2014-06-24 20:55:17 +02:00
|
|
|
LIBGTK2_LICENSE_FILES = COPYING
|
2015-03-30 23:16:30 +02:00
|
|
|
# For 0001-reduce-dependencies.patch
|
2013-03-23 23:26:27 +01:00
|
|
|
LIBGTK2_AUTORECONF = YES
|
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
LIBGTK2_CONF_ENV = \
|
|
|
|
ac_cv_path_GTK_UPDATE_ICON_CACHE=$(HOST_DIR)/usr/bin/gtk-update-icon-cache \
|
|
|
|
ac_cv_path_GDK_PIXBUF_CSOURCE=$(HOST_DIR)/usr/bin/gdk-pixbuf-csource \
|
2015-02-26 00:19:02 +01:00
|
|
|
DB2HTML=false
|
2007-01-15 00:26:15 +01:00
|
|
|
|
2014-10-19 11:59:01 +02:00
|
|
|
LIBGTK2_CONF_OPTS = --disable-glibtest --enable-explicit-deps=no
|
2007-01-15 00:26:15 +01:00
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
LIBGTK2_DEPENDENCIES = host-pkgconf host-libgtk2 libglib2 cairo pango atk gdk-pixbuf
|
2007-01-15 00:26:15 +01:00
|
|
|
|
2013-06-07 15:18:48 +02:00
|
|
|
# Xorg dependencies
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBGTK2_CONF_OPTS += \
|
2013-06-07 15:18:48 +02:00
|
|
|
--with-x \
|
|
|
|
--x-includes=$(STAGING_DIR)/usr/include/X11 \
|
|
|
|
--x-libraries=$(STAGING_DIR)/usr/lib \
|
|
|
|
--with-gdktarget=x11
|
2014-12-30 08:36:23 +01:00
|
|
|
LIBGTK2_DEPENDENCIES += \
|
2015-03-30 23:16:29 +02:00
|
|
|
fontconfig xlib_libX11 xlib_libXext xlib_libXrender
|
2013-01-06 12:29:30 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
|
2015-03-30 23:16:30 +02:00
|
|
|
LIBGTK2_CONF_OPTS += --enable-xinerama
|
|
|
|
LIBGTK2_DEPENDENCIES += xlib_libXinerama
|
2013-01-06 12:29:30 +01:00
|
|
|
else
|
2015-03-30 23:16:30 +02:00
|
|
|
LIBGTK2_CONF_OPTS += --disable-xinerama
|
2013-01-06 12:29:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXI),y)
|
2015-03-30 23:16:30 +02:00
|
|
|
LIBGTK2_CONF_OPTS += --with-xinput=yes
|
|
|
|
LIBGTK2_DEPENDENCIES += xlib_libXi
|
2013-01-06 12:29:30 +01:00
|
|
|
else
|
2015-03-30 23:16:30 +02:00
|
|
|
LIBGTK2_CONF_OPTS += --with-xinput=no
|
2013-01-06 12:29:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
|
2015-03-30 23:16:30 +02:00
|
|
|
LIBGTK2_DEPENDENCIES += xlib_libXrandr
|
2013-01-06 12:29:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y)
|
2015-03-30 23:16:30 +02:00
|
|
|
LIBGTK2_DEPENDENCIES += xlib_libXcursor
|
2013-01-06 12:29:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXFIXES),y)
|
2015-03-30 23:16:30 +02:00
|
|
|
LIBGTK2_DEPENDENCIES += xlib_libXfixes
|
2013-01-06 12:29:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),y)
|
2015-03-30 23:16:30 +02:00
|
|
|
LIBGTK2_DEPENDENCIES += xlib_libXcomposite
|
2013-01-06 12:29:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXDAMAGE),y)
|
2015-03-30 23:16:30 +02:00
|
|
|
LIBGTK2_DEPENDENCIES += xlib_libXdamage
|
2013-01-06 12:29:30 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-26 16:36:12 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
LIBGTK2_DEPENDENCIES += libpng
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBGTK2_CONF_OPTS += --without-libpng
|
2008-12-26 16:36:12 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
|
|
LIBGTK2_DEPENDENCIES += jpeg
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBGTK2_CONF_OPTS += --without-libjpeg
|
2008-12-26 16:36:12 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
|
|
LIBGTK2_DEPENDENCIES += tiff
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBGTK2_CONF_OPTS += --without-libtiff
|
2008-12-26 16:36:12 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CUPS),y)
|
2016-03-26 20:17:34 +01:00
|
|
|
LIBGTK2_CONF_OPTS += CUPS_CONFIG="$(STAGING_DIR)/usr/bin/cups-config"
|
2008-12-26 16:36:12 +01:00
|
|
|
LIBGTK2_DEPENDENCIES += cups
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBGTK2_CONF_OPTS += --disable-cups
|
2008-12-26 16:36:12 +01:00
|
|
|
endif
|
2007-01-11 09:42:34 +01:00
|
|
|
|
2011-05-18 12:00:16 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK2_DEMO),)
|
2010-09-01 22:40:38 +02:00
|
|
|
define LIBGTK2_POST_INSTALL_TWEAKS
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/gtk-2.0/demo $(TARGET_DIR)/usr/bin/gtk-demo
|
|
|
|
endef
|
|
|
|
|
2010-10-25 21:08:34 +02:00
|
|
|
LIBGTK2_POST_INSTALL_TARGET_HOOKS += LIBGTK2_POST_INSTALL_TWEAKS
|
2011-05-18 12:00:16 +02:00
|
|
|
endif
|
2010-09-01 22:40:38 +02:00
|
|
|
|
libgtk2: break the dependency of host-libgtk2 on host-cairo
Making a full build of libgtk2 for the host is a pain, since it
requires host-cairo, which it turns requires a full X.org stack to be
compiled for the host.
Moreover, building libgtk2 for the host completely is useless: we only
need gdk-pixbuf-csource and gtk-update-icon-cache.
In this patch, we add a new
host-libgtk2-2.12.12-reduce-dependencies.patch, that is only applied
to libgtk2 when being built for the host. This patch removes a lot of
dependencies in configure.in, which allows to:
* run make and make install in gdk-pixbuf/, which compiles and
installs the gdk-pixbuf library and the gdk-pixbuf-csource utility
* run make gtk-update-icon-cache in gtk/, which compiles the
gtk-update-icon-cache utility, which is then installed manually
The compilation and installation steps of libgtk2 for the host are
therefore overriden, so as to not use the default behaviour, which
would attempt to build the full gtk library.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-21 13:11:00 +01:00
|
|
|
# We do not build a full version of libgtk2 for the host, because that
|
|
|
|
# requires compiling Cairo, Pango, ATK and X.org for the
|
|
|
|
# host. Therefore, we patch it to remove dependencies, and we hack the
|
|
|
|
# build to only build gdk-pixbuf-from-source and
|
|
|
|
# gtk-update-icon-cache, which are the host tools needed to build Gtk
|
|
|
|
# for the target.
|
|
|
|
|
2010-10-18 15:21:52 +02:00
|
|
|
HOST_LIBGTK2_DEPENDENCIES = host-libglib2 host-libpng host-gdk-pixbuf
|
2014-09-27 21:32:44 +02:00
|
|
|
HOST_LIBGTK2_CONF_OPTS = \
|
2014-12-22 09:12:05 +01:00
|
|
|
--disable-static \
|
|
|
|
--disable-glibtest \
|
|
|
|
--without-libtiff \
|
|
|
|
--without-libjpeg \
|
|
|
|
--with-gdktarget=none \
|
|
|
|
--disable-cups
|
2009-03-18 22:22:17 +01:00
|
|
|
|
libgtk2: break the dependency of host-libgtk2 on host-cairo
Making a full build of libgtk2 for the host is a pain, since it
requires host-cairo, which it turns requires a full X.org stack to be
compiled for the host.
Moreover, building libgtk2 for the host completely is useless: we only
need gdk-pixbuf-csource and gtk-update-icon-cache.
In this patch, we add a new
host-libgtk2-2.12.12-reduce-dependencies.patch, that is only applied
to libgtk2 when being built for the host. This patch removes a lot of
dependencies in configure.in, which allows to:
* run make and make install in gdk-pixbuf/, which compiles and
installs the gdk-pixbuf library and the gdk-pixbuf-csource utility
* run make gtk-update-icon-cache in gtk/, which compiles the
gtk-update-icon-cache utility, which is then installed manually
The compilation and installation steps of libgtk2 for the host are
therefore overriden, so as to not use the default behaviour, which
would attempt to build the full gtk library.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-21 13:11:00 +01:00
|
|
|
define HOST_LIBGTK2_BUILD_CMDS
|
2014-10-23 10:43:37 +02:00
|
|
|
$(HOST_MAKE_ENV) make -C $(@D)/gtk gtk-update-icon-cache
|
libgtk2: break the dependency of host-libgtk2 on host-cairo
Making a full build of libgtk2 for the host is a pain, since it
requires host-cairo, which it turns requires a full X.org stack to be
compiled for the host.
Moreover, building libgtk2 for the host completely is useless: we only
need gdk-pixbuf-csource and gtk-update-icon-cache.
In this patch, we add a new
host-libgtk2-2.12.12-reduce-dependencies.patch, that is only applied
to libgtk2 when being built for the host. This patch removes a lot of
dependencies in configure.in, which allows to:
* run make and make install in gdk-pixbuf/, which compiles and
installs the gdk-pixbuf library and the gdk-pixbuf-csource utility
* run make gtk-update-icon-cache in gtk/, which compiles the
gtk-update-icon-cache utility, which is then installed manually
The compilation and installation steps of libgtk2 for the host are
therefore overriden, so as to not use the default behaviour, which
would attempt to build the full gtk library.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-21 13:11:00 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_LIBGTK2_INSTALL_CMDS
|
2014-10-23 10:43:37 +02:00
|
|
|
cp $(@D)/gtk/gtk-update-icon-cache $(HOST_DIR)/usr/bin
|
libgtk2: break the dependency of host-libgtk2 on host-cairo
Making a full build of libgtk2 for the host is a pain, since it
requires host-cairo, which it turns requires a full X.org stack to be
compiled for the host.
Moreover, building libgtk2 for the host completely is useless: we only
need gdk-pixbuf-csource and gtk-update-icon-cache.
In this patch, we add a new
host-libgtk2-2.12.12-reduce-dependencies.patch, that is only applied
to libgtk2 when being built for the host. This patch removes a lot of
dependencies in configure.in, which allows to:
* run make and make install in gdk-pixbuf/, which compiles and
installs the gdk-pixbuf library and the gdk-pixbuf-csource utility
* run make gtk-update-icon-cache in gtk/, which compiles the
gtk-update-icon-cache utility, which is then installed manually
The compilation and installation steps of libgtk2 for the host are
therefore overriden, so as to not use the default behaviour, which
would attempt to build the full gtk library.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-21 13:11:00 +01:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|