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

51 lines
812 B
Bash
Raw Normal View History

2024-10-05 06:46:05 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 03:43:22 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-05 06:46:05 +08:00
[ -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
2024-10-09 03:43:22 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running mpc make check"
make check > ${GLSOURCES}/mpc.check.log 2>&1
fi
2024-10-05 06:46:05 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing mpc"
fi
make install-html
if [ $? -ne 0 ]; then
myfail "Failed installing mpc html"
fi
2024-10-08 12:28:55 +08:00
popd
2024-10-05 06:46:05 +08:00
2024-10-08 12:28:55 +08:00
# cleanup
pushd $GLSOURCES
rm -rf mpc-${mpc_version}
popd