2022-04-24 04:59:17 +01:00
|
|
|
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
2021-03-20 23:49:43 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-03-31 19:08:50 +01:00
|
|
|
src_get() {
|
|
|
|
# Before the last pass the tar file is moved before
|
|
|
|
# the linux build removes all distfiles to save space.
|
|
|
|
if [ -e "../${pkg}.tar.gz" ]; then
|
|
|
|
mkdir "${DISTFILES}"
|
|
|
|
mv "../${pkg}.tar.gz" "${DISTFILES}"
|
|
|
|
else
|
|
|
|
default
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2021-03-20 23:49:43 +00:00
|
|
|
src_configure() {
|
|
|
|
CC=gcc ./configure \
|
2021-07-06 00:13:58 +01:00
|
|
|
--host=i386-unknown-linux-musl \
|
2021-03-20 23:49:43 +00:00
|
|
|
--disable-shared \
|
2021-06-24 00:32:19 +01:00
|
|
|
--prefix="${PREFIX}" \
|
2022-09-14 13:07:13 +01:00
|
|
|
--libdir="${LIBDIR}" \
|
2021-06-24 00:32:19 +01:00
|
|
|
--includedir="${PREFIX}/include/"
|
2021-03-20 23:49:43 +00:00
|
|
|
|
|
|
|
# configure script creates this file
|
2021-03-29 18:20:10 +01:00
|
|
|
if test -f /dev/null; then
|
|
|
|
rm /dev/null
|
|
|
|
mknod -m 666 /dev/null c 1 3
|
|
|
|
fi
|
2021-03-20 23:49:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2023-04-10 06:30:16 +01:00
|
|
|
make "${MAKEJOBS}" CROSS_COMPILE=
|
2021-03-20 23:49:43 +00:00
|
|
|
}
|