Files
RedBear-OS/local/recipes/dev/m4/recipe.toml
T

31 lines
802 B
TOML

[source]
tar = "https://ftp.gnu.org/gnu/m4/m4-1.14.21.tar.xz"
patches = ["redox.patch"]
[build]
template = "custom"
script = """
export CFLAGS="-fcommon ${CFLAGS}"
DYNAMIC_INIT
export LDFLAGS="-Wl,--allow-multiple-definition ${LDFLAGS}"
COOKBOOK_CONFIGURE_FLAGS+=(
--disable-nls
ac_cv_func___freadahead=yes
ac_cv_have_decl___freadahead=yes
gl_cv_header_wchar_h_correct_inline=yes
gl_cv_func_btowc_nul=yes
gl_cv_func_btowc_consistent=yes
gl_cv_onwards_func___freadahead=yes
)
sleep 1
touch "${COOKBOOK_SOURCE}/aclocal.m4" \
"${COOKBOOK_SOURCE}/configure" \
"${COOKBOOK_SOURCE}/Makefile.in" \
"${COOKBOOK_SOURCE}/config.h.in" \
"${COOKBOOK_SOURCE}/doc/m4.1" 2>/dev/null || true
cookbook_configure
"""
[package]
description = "GNU M4 macro processor"