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

#!/bin/bash
# 接收参数
TARGET=$1
CONFIGOPTS=$2
echo -e "\n正在编译和安装 EXR高动态图像函数库……\n"
${SHELLROOT}/utils/begin_stage openexr openexr*.tar.gz
cd ${SHELLROOT}/tempDIR/`echo openexr*.tar.gz | sed 's/\*.*//'`*
cd IlmBase
if ! ./bootstrap ; then
echo -e "\n !!! 生成 ilmbase库 的安装引导 失败\n"
exit 1
fi
if ! ./configure --enable-static --disable-shared $CONFIGOPTS --prefix=$TARGET ; then
echo -e "\n !!! 配置 ilmbase库 失败,无法安装成功\n"
exit 1
fi
sleep 2
if make $MAKEOPTS && make install ; then
echo -e "\n * ilmbase库,编译和安装成功\n"
else
echo -e "\n !!! ilmbase库,编译和安装失败\n"
exit 1
fi
cd ../OpenEXR
if ! ./bootstrap ; then
echo -e "\n !!! 生成 EXR高动态图像函数库 的安装引导 失败\n"
exit 1
fi
if ! ./configure --enable-static --disable-shared $CONFIGOPTS --prefix=$TARGET --with-ilmbase-prefix=$TARGET ; then
echo -e "\n !!! 配置 EXR高动态图像函数库 失败,无法安装成功\n"
exit 1
fi
sleep 2
if make $MAKEOPTS && make install ; then
echo -e "\n * EXR高动态图像函数库,编译和安装成功\n"
else
echo -e "\n !!! EXR高动态图像函数库,编译和安装失败\n"
exit 1
fi
exit 0