lineage: Use prebuilt ImageMagick for bootanim
Change-Id: I49301cf09f79d617868ac3d445d243020b587c9d
diff --git a/bootanimation/Android.mk b/bootanimation/Android.mk
index b32e4b9..2bc78ce 100644
--- a/bootanimation/Android.mk
+++ b/bootanimation/Android.mk
@@ -46,23 +46,13 @@
for part_cnt in 0 1 2 3 4; do \
mkdir -p $(INTERMEDIATES)/part$$part_cnt; \
done; \
- mogrify -resize $$RESOLUTION -colors 250 $(INTERMEDIATES)/*/*.png; \
+ prebuilts/tools-lineage/${HOST_OS}-x86/bin/mogrify -resize $$RESOLUTION -colors 250 $(INTERMEDIATES)/*/*.png; \
echo "$$IMAGESCALEWIDTH $$IMAGESCALEHEIGHT 60" > $(INTERMEDIATES)/desc.txt; \
cat vendor/lineage/bootanimation/desc.txt >> $(INTERMEDIATES)/desc.txt
$(hide) $(SOONG_ZIP) -L 0 -o $(TARGET_GENERATED_BOOTANIMATION) -C $(INTERMEDIATES) -D $(INTERMEDIATES)
ifeq ($(TARGET_BOOTANIMATION),)
TARGET_BOOTANIMATION := $(TARGET_GENERATED_BOOTANIMATION)
- ifeq ($(shell command -v mogrify),)
- $(info **********************************************)
- $(info The boot animation could not be generated as)
- $(info ImageMagick is not installed in your system.)
- $(info $(space))
- $(info Please install ImageMagick from this website:)
- $(info https://imagemagick.org/script/binary-releases.php)
- $(info **********************************************)
- $(error stop)
- endif
endif
include $(CLEAR_VARS)