void-packages/srcpkgs/bc/template
newbluemoon 75034ce74b bc: fix cross-compilation
Closes: #7416 [via git-merge-pr]
2017-09-02 14:50:47 -07:00

27 lines
756 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'bc'
pkgname=bc
version=1.07.1
revision=2
build_style=gnu-configure
configure_args="--with-readline"
hostmakedepends="ed flex"
makedepends="readline-devel"
short_desc="An arbitrary precision numeric processing language"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gnu.org/software/${pkgname}/"
license="GPL-3"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
disable_parallel_build=yes
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" bc"
pre_build() {
# dont run target built binary 'fbc';
# run host 'bc' instead
sed -i -e 's|^\(\s\+\)./fbc|\1bc|g' bc/Makefile
}
fi
do_build() {
make ${makejobs} LEX="flex -I"
}