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.
 
 

28 lines
580 B

#!/bin/bash
# 接收参数
TARGET=$1
echo -e "\n正在编译和安装 数据压缩工具(bzip2)……\n"
${SHELLROOT}/utils/begin_stage bzip2 bzip2*.tar.gz
cd ${SHELLROOT}/tempDIR/`echo bzip2*.tar.gz | sed 's/\*.*//'`*
echo " * 正在修补bzip2 Makefile以支持-fPIC"
patch Makefile ${SHELLROOT}/distfiles/bzip2-1.0.8-fpic.patch
sleep 2
if make $MAKEOPTS && make install PREFIX=$TARGET ; then
echo -e "\n * 数据压缩工具(bzip2),编译和安装成功\n"
else
echo -e "\n !!! 数据压缩工具(bzip2),编译和安装失败\n"
exit 1
fi
exit 0