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

  1. #!/bin/bash
  2. # 接收参数
  3. TARGET=$1
  4. echo -e "\n正在编译和安装 数据压缩用函式库(zlib)……\n"
  5. ${SHELLROOT}/utils/begin_stage zlib zlib*.tar.gz
  6. cd ${SHELLROOT}/tempDIR/`echo zlib*.tar.gz | sed 's/\*.*//'`*
  7. if echo $TARGET | grep -q '\-64' ; then
  8. ZLIB_PLATFORM="--64"
  9. else
  10. ZLIB_PLATFORM=""
  11. fi
  12. if ! ./configure --static $ZLIB_PLATFORM --prefix=$TARGET ; then
  13. echo -e "\n !!! 配置 数据压缩用函式库(zlib)失败,无法安装成功\n"
  14. exit 1
  15. fi
  16. sleep 2
  17. if make $MAKEOPTS && make install ; then
  18. echo -e "\n * 数据压缩用函式库(zlib),编译和安装成功\n"
  19. else
  20. echo -e "\n * !!! 数据压缩用函式库(zlib),编译和安装失败\n"
  21. exit 1
  22. fi
  23. exit 0