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

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