2021-04-03 18:40:48 +01:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-05-12 10:50:28 +01:00
|
|
|
urls="http://mirrors.kernel.org/gnu/gmp/gmp-6.2.1.tar.xz"
|
|
|
|
|
2021-04-03 18:40:48 +01:00
|
|
|
src_prepare() {
|
2021-05-03 23:48:06 +01:00
|
|
|
default
|
2021-04-03 18:40:48 +01:00
|
|
|
|
|
|
|
# Remove bison and flex generated files
|
|
|
|
rm demos/calc/calc.{c,h} demos/calc/calclex.c
|
|
|
|
|
2022-07-07 20:43:39 +01:00
|
|
|
AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
|
2021-04-11 22:57:43 +01:00
|
|
|
|
2021-07-15 17:59:11 +01:00
|
|
|
# Pre-built texinfo files
|
2021-04-11 22:57:43 +01:00
|
|
|
find . -name '*.info*' -delete
|
2021-04-03 18:40:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
./configure \
|
|
|
|
--prefix="${PREFIX}" \
|
2021-06-30 18:04:05 +01:00
|
|
|
--libdir="${PREFIX}/lib/musl" \
|
2021-07-06 00:13:58 +01:00
|
|
|
--build=i386-unknown-linux-musl \
|
2021-06-30 18:04:05 +01:00
|
|
|
--disable-shared
|
2021-04-03 18:40:48 +01:00
|
|
|
}
|
2021-04-11 22:57:43 +01:00
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
make MAKEINFO=true DESTDIR="${DESTDIR}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
make MAKEINFO=true DESTDIR="${DESTDIR}" install
|
|
|
|
}
|