mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
52 lines
1.9 KiB
Bash
52 lines
1.9 KiB
Bash
# Template file for 'cross-armv7l-linux-gnueabihf'
|
|
_binutils_version=2.44
|
|
_gcc_version=14.2.1+20250405
|
|
_glibc_version=2.41
|
|
_linux_version=6.14
|
|
pkgname=cross-armv7l-linux-gnueabihf
|
|
version=0.37
|
|
revision=1
|
|
build_style=void-cross
|
|
configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
|
|
hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
|
|
makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
|
|
zlib-devel libzstd-devel"
|
|
depends="${pkgname}-libc-${version}_${revision}"
|
|
short_desc="Void cross toolchain for ${pkgname/cross-}"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://www.voidlinux.org/"
|
|
case "${_gcc_version}" in
|
|
*+*) distfiles="https://gcc.gnu.org/pub/gcc/snapshots/${_gcc_version%%.*}-${_gcc_version#*+}/gcc-${_gcc_version%%.*}-${_gcc_version#*+}.tar.xz" ;;
|
|
*) distfiles="${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz" ;;
|
|
esac
|
|
distfiles+=" ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
|
|
distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
|
|
distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
|
|
checksum="9a84b0947d8fb18197eef3fce8e255e30a61f7f382cebb961b1705c1d99214a3
|
|
ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
|
|
a5a26b22f545d6b7d7b3dd828e11e428f24f4fac43c934fb071b6a7d0828e901
|
|
a294b683e7b161bb0517bb32ec7ed1d2ea7603dfbabad135170ed12d00c47670"
|
|
nocross=yes
|
|
|
|
cross_glibc_cflags="-O2 -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "armv7l" ]; then
|
|
broken="Can't build crosstoolchain to itself"
|
|
fi
|
|
|
|
case "$XBPS_MACHINE" in
|
|
ppc64*) ;;
|
|
ppc*|mips*) broken="no gccgo support";;
|
|
esac
|
|
|
|
cross-armv7l-linux-gnueabihf-libc_package() {
|
|
short_desc+=" - glibc files"
|
|
nostrip=yes
|
|
noshlibprovides=yes
|
|
noverifyrdeps=yes
|
|
|
|
pkg_install() {
|
|
vmove usr/${sourcepkg/cross-}
|
|
}
|
|
}
|