diff --git a/build/android-common.sh b/build/android-common.sh index 01b054b1f..261e1048e 100755 --- a/build/android-common.sh +++ b/build/android-common.sh @@ -831,7 +831,7 @@ Cflags: -I\${includedir} EOF } -create_zlib_package_config() { +create_zlib_system_package_config() { ZLIB_VERSION=$(grep '#define ZLIB_VERSION' ${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot/usr/include/zlib.h | grep -Eo '\".*\"' | sed -e 's/\"//g') cat > "${INSTALL_PKG_CONFIG_DIR}/zlib.pc" << EOF @@ -1033,7 +1033,7 @@ set_toolchain_clang_paths() { fi if [ ! -f ${ZLIB_PACKAGE_CONFIG_PATH} ]; then - create_zlib_package_config + create_zlib_system_package_config fi prepare_inline_sed diff --git a/build/ios-common.sh b/build/ios-common.sh index 623576335..957b1283f 100755 --- a/build/ios-common.sh +++ b/build/ios-common.sh @@ -623,7 +623,7 @@ Cflags: -I\${includedir} EOF } -create_libiconv_package_config() { +create_libiconv_system_package_config() { local LIB_ICONV_VERSION=$(grep '_LIBICONV_VERSION' ${SDK_PATH}/usr/include/iconv.h | grep -Eo '0x.*' | grep -Eo '.* ') cat > "${INSTALL_PKG_CONFIG_DIR}/libiconv.pc" << EOF @@ -811,7 +811,7 @@ Cflags: -I\${includedir} EOF } -create_uuid_system_package_config() { +create_libuuid_system_package_config() { local UUID_VERSION="$1" cat > "${INSTALL_PKG_CONFIG_DIR}/uuid.pc" << EOF @@ -848,7 +848,7 @@ Cflags: -I\${includedir} EOF } -create_zlib_package_config() { +create_zlib_system_package_config() { ZLIB_VERSION=$(grep '#define ZLIB_VERSION' ${SDK_PATH}/usr/include/zlib.h | grep -Eo '\".*\"' | sed -e 's/\"//g') cat > "${INSTALL_PKG_CONFIG_DIR}/zlib.pc" << EOF @@ -867,7 +867,7 @@ Cflags: -I\${includedir} EOF } -create_bzip2_package_config() { +create_bzip2_system_package_config() { BZIP2_VERSION=$(grep -Eo 'version.*of' ${SDK_PATH}/usr/include/bzlib.h | sed -e 's/of//;s/version//g;s/\ //g') cat > "${INSTALL_PKG_CONFIG_DIR}/bzip2.pc" << EOF @@ -1082,19 +1082,19 @@ set_toolchain_clang_paths() { fi if [ ! -f ${ZLIB_PACKAGE_CONFIG_PATH} ]; then - create_zlib_package_config + create_zlib_system_package_config fi if [ ! -f ${LIB_ICONV_PACKAGE_CONFIG_PATH} ]; then - create_libiconv_package_config + create_libiconv_system_package_config fi if [ ! -f ${BZIP2_PACKAGE_CONFIG_PATH} ]; then - create_bzip2_package_config + create_bzip2_system_package_config fi if [ ! -f ${LIB_UUID_PACKAGE_CONFIG_PATH} ]; then - create_uuid_system_package_config + create_libuuid_system_package_config fi prepare_inline_sed diff --git a/build/tvos-common.sh b/build/tvos-common.sh index e51015755..76a92dacd 100755 --- a/build/tvos-common.sh +++ b/build/tvos-common.sh @@ -585,7 +585,7 @@ Cflags: -I\${includedir} EOF } -create_libiconv_package_config() { +create_libiconv_system_package_config() { local LIB_ICONV_VERSION=$(grep '_LIBICONV_VERSION' ${SDK_PATH}/usr/include/iconv.h | grep -Eo '0x.*' | grep -Eo '.* ') cat > "${INSTALL_PKG_CONFIG_DIR}/libiconv.pc" << EOF @@ -810,7 +810,7 @@ Cflags: -I\${includedir} EOF } -create_zlib_package_config() { +create_zlib_system_package_config() { ZLIB_VERSION=$(grep '#define ZLIB_VERSION' ${SDK_PATH}/usr/include/zlib.h | grep -Eo '\".*\"' | sed -e 's/\"//g') cat > "${INSTALL_PKG_CONFIG_DIR}/zlib.pc" << EOF @@ -829,7 +829,7 @@ Cflags: -I\${includedir} EOF } -create_bzip2_package_config() { +create_bzip2_system_package_config() { BZIP2_VERSION=$(grep -Eo 'version.*of' ${SDK_PATH}/usr/include/bzlib.h | sed -e 's/of//;s/version//g;s/\ //g') cat > "${INSTALL_PKG_CONFIG_DIR}/bzip2.pc" << EOF @@ -1036,15 +1036,15 @@ set_toolchain_clang_paths() { fi if [ ! -f ${ZLIB_PACKAGE_CONFIG_PATH} ]; then - create_zlib_package_config + create_zlib_system_package_config fi if [ ! -f ${LIB_ICONV_PACKAGE_CONFIG_PATH} ]; then - create_libiconv_package_config + create_libiconv_system_package_config fi if [ ! -f ${BZIP2_PACKAGE_CONFIG_PATH} ]; then - create_bzip2_package_config + create_bzip2_system_package_config fi prepare_inline_sed