# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python class Recipe(recipe.Recipe): name = 'm4' version = '1.4.18' licenses = [License.GPLv2] stype = SourceType.TARBALL url = 'https://ftp.gnu.org/gnu/m4/m4-%(version)s.tar.xz' tarball_checksum = 'f2c1e86ca0a404ff281631bdc8377638992744b175afb806e25871a24a934e07' files_bins = ['m4'] patches = ['m4/0001-Fix-build-invalid-instruction-on-macOS-10.13.patch', 'm4/0001-Undefine-__USE_MINGW_ANSI_STDIO-as-otherwise-stdio.h.patch', 'm4/0001-m4-compilation-with-glibc-2.28.patch'] def prepare(self): self.configure_options += " --disable-gcc-warnings" self.append_env('CFLAGS', '-Wno-error=cast-align')