Ports/bc: Update bc to version 5.2.3

Also added the recommended CFLAGS.
This commit is contained in:
EWouters 2022-04-01 01:49:54 +02:00 committed by Brian Gianforcaro
parent 4c1d8a7785
commit 7952af9b6d
2 changed files with 4 additions and 2 deletions

View file

@ -9,7 +9,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`bash`](bash/) | GNU Bash | 5.1.16 | https://www.gnu.org/software/bash/ |
| [`awk`](awk/) | The One True Awk | 20220122 | https://github.com/onetrueawk/awk |
| [`bass`](bass/) | Beneath a Steel Sky | cd-1.2 | https://www.scummvm.org/games |
| [`bc`](bc/) | bc | 5.1.1 | https://github.com/gavinhoward/bc |
| [`bc`](bc/) | bc | 5.2.3 | https://github.com/gavinhoward/bc |
| [`bdwgc`](bdwgc/) | Boehm-Demers-Weiser Garbage Collector (libgc) | 8.0.6 | https://github.com/ivmai/bdwgc |
| [`binutils`](binutils/) | GNU Binutils | 2.38 | https://www.gnu.org/software/binutils/ |
| [`bison`](bison/) | GNU Bison | 1.25 | https://www.gnu.org/software/bison/ |

View file

@ -1,6 +1,6 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=bc
version=5.1.1
version=5.2.3
files="https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz bc-${version}.tar.xz
https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz.sig bc-${version}.tar.xz.sig"
useconfigure=true
@ -10,6 +10,8 @@ auth_import_key="E2A30324A4465A4D5882692EC08038BDF280D33E"
auth_opts=("bc-${version}.tar.xz.sig")
configopts=("--prefix=/usr/local" "--disable-nls")
export CFLAGS="-O3 -flto"
configure() {
run env HOSTCC=gcc ./"$configscript" "${configopts[@]}"
}