summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalte Starostik <m-starostik@versanet.de>2010-07-24 11:21:28 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2010-07-30 08:44:24 (GMT)
commite41dbc75f969aeb219ca81d590354946203ee1c0 (patch)
treeb217a6c2cf60fe7294a5b809ea0ec847dd4ad707
parent31aab0c974bf6f1e679b2b98d005e387e7669aef (diff)
downloadbuildroot-e41dbc75f969aeb219ca81d590354946203ee1c0.tar.gz
buildroot-e41dbc75f969aeb219ca81d590354946203ee1c0.tar.bz2
Purge libglib2 dev files from target
* Don't install libglib2 development binaries and to target unless BR2_HAVE_DEVFILES is set Signed-off-by: Malte Starostik <m-starostik@versanet.de> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/libglib2/libglib2.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 6ddb820..35b7ee8 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -68,6 +68,17 @@ LIBGLIB2_CONF_OPT += --with-libiconv=gnu
LIBGLIB2_DEPENDENCIES+=libiconv
endif
+define LIBGLIB2_REMOVE_DEV_FILES
+ rm -rf $(TARGET_DIR)/usr/lib/glib-2.0
+ rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gettext
+ rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/glib-2.0
+ rm -f $(addprefix $(TARGET_DIR)/usr/bin/,glib-genmarshal glib-gettextize glib-mkenums gobject-query gtester gtester-report)
+endef
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_DEV_FILES
+endif
+
$(eval $(call AUTOTARGETS,package,libglib2))
$(eval $(call AUTOTARGETS,package,libglib2,host))