replace IS_OSX with IS_MACOS

This commit is contained in:
nulano 2021-03-25 02:14:51 +01:00
parent a41f5578ad
commit 5f04e4a6df

View File

@ -89,12 +89,12 @@ function pre_build {
build_freetype build_freetype
fi fi
if [ -z "$IS_OSX" ]; then if [ -z "$IS_MACOS" ]; then
export FREETYPE_LIBS=-lfreetype export FREETYPE_LIBS=-lfreetype
export FREETYPE_CFLAGS=-I/usr/local/include/freetype2/ export FREETYPE_CFLAGS=-I/usr/local/include/freetype2/
fi fi
build_simple harfbuzz $HARFBUZZ_VERSION https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION tar.xz --with-freetype=yes --with-glib=no build_simple harfbuzz $HARFBUZZ_VERSION https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION tar.xz --with-freetype=yes --with-glib=no
if [ -z "$IS_OSX" ]; then if [ -z "$IS_MACOS" ]; then
export FREETYPE_LIBS='' export FREETYPE_LIBS=''
export FREETYPE_CFLAGS='' export FREETYPE_CFLAGS=''
fi fi
@ -108,7 +108,7 @@ function pre_build {
function pip_wheel_cmd { function pip_wheel_cmd {
local abs_wheelhouse=$1 local abs_wheelhouse=$1
if [ -z "$IS_OSX" ]; then if [ -z "$IS_MACOS" ]; then
CFLAGS="$CFLAGS --std=c99" # for Raqm CFLAGS="$CFLAGS --std=c99" # for Raqm
fi fi
pip wheel $(pip_opts) \ pip wheel $(pip_opts) \
@ -129,7 +129,7 @@ if [[ $MACOSX_DEPLOYMENT_TARGET != "11.0" ]]; then
fi fi
EXP_CODECS="$EXP_CODECS libtiff zlib" EXP_CODECS="$EXP_CODECS libtiff zlib"
EXP_MODULES="freetype2 littlecms2 pil tkinter webp" EXP_MODULES="freetype2 littlecms2 pil tkinter webp"
if [ -z "$IS_OSX" ] && [[ "$MB_PYTHON_VERSION" != pypy3* ]]; then if [ -z "$IS_MACOS" ] && [[ "$MB_PYTHON_VERSION" != pypy3* ]]; then
EXP_FEATURES="fribidi harfbuzz raqm transp_webp webp_anim webp_mux" EXP_FEATURES="fribidi harfbuzz raqm transp_webp webp_anim webp_mux"
else else
# can't find FriBiDi # can't find FriBiDi