Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quietly unzip ImageMagick when downloading source #12

Merged
merged 2 commits into from
Aug 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions generate_ffm_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ JEXTRACT_DOWNLOAD_PATH=jextract-22

echo "Setting up ImageMagick source..."

# when imagemagick ship prebuilts in GitHub releases we can just use those instead of configuring
# https://github.com/ImageMagick/ImageMagick/issues/7493

IMAGEMAGICK_SOURCE_PATH="ImageMagick-$IMAGEMAGICK_TAG"
IMAGEMAGICK_INCLUDES_PATH="$IMAGEMAGICK_SOURCE_PATH"
MAGICKWAND_INCLUDES_PATH="$IMAGEMAGICK_SOURCE_PATH/MagickWand"
Expand All @@ -29,12 +32,12 @@ if [ ! -f "$MAGICKWAND_ENTRY_PATH" ] || [ ! -f "$MAGICKWAND_CONFIG_PATH" ]; then
IMAGEMAGICK_ZIP_PATH="ImageMagick-$IMAGEMAGICK_TAG.zip"
rm -rf "$IMAGEMAGICK_SOURCE_PATH"
echo "$IMAGEMAGICK_ZIP_SHA" "$IMAGEMAGICK_ZIP_PATH" | sha256sum --check --status
unzip "$IMAGEMAGICK_ZIP_PATH"
unzip -q "$IMAGEMAGICK_ZIP_PATH"
(cd "ImageMagick-$IMAGEMAGICK_TAG"; ./configure)
fi

echo " Found ImageMagick headers at \"$IMAGEMAGICK_INCLUDES_PATH\"..."
echo " Found MagickWand headers at \"$MAGICKWAND_INCLUDES_PATH\"..."
echo "Found ImageMagick headers at \"$IMAGEMAGICK_INCLUDES_PATH\"..."
echo "Found MagickWand headers at \"$MAGICKWAND_INCLUDES_PATH\"..."

echo "Clearing generated files..."

Expand Down