This commit is contained in:
midoks
2022-06-11 17:41:43 +08:00
parent 256ac747f6
commit b88cc98a1a
6 changed files with 26 additions and 5 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ if [ $sysName == 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl"
else
OPTIONS="--with-iconv=${serverPath}/lib/libiconv"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype_old"
OPTIONS="${OPTIONS} --with-gd --enable-gd-native-ttf"
OPTIONS="${OPTIONS} --with-curl"
fi
+1 -1
View File
@@ -50,7 +50,7 @@ if [ $sysName == 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl"
else
OPTIONS="--with-iconv=${serverPath}/lib/libiconv"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype_old"
OPTIONS="${OPTIONS} --with-gd --enable-gd-native-ttf"
OPTIONS="${OPTIONS} --with-curl"
fi
+1 -1
View File
@@ -36,7 +36,7 @@ if [ $sysName == 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl"
else
OPTIONS="--with-iconv=${serverPath}/lib/libiconv"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype_old"
OPTIONS="${OPTIONS} --with-gd --enable-gd-native-ttf"
OPTIONS="${OPTIONS} --with-curl"
fi
+1 -1
View File
@@ -35,7 +35,7 @@ if [ $sysName == 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl"
else
OPTIONS="--with-iconv=${serverPath}/lib/libiconv"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype_old"
OPTIONS="${OPTIONS} --with-gd --enable-gd-native-ttf"
OPTIONS="${OPTIONS} --with-curl"
fi
+1 -1
View File
@@ -35,7 +35,7 @@ if [ $sysName == 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-curl=${serverPath}/lib/curl"
else
OPTIONS="--with-iconv=${serverPath}/lib/libiconv"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype"
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype_old"
OPTIONS="${OPTIONS} --with-gd --enable-gd-native-ttf"
OPTIONS="${OPTIONS} --with-curl"
fi
+21
View File
@@ -83,6 +83,24 @@ Install_Libiconv()
Install_Freetype()
{
#----------------------------- freetype start -------------------------#
cd ${sourcePath}
if [ ! -d ${libPath}/freetype_old ];then
wget -O freetype-2.7.1.tar.gz https://download.savannah.gnu.org/releases/freetype/freetype-2.7.1.tar.gz -T 5
tar zxvf freetype-2.7.1.tar.gz
cd freetype-2.7.1
./configure --prefix=${libPath}/freetype_old
make && make install
cd ${sourcePath}
rm -rf freetype-2.7.1.tar.gz
rm -f freetype-2.7.1.tar.gz
fi
echo -e "Install_Freetype_Old" >> ${libPath}/lib.pl
#----------------------------- freetype end -------------------------#
}
Install_Freetype_New()
{
#----------------------------- freetype start -------------------------#
cd ${sourcePath}
if [ ! -d ${libPath}/freetype ];then
@@ -261,7 +279,10 @@ Install_Libiconv
# Install_Libmemcached
# Install_Curl
# Install_Zlib
Install_Freetype
Install_Freetype_New
# Install_OpenSSL
Install_Libzip