Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #245 from radarhere/giflib
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jan 25, 2022
2 parents 460084d + df1ac80 commit 3ffa750
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ OPENJPEG_VERSION=2.4.0
XZ_VERSION=5.2.5
TIFF_VERSION=4.3.0
LCMS2_VERSION=2.12
GIFLIB_VERSION=5.1.4
if [[ -n "$IS_MACOS" ]]; then
GIFLIB_VERSION=5.1.4
else
GIFLIB_VERSION=5.2.1
fi
LIBWEBP_VERSION=1.2.2
BZIP2_VERSION=1.0.8
LIBXCB_VERSION=1.14
Expand All @@ -32,6 +36,27 @@ function build_libjpeg_turbo {
touch jpeg-stamp
}

function build_giflib {
local name=giflib
local version=$GIFLIB_VERSION
local url=https://downloads.sourceforge.net/project/giflib
if [ $(lex_ver $GIFLIB_VERSION) -lt $(lex_ver 5.1.5) ]; then
build_simple $name $version $url
else
local ext=tar.gz
if [ -e "${name}-stamp" ]; then
return
fi
local name_version="${name}-${version}"
local archive=${name_version}.${ext}
fetch_unpack $url/$archive
(cd $name_version \
&& make -j4 \
&& make install)
touch "${name}-stamp"
fi
}

function pre_build {
# Any stuff that you need to do before you start building the wheels
# Runs in the root directory of this repository.
Expand Down

0 comments on commit 3ffa750

Please sign in to comment.