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

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