parent
eb57e79e48
commit
75034ce74b
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'bc'
|
# Template file for 'bc'
|
||||||
pkgname=bc
|
pkgname=bc
|
||||||
version=1.07.1
|
version=1.07.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-readline"
|
configure_args="--with-readline"
|
||||||
hostmakedepends="ed flex"
|
hostmakedepends="ed flex"
|
||||||
|
@ -13,16 +13,13 @@ license="GPL-3"
|
||||||
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
|
checksum=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
|
||||||
disable_parallel_build=yes
|
disable_parallel_build=yes
|
||||||
nocross="https://build.voidlinux.eu/builders/armv7l_builder/builds/2093/steps/shell_3/logs/stdio"
|
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" bc"
|
hostmakedepends+=" bc"
|
||||||
pre_build() {
|
pre_build() {
|
||||||
(
|
# don’t run target built binary 'fbc';
|
||||||
cd bc
|
# run host 'bc' instead
|
||||||
bc -c libmath.b </dev/null >libmath.h
|
sed -i -e 's|^\(\s\+\)./fbc|\1bc|g' bc/Makefile
|
||||||
./fix-libmath_h
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
do_build() {
|
do_build() {
|
||||||
|
|
Loading…
Reference in New Issue