From ac7dbcf925e084a4c2e1d22d53d5d7bdb829d4d6 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Wed, 22 Dec 2010 18:23:11 +0100 Subject: [PATCH] libpng: remove libpng*-config scripts from TARGET_DIR Signed-off-by: Thomas Petazzoni --- package/libpng/libpng.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/libpng/libpng.mk b/package/libpng/libpng.mk index 699561b9ab..e64989dffd 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)) -- 2.30.2