/* * m4 — GNU macro processor. * * The universal autotools helper: every autoconf-generated configure * script and many build systems (gmp's asm, gettext, bison) invoke m4. * Standalone build — needs only a C compiler and make. * * PORTABILITY: built with defaults; no distro-specific flags. */ package "m4" { const version = "1.4.21" const source = "https://ftp.gnu.org/gnu/m4/m4-${version}.tar.gz" sha256 = "38ae59f7a30bf9c108193cc5c25fbb06014f21e230c7ede2eff614f7b7c37ed8" license = "GPL-3.0-or-later" provides = ["m4"] prepare { curl -L -O ${source} echo "38ae59f7a30bf9c108193cc5c25fbb06014f21e230c7ede2eff614f7b7c37ed8 m4-${version}.tar.gz" | sha256sum -c - tar xf m4-${version}.tar.gz --strip-components=1 } build { ./configure --prefix=${prefix} make -j${jobs} } // NOTE: no check phase — the bundled gnulib test-suite fails to compile // on modern glibc (test-float-h.c: FLT_IS_IEC_60559 / DBL_IS_IEC_60559 / // LDBL_IS_IEC_60559 undeclared). Upstream issue, not a build failure: // the m4 binary itself compiles cleanly. install { make DESTDIR=${destdir} install } }