From 50e73c6f783d38c17d7bafc4bcfd9a6e826b0d73 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Wed, 22 Dec 2010 18:21:35 +0100 Subject: [PATCH] imagemagick: remove *-config scripts from TARGET_DIR Signed-off-by: Thomas Petazzoni --- package/imagemagick/imagemagick.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/imagemagick/imagemagick.mk b/package/imagemagick/imagemagick.mk index 97c00410f2..7955db7f5d 100644 --- a/package/imagemagick/imagemagick.mk +++ b/package/imagemagick/imagemagick.mk @@ -80,4 +80,14 @@ else IMAGEMAGICK_CONF_OPT += --without-tiff endif +define IMAGEMAGICK_REMOVE_CONFIG_SCRIPTS + $(RM) -f $(addprefix $(TARGET_DIR)/usr/bin/, \ + $(addsuffix -config, \ + Magick MagickCore MagickWand Wand Magick++)) +endef + +ifneq ($(BR2_HAVE_DEVFILES),y) +IMAGEMAGICK_POST_INSTALL_TARGET_HOOKS += IMAGEMAGICK_REMOVE_CONFIG_SCRIPTS +endif + $(eval $(call AUTOTARGETS,package,imagemagick))