mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-29 11:26:17 +03:00
Merge pull request #294 from radarhere/openjpeg
Updated openjpeg to 2.5.0 on macOS x86_64
This commit is contained in:
commit
3378ab4942
16
config.sh
16
config.sh
|
@ -8,11 +8,7 @@ FREETYPE_VERSION=2.12.1
|
||||||
HARFBUZZ_VERSION=4.2.1
|
HARFBUZZ_VERSION=4.2.1
|
||||||
LIBPNG_VERSION=1.6.37
|
LIBPNG_VERSION=1.6.37
|
||||||
JPEGTURBO_VERSION=2.1.3
|
JPEGTURBO_VERSION=2.1.3
|
||||||
if [[ -n "$IS_MACOS" ]] && [[ "$PLAT" == "x86_64" ]]; then
|
OPENJPEG_VERSION=2.5.0
|
||||||
OPENJPEG_VERSION=2.4.0
|
|
||||||
else
|
|
||||||
OPENJPEG_VERSION=2.5.0
|
|
||||||
fi
|
|
||||||
XZ_VERSION=5.2.5
|
XZ_VERSION=5.2.5
|
||||||
TIFF_VERSION=4.3.0
|
TIFF_VERSION=4.3.0
|
||||||
LCMS2_VERSION=2.13.1
|
LCMS2_VERSION=2.13.1
|
||||||
|
@ -51,6 +47,16 @@ function build_giflib {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [[ -n "$IS_MACOS" ]] && [[ "$PLAT" == "x86_64" ]]; then
|
||||||
|
function build_openjpeg {
|
||||||
|
local out_dir=$(fetch_unpack https://github.com/uclouvain/openjpeg/archive/v${OPENJPEG_VERSION}.tar.gz)
|
||||||
|
(cd $out_dir \
|
||||||
|
&& cmake -DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX -DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib . \
|
||||||
|
&& make install)
|
||||||
|
touch openjpeg-stamp
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
function pre_build {
|
function pre_build {
|
||||||
# Any stuff that you need to do before you start building the wheels
|
# Any stuff that you need to do before you start building the wheels
|
||||||
# Runs in the root directory of this repository.
|
# Runs in the root directory of this repository.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user