Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit 74503b4

Browse files
committed
Build freetype for versions < 2
1 parent bdb5483 commit 74503b4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

config.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ function pre_build {
99
export CXX=clang++
1010
brew install pkg-config
1111
fi
12-
# Use local freetype for versions which support it
13-
export MPLLOCALFREETYPE=1
1412
source multibuild/library_builders.sh
1513
build_jpeg
1614
build_libpng
1715
build_bzip2
16+
# Use local freetype for versions which support it
17+
if [[ "$BUILD_COMMIT" =~ v2\. ]]; then
18+
export MPLLOCALFREETYPE=1
19+
else
20+
build_freetype
21+
fi
1822
}
1923

2024
function build_wheel {

0 commit comments

Comments
 (0)