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
31 lines
701 B
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# 接收参数
|
|
TARGET=$1
|
|
CONFIGOPTS=$2
|
|
|
|
|
|
|
|
echo -e "\n正在编译和安装 jpeg图像函数库(jpeg)……\n"
|
|
|
|
${SHELLROOT}/utils/begin_stage jpeg jpeg*.tar.gz
|
|
cd ${SHELLROOT}/tempDIR/`echo jpeg*.tar.gz | sed 's/\*.*//'`*
|
|
|
|
cp /usr/bin/libtool .
|
|
if ! ./configure $CONFIGOPTS --enable-static --prefix=$TARGET ; then
|
|
echo -e "\n !!! 配置 jpeg图像函数库(jpeg)失败,无法安装成功\n"
|
|
exit 1
|
|
fi
|
|
|
|
sleep 2
|
|
if make $MAKEOPTS && cp -vf .libs/libjpeg.a $TARGET/lib && cp -vf *.h $TARGET/include ; then
|
|
echo -e "\n * jpeg图像函数库(jpeg),编译和安装成功\n"
|
|
else
|
|
echo -e "\n !!! jpeg图像函数库(jpeg),编译和安装失败\n"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|