lfs-buildscripts/CH8Build/CH08.20-mpfr.sh

52 lines
854 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:11:06 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-05 06:46:05 +08:00
[ -d mpfr-${mpfr_version} ] && rm -rf mpfr-${mpfr_version}
tar -Jxf ${mpfr_tarball}
cd mpfr-${mpfr_version}
./configure --prefix=/usr \
--disable-static \
--enable-thread-safe \
--docdir=/usr/share/doc/mpfr-${mpfr_version}
make
if [ $? -ne 0 ]; then
myfail "Failed building mpfr"
fi
make html
if [ $? -ne 0 ]; then
myfail "Failed building mpfr html"
fi
2024-10-09 03:11:06 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running mpfr make check"
make check > ${GLSOURCES}/mpfr.check.log 2>&1
fi
2024-10-05 06:46:05 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing mpfr"
fi
make install-html
if [ $? -ne 0 ]; then
myfail "Failed installing mpfr 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 mpfr-${mpfr_version}
popd