summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/imagemagick/imagemagick.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/imagemagick/imagemagick.mk b/package/imagemagick/imagemagick.mk
index 97c00410f..7955db7f5 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))