* [Buildroot] [git commit] libgtk2: add option to install the gtk-demo program
@ 2011-05-18 16:22 Thomas Petazzoni
0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2011-05-18 16:22 UTC (permalink / raw)
To: buildroot
commit: http://git.buildroot.net/buildroot/commit/?id=0710636813dfceea3299b40983863fb0fbc0f566
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/libgtk2/Config.in | 7 +++++++
package/libgtk2/libgtk2.mk | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/package/libgtk2/Config.in b/package/libgtk2/Config.in
index 38b0b47..efaf12f 100644
--- a/package/libgtk2/Config.in
+++ b/package/libgtk2/Config.in
@@ -16,5 +16,12 @@ config BR2_PACKAGE_LIBGTK2
http://www.gtk.org/
+config BR2_PACKAGE_LIBGTK2_DEMO
+ bool "Install libgtk2 demo program"
+ depends on BR2_PACKAGE_LIBGTK2
+ help
+ The GTK+ source base contains a gtk-demo program. This
+ option allows to install this program to the target.
+
comment "libgtk2 requires a toolchain with WCHAR and C++ support"
depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
diff --git a/package/libgtk2/libgtk2.mk b/package/libgtk2/libgtk2.mk
index 3586c86..169ef97 100644
--- a/package/libgtk2/libgtk2.mk
+++ b/package/libgtk2/libgtk2.mk
@@ -114,11 +114,13 @@ else
LIBGTK2_CONF_OPT += --disable-cups
endif
+ifeq ($(BR2_PACKAGE_LIBGTK2_DEMO),)
define LIBGTK2_POST_INSTALL_TWEAKS
rm -rf $(TARGET_DIR)/usr/share/gtk-2.0/demo $(TARGET_DIR)/usr/bin/gtk-demo
endef
LIBGTK2_POST_INSTALL_TARGET_HOOKS += LIBGTK2_POST_INSTALL_TWEAKS
+endif
# We do not build a full version of libgtk2 for the host, because that
# requires compiling Cairo, Pango, ATK and X.org for the
--
1.7.3.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-18 16:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18 16:22 [Buildroot] [git commit] libgtk2: add option to install the gtk-demo program Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.