diff --git a/plugins/php/lib/icu.sh b/plugins/php/lib/icu.sh new file mode 100644 index 000000000..8e9094a0d --- /dev/null +++ b/plugins/php/lib/icu.sh @@ -0,0 +1,30 @@ +#!/bin/bash +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin +export PATH + +curPath=`pwd` +rootPath=$(dirname "$curPath") +rootPath=$(dirname "$rootPath") +rootPath=$(dirname "$rootPath") +rootPath=$(dirname "$rootPath") + +echo $rootPath + + +SERVER_ROOT=/www/server/lib +SOURCE_ROOT=/www/server/source/lib + +if [ ! -d ${SERVER_ROOT}/icu/52.2 ];then + + if [ ! -f ${SERVER_ROOT}/icu4c-52_2-src.tgz ];then + wget -O ${SERVER_ROOT}/icu4c-52_2-src.tgz https://github.com/unicode-org/icu/releases/download/release-52-2/icu4c-52_2-src.tgz + fi + + if [ ! -d ${SERVER_ROOT}/icu/52.2 ];then + cd ${SERVER_ROOT} && tar -zxvf icu4c-52_2-src.tgz + + cd $MDIR/source/cmd/icu/source + ./runConfigureICU MacOSX && make CXXFLAGS="-g -O2 -std=c++11" && make install + fi + +fi \ No newline at end of file diff --git a/plugins/php/versions/55/intl.sh b/plugins/php/versions/55/intl.sh index c58d8741c..ea11ebe71 100755 --- a/plugins/php/versions/55/intl.sh +++ b/plugins/php/versions/55/intl.sh @@ -42,6 +42,8 @@ Install_lib() cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version} fi + cd $serverPath/mdserver-web/plugins/php/lib && /bin/bash icu.sh + cd $sourcePath/php${version}/ext/${LIBNAME} $serverPath/php/$version/bin/phpize