void-packages/srcpkgs/cross-or1k-none-elf-binutils/template

43 lines
1.1 KiB
Bash

# Template file for 'cross-${_triplet}-${_pkgname}'
_triplet=or1k-none-elf
_pkgname=binutils
pkgname=cross-${_triplet}-${_pkgname}
version=2.35
revision=1
wrksrc="${_pkgname}-${version}"
build_style=gnu-configure
configure_args="
--disable-nls
--enable-deterministic-archives
--enable-interwork
--enable-ld
--enable-multilib
--enable-plugins
--host=${XBPS_CROSS_TRIPLET}
--prefix=/usr
--target=${_triplet}
--with-gnu-as
--with-gnu-ld
--with-sysroot=/usr/${_triplet}
--with-system-zlib
--without-isl
"
hostmakedepends="autoconf automake bison flex perl"
makedepends="zlib-devel"
depends="binutils-doc"
short_desc="GNU binary utilities"
maintainer="John Sullivan <jsullivan@csumb.edu>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz"
checksum=1b11659fb49e20e18db460d44485f09442c8c56d5df165de9461eb09c8302f85
nocross=yes
if [ "$XBPS_TARGET_WORDSIZE" != "64" ]; then
broken="cross-or1k-none-elf-gcc requires 64-bit host, don't ship binutils"
fi
post_install() {
rm -fr ${DESTDIR}/usr/share/info
}