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.

31 lines
701 B

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