lfs-buildscripts/CH8Build/CH08.21-mpc.sh

41 lines
691 B
Bash
Raw Normal View History

2024-10-05 06:46:05 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d mpc-${mpc_version} ] && rm -rf mpc-${mpc_version}
tar -zxf ${mpc_tarball}
cd mpc-${mpc_version}
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/mpc-${mpc_version}
make
if [ $? -ne 0 ]; then
myfail "Failed building mpc"
fi
make html
if [ $? -ne 0 ]; then
myfail "Failed building mpc html"
fi
echo "running mpc make check"
make check > ${GLSOURCES}/mpc.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing mpc"
fi
make install-html
if [ $? -ne 0 ]; then
myfail "Failed installing mpc html"
fi