Skip to content

Commit

Permalink
CI: Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed May 26, 2024
1 parent a1e1c8b commit cf4ffd4
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions before_install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,13 @@ if [ ! -v IMAGEMAGICK_VERSION ]; then
exit 1
fi

sudo apt-get clean
sudo apt-get update

# remove all existing imagemagick related packages
sudo apt-get autoremove -y imagemagick* libmagick* --purge

# install build tools, ImageMagick delegates
sudo apt-get install -y build-essential libfontconfig1-dev libx11-dev libxext-dev zlib1g-dev \
liblcms2-dev libpng-dev libjpeg-dev libfreetype6-dev libxml2-dev \
libtiff5-dev libwebp-dev liblqr-1-0-dev gsfonts ghostscript wget

if [ ! -d /usr/include/freetype ]; then
# If `/usr/include/freetype` is not existed, ImageMagick 6.7 configuration fails about Freetype.
sudo ln -sf /usr/include/freetype2 /usr/include/freetype
fi
sudo apt-get install -y build-essential libx11-dev libxext-dev zlib1g-dev \
liblcms2-dev libpng-dev libjpeg-dev libfreetype6-dev \
libtiff5-dev libwebp-dev liblqr-1-0-dev vim gsfonts ghostscript

project_dir=$(pwd)
build_dir="${project_dir}/build-ImageMagick/ImageMagick-${IMAGEMAGICK_VERSION}"
Expand Down

0 comments on commit cf4ffd4

Please sign in to comment.