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.

52 lines
1.2 KiB

  1. #!/bin/bash
  2. # 接收参数
  3. TARGET=$1
  4. CONFIGOPTS=$2
  5. echo -e "\n正在编译和安装 EXR高动态图像函数库……\n"
  6. ${SHELLROOT}/utils/begin_stage openexr openexr*.tar.gz
  7. cd ${SHELLROOT}/tempDIR/`echo openexr*.tar.gz | sed 's/\*.*//'`*
  8. cd IlmBase
  9. if ! ./bootstrap ; then
  10. echo -e "\n !!! 生成 ilmbase库 的安装引导 失败\n"
  11. exit 1
  12. fi
  13. if ! ./configure --enable-static --disable-shared $CONFIGOPTS --prefix=$TARGET ; then
  14. echo -e "\n !!! 配置 ilmbase库 失败,无法安装成功\n"
  15. exit 1
  16. fi
  17. sleep 2
  18. if make $MAKEOPTS && make install ; then
  19. echo -e "\n * ilmbase库,编译和安装成功\n"
  20. else
  21. echo -e "\n !!! ilmbase库,编译和安装失败\n"
  22. exit 1
  23. fi
  24. cd ../OpenEXR
  25. if ! ./bootstrap ; then
  26. echo -e "\n !!! 生成 EXR高动态图像函数库 的安装引导 失败\n"
  27. exit 1
  28. fi
  29. if ! ./configure --enable-static --disable-shared $CONFIGOPTS --prefix=$TARGET --with-ilmbase-prefix=$TARGET ; then
  30. echo -e "\n !!! 配置 EXR高动态图像函数库 失败,无法安装成功\n"
  31. exit 1
  32. fi
  33. sleep 2
  34. if make $MAKEOPTS && make install ; then
  35. echo -e "\n * EXR高动态图像函数库,编译和安装成功\n"
  36. else
  37. echo -e "\n !!! EXR高动态图像函数库,编译和安装失败\n"
  38. exit 1
  39. fi
  40. exit 0