Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Arbitrary precision calculator language" |
| 2 | HOMEPAGE = "http://www.gnu.org/software/bc/bc.html" |
| 3 | |
| 4 | LICENSE = "GPLv3+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
| 6 | file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 7 | file://bc/bcdefs.h;endline=17;md5=4295c06df9e833519a342f7b5d43db06 \ |
| 8 | file://dc/dc.h;endline=18;md5=36b8c600b63ee8c3aeade2764f6b2a4b \ |
| 9 | file://lib/number.c;endline=20;md5=cf43068cc88f837731dc53240456cfaf" |
| 10 | |
| 11 | SECTION = "base" |
| 12 | DEPENDS = "flex-native" |
| 13 | |
| 14 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ |
| 15 | file://no-gen-libmath.patch \ |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame^] | 16 | file://libmath.h \ |
| 17 | file://0001-dc-fix-exit-code-of-q-command.patch" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 18 | SRC_URI[md5sum] = "cda93857418655ea43590736fc3ca9fc" |
| 19 | SRC_URI[sha256sum] = "62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a" |
| 20 | |
| 21 | inherit autotools texinfo update-alternatives |
| 22 | |
| 23 | PACKAGECONFIG ??= "readline" |
| 24 | PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" |
| 25 | PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit" |
| 26 | |
| 27 | do_compile_prepend() { |
| 28 | cp -f ${WORKDIR}/libmath.h ${B}/bc/libmath.h |
| 29 | } |
| 30 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 31 | ALTERNATIVE_${PN} = "bc dc" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 32 | ALTERNATIVE_PRIORITY = "100" |
| 33 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 34 | BBCLASSEXTEND = "native" |