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

Commit e4476c2

Browse files
committed
apply a workaround for libpng on xcode 13.4.1
1 parent 6eaadd1 commit e4476c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/apple/libpng.sh

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libpng} -e
2424
autoreconf_library "${LIB_NAME}" 1>>"${BASEDIR}"/build.log 2>&1 || return 1
2525
fi
2626

27+
# WORKAROUND TO FIX ZLIB VERSION DETECTED - OCCURS ON XCODE 14.3.1
28+
if [[ -n "$DETECTED_IOS_SDK_VERSION" && $(compare_versions "$DETECTED_IOS_SDK_VERSION" "16.4") -ge 0 ]] ||
29+
[[ -n "$DETECTED_MACOS_SDK_VERSION" && $(compare_versions "$DETECTED_MACOS_SDK_VERSION" "13.3") -eq 0 ]] ||
30+
[[ -n "$DETECTED_TVOS_SDK_VERSION" && $(compare_versions "$DETECTED_TVOS_SDK_VERSION" "16.4") -ge 0 ]]; then
31+
${SED_INLINE} "s|ZLIB_VERNUM default .*|ZLIB_VERNUM default 0|g" "${BASEDIR}"/src/"${LIB_NAME}"/scripts/pnglibconf.dfa
32+
fi
33+
2734
./configure \
2835
--prefix="${LIB_INSTALL_PREFIX}" \
2936
--with-pic \

0 commit comments

Comments
 (0)