live-bootstrap/sysc/mpfr-4.1.0/mpfr-4.1.0.sh

35 lines
759 B
Bash
Raw Normal View History

2021-04-17 23:54:19 +01:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
2021-04-17 23:54:19 +01:00
find . -name '*.info' -delete
2022-07-07 20:43:39 +01:00
AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
2021-04-17 23:54:19 +01:00
}
src_configure() {
./configure \
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
2021-06-30 18:04:05 +01:00
--disable-shared
2021-04-17 23:54:19 +01:00
# Disable tuning as that might cause non-reproducible build
mv mparam.h src
}
src_compile() {
make MAKEINFO=true DESTDIR="${DESTDIR}"
}
src_install() {
make MAKEINFO=true DESTDIR="${DESTDIR}" install
}
2023-02-26 09:41:59 +00:00
src_postprocess() {
# For some unexplainable reason, stripping mpfr breaks GCC 10 build.
# I cannot make any sense of the error, so skip for now.
:
}