BSD Ports

devel/m4 1.4.21,1 MidnightBSD

GNU M4

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
gpl3
Categories
devel

Description

GNU M4 is an implementation of the traditional Unix macro processor. It is mostly SVR4 compatible although it has some extensions (for example, handling more than 9 positional parameters to macros). GNU M4 also has built-in functions for including files, running shell commands, doing arithmetic, etc.

GNU M4 is a macro processor in the sense that it copies its input to the output expanding macros as it goes. Macros are either builtin or user-defined and can take any number of arguments. Besides just doing macro expansion, m4 has builtin functions for including named files, running UNIX commands, doing integer arithmetic, manipulating text in various ways, recursion etc... m4 can be used either as a front-end to a compiler or as a macro processor in its own right.

One of the biggest users of GNU M4 is the GNU Autoconf project.

In the other systems

SystemPortVersion
MidnightBSDdevel/m41.4.21,1
FreeBSDdevel/m41.4.21,1
OpenBSDdevel/m41.4.21
NetBSDdevel/m41.4.21
DragonFlydevel/m41.4.19_1,1
HardenedBSDdevel/m41.4.21,1
GhostBSDdevel/m41.4.21,1
OPNsensedevel/m41.4.21,1

Install

Binary package:

mport install m4

From mports:

cd /usr/mports/devel/m4 && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	m4>0:devel/m4

Dependencies

Configuration

Options name: devel_m4

OptionDefaultDescription
EXAMPLESoff
LIBSIGSEGVoffUse alternative page fault handler (GNU libsigsegv)
USES
makeinfo tar:xz cpe
Service scripts
none

Files

Manual pages 1
  • gm4(1)
pkg-plist 46
  • bin/gm4
  • share/man/man1/gm4.1.gz
  • share/examples/m4/capitalize.m4
  • share/examples/m4/capitalize2.m4
  • share/examples/m4/comments.m4
  • share/examples/m4/curry.m4
  • share/examples/m4/ddivert.m4
  • share/examples/m4/debug.m4
  • share/examples/m4/esyscmd.m4
  • share/examples/m4/exp.m4
  • share/examples/m4/file.m4
  • share/examples/m4/foreach.m4
  • share/examples/m4/foreach2.m4
  • share/examples/m4/foreachq.m4
  • share/examples/m4/foreachq2.m4
  • share/examples/m4/foreachq3.m4
  • share/examples/m4/foreachq4.m4
  • share/examples/m4/forloop.m4
  • share/examples/m4/forloop2.m4
  • share/examples/m4/forloop3.m4
  • share/examples/m4/fstab.m4
  • share/examples/m4/hanoi.m4
  • share/examples/m4/incl-test.m4
  • share/examples/m4/incl.m4
  • share/examples/m4/include.m4
  • share/examples/m4/indir.m4
  • share/examples/m4/join.m4
  • share/examples/m4/loop.m4
  • share/examples/m4/misc.m4
  • share/examples/m4/multiquotes.m4
  • share/examples/m4/patsubst.m4
  • share/examples/m4/pushpop.m4
  • share/examples/m4/quote.m4
  • share/examples/m4/regexp.m4
  • share/examples/m4/reverse.m4
  • share/examples/m4/stack.m4
  • share/examples/m4/stack_sep.m4
  • share/examples/m4/sync-lines.m4
  • share/examples/m4/sysv-args.m4
  • share/examples/m4/trace.m4
  • share/examples/m4/translit.m4
  • share/examples/m4/undivert.m4
  • share/examples/m4/wrap.m4
  • share/examples/m4/wrapfifo.m4
  • share/examples/m4/wraplifo.m4
  • share/examples/m4/wraplifo2.m4
distinfo 1
FileSizeSHA256
m4-1.4.21.tar.xz2.080016e+06f25c6ab51548a73a75558742fb031e0625d6485fe5f9155949d6486a2408ab66
Master sites 1
  • GNU