1SUMMARY = "Arbitrary precision calculator language" 2HOMEPAGE = "http://www.gnu.org/software/bc/bc.html" 3DESCRIPTION = "bc is an arbitrary precision numeric processing language. Syntax is similar to C, but differs in many substantial areas. It supports interactive execution of statements." 4 5LICENSE = "GPL-3.0-or-later" 6LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ 7 file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ 8 file://bc/bcdefs.h;endline=17;md5=4295c06df9e833519a342f7b5d43db06 \ 9 file://dc/dc.h;endline=18;md5=36b8c600b63ee8c3aeade2764f6b2a4b \ 10 file://lib/number.c;endline=20;md5=cf43068cc88f837731dc53240456cfaf" 11 12SECTION = "base" 13DEPENDS = "flex-native" 14 15SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ 16 file://no-gen-libmath.patch \ 17 file://libmath.h \ 18 file://0001-dc-fix-exit-code-of-q-command.patch \ 19 file://run-ptest" 20SRC_URI[md5sum] = "cda93857418655ea43590736fc3ca9fc" 21SRC_URI[sha256sum] = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a" 22 23inherit autotools texinfo update-alternatives ptest 24 25PACKAGECONFIG ??= "readline" 26PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" 27PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit" 28 29do_compile:prepend() { 30 cp -f ${WORKDIR}/libmath.h ${B}/bc/libmath.h 31} 32 33do_install_ptest() { 34 install ${S}/Test/*.b ${D}${PTEST_PATH} 35} 36 37ALTERNATIVE:${PN} = "bc dc" 38ALTERNATIVE_PRIORITY = "100" 39 40BBCLASSEXTEND = "native nativesdk" 41