summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-12-22 18:23:11 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2011-03-07 22:22:31 +0100
commitac7dbcf925e084a4c2e1d22d53d5d7bdb829d4d6 (patch)
tree9698fa1218d1953debd1cb6a6a5f6bdd49b4aed0
parent99175e43be4a7ad19c04364d3fe91db26853af33 (diff)
libpng: remove libpng*-config scripts from TARGET_DIR
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/libpng/libpng.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/libpng/libpng.mk b/package/libpng/libpng.mk
index 699561b9a..e64989dff 100644
--- a/package/libpng/libpng.mk
+++ b/package/libpng/libpng.mk
@@ -22,5 +22,14 @@ endef
LIBPNG_POST_INSTALL_STAGING_HOOKS += LIBPNG_STAGING_LIBPNG12_CONFIG_FIXUP
+define LIBPNG_REMOVE_CONFIG_SCRIPTS
+ $(RM) -f $(TARGET_DIR)/usr/bin/libpng$(LIBPNG_SERIES)-config \
+ $(TARGET_DIR)/usr/bin/libpng-config
+endef
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+LIBPNG_POST_INSTALL_TARGET_HOOKS += LIBPNG_REMOVE_CONFIG_SCRIPTS
+endif
+
$(eval $(call AUTOTARGETS,package,libpng))
$(eval $(call AUTOTARGETS,package,libpng,host))