notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details on branch 2026Q3
m4 GNU M4
1.4.21,1 devel on this many watch lists=662 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.4.21,1Version of this port present on the latest quarterly branch.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: unknown
Last Update: 2026-03-09 18:18:15
Commit Hash: 23c5b87
People watching this port, also watch:: gmake, libiconv, expat, gettext, png
License: GPLv3
WWW:
https://www.gnu.org/software/m4/m4.html
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (81 items)
Collapse this list.
  1. /usr/local/share/licenses/m4-1.4.21,1/catalog.mk
  2. /usr/local/share/licenses/m4-1.4.21,1/LICENSE
  3. /usr/local/share/licenses/m4-1.4.21,1/GPLv3
  4. bin/gm4
  5. share/examples/gm4/barem4.m4
  6. share/examples/gm4/capitalize.m4
  7. share/examples/gm4/capitalize2.m4
  8. share/examples/gm4/comments.m4
  9. share/examples/gm4/curry.m4
  10. share/examples/gm4/ddivert.m4
  11. share/examples/gm4/debug.m4
  12. share/examples/gm4/esyscmd.m4
  13. share/examples/gm4/exp.m4
  14. share/examples/gm4/file.m4
  15. share/examples/gm4/foreach.m4
  16. share/examples/gm4/foreach2.m4
  17. share/examples/gm4/foreachq.m4
  18. share/examples/gm4/foreachq2.m4
  19. share/examples/gm4/foreachq3.m4
  20. share/examples/gm4/foreachq4.m4
  21. share/examples/gm4/forloop.m4
  22. share/examples/gm4/forloop2.m4
  23. share/examples/gm4/forloop3.m4
  24. share/examples/gm4/fstab.m4
  25. share/examples/gm4/hanoi.m4
  26. share/examples/gm4/incl-test.m4
  27. share/examples/gm4/incl.m4
  28. share/examples/gm4/include.m4
  29. share/examples/gm4/indir.m4
  30. share/examples/gm4/join.m4
  31. share/examples/gm4/loop.m4
  32. share/examples/gm4/misc.m4
  33. share/examples/gm4/multiquotes.m4
  34. share/examples/gm4/patsubst.m4
  35. share/examples/gm4/pushpop.m4
  36. share/examples/gm4/quote.m4
  37. share/examples/gm4/regexp.m4
  38. share/examples/gm4/reverse.m4
  39. share/examples/gm4/stack.m4
  40. share/examples/gm4/stack_sep.m4
  41. share/examples/gm4/sync-lines.m4
  42. share/examples/gm4/sysv-args.m4
  43. share/examples/gm4/testbarem4.m4
  44. share/examples/gm4/trace.m4
  45. share/examples/gm4/translit.m4
  46. share/examples/gm4/undivert.m4
  47. share/examples/gm4/wrap.m4
  48. share/examples/gm4/wrapfifo.m4
  49. share/examples/gm4/wraplifo.m4
  50. share/examples/gm4/wraplifo2.m4
  51. share/locale/bg/LC_MESSAGES/m4.mo
  52. share/locale/cs/LC_MESSAGES/m4.mo
  53. share/locale/da/LC_MESSAGES/m4.mo
  54. share/locale/de/LC_MESSAGES/m4.mo
  55. share/locale/el/LC_MESSAGES/m4.mo
  56. share/locale/eo/LC_MESSAGES/m4.mo
  57. share/locale/es/LC_MESSAGES/m4.mo
  58. share/locale/fi/LC_MESSAGES/m4.mo
  59. share/locale/fr/LC_MESSAGES/m4.mo
  60. share/locale/ga/LC_MESSAGES/m4.mo
  61. share/locale/gl/LC_MESSAGES/m4.mo
  62. share/locale/hr/LC_MESSAGES/m4.mo
  63. share/locale/id/LC_MESSAGES/m4.mo
  64. share/locale/ja/LC_MESSAGES/m4.mo
  65. share/locale/ka/LC_MESSAGES/m4.mo
  66. share/locale/ko/LC_MESSAGES/m4.mo
  67. share/locale/nl/LC_MESSAGES/m4.mo
  68. share/locale/pl/LC_MESSAGES/m4.mo
  69. share/locale/pt_BR/LC_MESSAGES/m4.mo
  70. share/locale/ro/LC_MESSAGES/m4.mo
  71. share/locale/ru/LC_MESSAGES/m4.mo
  72. share/locale/sr/LC_MESSAGES/m4.mo
  73. share/locale/sv/LC_MESSAGES/m4.mo
  74. share/locale/uk/LC_MESSAGES/m4.mo
  75. share/locale/vi/LC_MESSAGES/m4.mo
  76. share/locale/zh_CN/LC_MESSAGES/m4.mo
  77. share/locale/zh_TW/LC_MESSAGES/m4.mo
  78. share/man/man1/gm4.1.gz
  79. @owner
  80. @group
  81. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • m4>0:devel/m4
