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

Commit df1ac80

Browse files
committed
Updated giflib to 5.2.1 on Linux
1 parent 460084d commit df1ac80

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

config.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ OPENJPEG_VERSION=2.4.0
1313
XZ_VERSION=5.2.5
1414
TIFF_VERSION=4.3.0
1515
LCMS2_VERSION=2.12
16-
GIFLIB_VERSION=5.1.4
16+
if [[ -n "$IS_MACOS" ]]; then
17+
GIFLIB_VERSION=5.1.4
18+
else
19+
GIFLIB_VERSION=5.2.1
20+
fi
1721
LIBWEBP_VERSION=1.2.2
1822
BZIP2_VERSION=1.0.8
1923
LIBXCB_VERSION=1.14
@@ -32,6 +36,27 @@ function build_libjpeg_turbo {
3236
touch jpeg-stamp
3337
}
3438

39+
function build_giflib {
40+
local name=giflib
41+
local version=$GIFLIB_VERSION
42+
local url=https://downloads.sourceforge.net/project/giflib
43+
if [ $(lex_ver $GIFLIB_VERSION) -lt $(lex_ver 5.1.5) ]; then
44+
build_simple $name $version $url
45+
else
46+
local ext=tar.gz
47+
if [ -e "${name}-stamp" ]; then
48+
return
49+
fi
50+
local name_version="${name}-${version}"
51+
local archive=${name_version}.${ext}
52+
fetch_unpack $url/$archive
53+
(cd $name_version \
54+
&& make -j4 \
55+
&& make install)
56+
touch "${name}-stamp"
57+
fi
58+
}
59+
3560
function pre_build {
3661
# Any stuff that you need to do before you start building the wheels
3762
# Runs in the root directory of this repository.

0 commit comments

Comments
 (0)