31 lines
977 B
TOML
31 lines
977 B
TOML
[source]
|
|
tar = "https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.xz"
|
|
blake3 = "9dd90be8df4d0474b941e2ca14ac76d11b7ccb46edb26344b60d866178bbcc98"
|
|
|
|
[build]
|
|
template = "custom"
|
|
script = """
|
|
DYNAMIC_INIT
|
|
export ac_cv_func___fseterr=yes
|
|
export ac_cv_type_sigset_t=yes
|
|
export ac_cv_type_posix_spawnattr_t=yes
|
|
export ac_cv_type_posix_spawn_file_actions_t=yes
|
|
COOKBOOK_CONFIGURE_FLAGS+=(
|
|
--disable-nls
|
|
)
|
|
# Prevent aclocal/automake regeneration during cross-compilation.
|
|
# Bison's Makefile references aclocal-1.16 which may not match the host's
|
|
# automake version (e.g. 1.18). Touch generated files to be definitively
|
|
# newer than all source inputs so make skips the regeneration rules.
|
|
sleep 1
|
|
touch "${COOKBOOK_SOURCE}/aclocal.m4" \
|
|
"${COOKBOOK_SOURCE}/configure" \
|
|
"${COOKBOOK_SOURCE}/Makefile.in" \
|
|
"${COOKBOOK_SOURCE}/config.h.in" 2>/dev/null || true
|
|
cookbook_configure
|
|
"""
|
|
|
|
[package]
|
|
description = "GNU parser generator (yacc-compatible)"
|
|
dependencies = ["m4"]
|