Browse Source

imagemagick: remove *-config scripts from TARGET_DIR

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas Petazzoni 14 years ago
parent
commit
50e73c6f78
1 changed files with 10 additions and 0 deletions
  1. 10 0
      package/imagemagick/imagemagick.mk

+ 10 - 0
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))