To install the port:
cd /usr/ports/devel/m4/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/m4
  • pkg install m4
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: m4
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1771421424 SHA256 (m4-1.4.21.tar.xz) = f25c6ab51548a73a75558742fb031e0625d6485fe5f9155949d6486a2408ab66 SIZE (m4-1.4.21.tar.xz) = 2080016

Packages (timestamps in pop-ups are UTC):
m4
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest1.4.21,11.4.21,11.4.18_1,11.4.19_1,11.4.21,1n/an/an/a
FreeBSD:13:quarterly1.4.21,11.4.21,11.4.19,11.4.19_1,11.4.21,1n/an/an/a
FreeBSD:14:latest1.4.21,11.4.21,11.4.19,11.4.19_1,11.4.21,11.4.19,1-1.4.19,1
FreeBSD:14:quarterly1.4.21,11.4.21,1-1.4.19_1,11.4.21,11.4.19,11.4.19,11.4.19,1
FreeBSD:15:latest1.4.21,11.4.21,1n/a1.4.19_1,1n/an/a1.4.19_1,11.4.19_1,1
FreeBSD:15:quarterly1.4.21,11.4.21,1n/a-n/an/a--
FreeBSD:16:latest1.4.21,11.4.21,1n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. makeinfo : print/texinfo
  2. gettext-runtime>=0.26 : devel/gettext-runtime
  3. gettext-tools>=0.26 : devel/gettext-tools
Runtime dependencies:
  1. indexinfo : print/indexinfo
Library dependencies:
  1. libintl.so : devel/gettext-runtime
This port is required by:
for Build
  1. cad/pcb
  2. databases/mongodb70
  3. databases/mongodb80
  4. devel/autoconf
  5. devel/autoconf2.13
  6. devel/autoconf2.69
  7. devel/bison
Expand this list (40 items / 33 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. devel/ispc
  3. devel/libtool
  4. devel/ppl
  5. devel/rgxg
  6. dns/adns
  7. lang/spidermonkey128
  8. lang/spidermonkey140
  9. science/abinit
  10. science/afni
  11. www/pomerium-envoy-custom
  12. x11-themes/fvwm-themes
  13. Collapse this list.

Deleted ports which required this port:

Expand this list of 22 deleted ports
  1. databases/libgdamm*
  2. devel/autoconf213*
  3. devel/gconfmm*
  4. devel/libbonobomm*
  5. devel/libglademm*
  6. devel/libsigcx*
  7. graphics/amide*
  8. graphics/libgnomecanvasmm*
  9. hungarian/ispell*
  10. java/jdk15*
  11. lang/rakudo*
  12. lang/spidermonkey115*
  13. net/opensips*
  14. net/opensips31*
  15. print/libgnomeprintmm*
  16. security/krb5-111*
  17. security/krb5-maint*
  18. x11/libgnomemm*
  19. x11-toolkits/gtkmm12*
  20. x11-toolkits/libbonobouimm*
  21. x11-toolkits/libgnomeuimm*
  22. x11-toolkits/libpanelappletmm*
  23. Collapse this list of deleted ports.
for Run
  1. cad/pcb
  2. devel/autoconf
  3. devel/autoconf2.13
  4. devel/autoconf2.69
  5. devel/bison
  6. devel/libtool
  7. devel/z88dk
Expand this list (10 items / 3 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. x11-wm/fvwm2
  3. Collapse this list.

Deleted ports which required this port:

Expand this list of 2 deleted ports
  1. devel/autoconf213*
  2. x11-wm/fvwm2-i18n*
  3. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
===> The following configuration options are available for m4-1.4.21,1: EXAMPLES=on: Build and/or install examples INFO=on: Build and/or install GNU info pages LIBSIGSEGV=off: Use alternative page fault handler (GNU libsigsegv) NLS=on: Native Language Support ===> Use 'make config' to modify these settings
Options name:
devel_m4
USES:
cpe iconv tar:xz makeinfo gettext
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (10 items)
Collapse this list.
  1. ftp://ftp.fu-berlin.de/unix/gnu/m4/
  2. ftp://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu/m4/
  3. ftp://mirrors.rit.edu/gnu/m4/
  4. http://ftp.halifax.rwth-aachen.de/gnu/m4/
  5. http://mirror.navercorp.com/gnu/m4/
  6. https://ftp.gnu.org/gnu/m4/
  7. https://ftpmirror.gnu.org/m4/
  8. https://mirror.netcologne.de/gnu/m4/
  9. https://mirrors.kernel.org/gnu/m4/
  10. https://www.nic.funet.fi/pub/gnu/gnu/m4/
Collapse this list.

There are no commits on branch 2026Q3 for this port