You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
722 B
36 lines
722 B
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# 接收参数
|
|
TARGET=$1
|
|
|
|
|
|
|
|
|
|
echo -e "\n正在编译和安装 数据压缩用函式库(zlib)……\n"
|
|
|
|
${SHELLROOT}/utils/begin_stage zlib zlib*.tar.gz
|
|
cd ${SHELLROOT}/tempDIR/`echo zlib*.tar.gz | sed 's/\*.*//'`*
|
|
|
|
if echo $TARGET | grep -q '\-64' ; then
|
|
ZLIB_PLATFORM="--64"
|
|
else
|
|
ZLIB_PLATFORM=""
|
|
fi
|
|
|
|
if ! ./configure --static $ZLIB_PLATFORM --prefix=$TARGET ; then
|
|
echo -e "\n !!! 配置 数据压缩用函式库(zlib)失败,无法安装成功\n"
|
|
exit 1
|
|
fi
|
|
|
|
sleep 2
|
|
if make $MAKEOPTS && make install ; then
|
|
echo -e "\n * 数据压缩用函式库(zlib),编译和安装成功\n"
|
|
else
|
|
echo -e "\n * !!! 数据压缩用函式库(zlib),编译和安装失败\n"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|