This repository was archived by the owner on Oct 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ OPENJPEG_VERSION=2.4.0
1313XZ_VERSION=5.2.5
1414TIFF_VERSION=4.3.0
1515LCMS2_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
1721LIBWEBP_VERSION=1.2.2
1822BZIP2_VERSION=1.0.8
1923LIBXCB_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+
3560function 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.
You can’t perform that action at this time.
0 commit comments