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.

32 lines
679 B

  1. #!/bin/bash
  2. # 接收参数
  3. TARGET=$1
  4. CONFIGOPTS=$2
  5. echo -e "\n正在编译和安装 png图像函数库……\n"
  6. ${SHELLROOT}/utils/begin_stage png libpng*.tar.gz
  7. cd ${SHELLROOT}/tempDIR/`echo libpng*.tar.gz | sed 's/\*.*//'`*
  8. # --with-libpng-prefix=lux_
  9. if ! ./configure --enable-static --disable-shared $CONFIGOPTS --prefix=$TARGET ; then
  10. echo -e "\n !!! 配置 png图像函数库 失败,无法安装成功\n"
  11. exit 1
  12. fi
  13. sleep 2
  14. if make $MAKEOPTS && make install && cd $TARGET/include && ln -vs libpng* libpng; then
  15. echo -e "\n * png图像函数库,编译和安装成功\n"
  16. else
  17. echo -e "\n !!! png图像函数库,编译和安装失败\n"
  18. exit 1
  19. fi
  20. exit 0