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

Commit 3378ab4

Browse files
authored
Merge pull request #294 from radarhere/openjpeg
Updated openjpeg to 2.5.0 on macOS x86_64
2 parents cc6c04f + 341d9b1 commit 3378ab4

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

config.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ FREETYPE_VERSION=2.12.1
88
HARFBUZZ_VERSION=4.2.1
99
LIBPNG_VERSION=1.6.37
1010
JPEGTURBO_VERSION=2.1.3
11-
if [[ -n "$IS_MACOS" ]] && [[ "$PLAT" == "x86_64" ]]; then
12-
OPENJPEG_VERSION=2.4.0
13-
else
14-
OPENJPEG_VERSION=2.5.0
15-
fi
11+
OPENJPEG_VERSION=2.5.0
1612
XZ_VERSION=5.2.5
1713
TIFF_VERSION=4.3.0
1814
LCMS2_VERSION=2.13.1
@@ -51,6 +47,16 @@ function build_giflib {
5147
fi
5248
}
5349

50+
if [[ -n "$IS_MACOS" ]] && [[ "$PLAT" == "x86_64" ]]; then
51+
function build_openjpeg {
52+
local out_dir=$(fetch_unpack https://github.com/uclouvain/openjpeg/archive/v${OPENJPEG_VERSION}.tar.gz)
53+
(cd $out_dir \
54+
&& cmake -DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX -DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib . \
55+
&& make install)
56+
touch openjpeg-stamp
57+
}
58+
fi
59+
5460
function pre_build {
5561
# Any stuff that you need to do before you start building the wheels
5662
# Runs in the root directory of this repository.

0 commit comments

Comments
 (0)