Port details
mcpp Alternative C/C++ preprocessor
2.7.2.1_1 devel Σ=0 search for ports that depend on this port An older version of this port was marked as vulnerable. Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.7.2.1_1Version of this port present on the latest quarterly branch. upstream: 2.7-3A newer version was found upstream by portscout, first on 2026-06-20.
Maintainer: kmatsui@t3.rim.or.jp search for ports maintained by this maintainer
Port Added: 2007-04-15 19:02:40
Last Update: 2026-11-24 16:06:28
Commit Hash: a9844c5
License: BSD2CLAUSE
WWW:
https://mcpp.sourceforge.net/
Description: #
C/C++ preprocessor defines and expands macros and processes '#if', '#include' and some other directives. MCPP is an alternative C/C++ preprocessor with the highest conformance. It supports multiple standards: K&R, ISO C90, ISO C99, and ISO C++98. MCPP is especially useful for debugging a source program which use complicated macros and also useful for checking portability of a source. Though mcpp could be built as a replacement of GCC's resident preprocessor or as a stand-alone program without using library build of mcpp, this package installs a program named 'mcpp' which links shared library of libmcpp and behaves independent from GCC.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb
Manual pages: #
pkg-plist: as obtained via: make generate-plist #
Expand this list (21 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/mcpp-2.7.2.1_1/catalog.mk
  3. /usr/local/share/licenses/mcpp-2.7.2.1_1/LICENSE
  4. /usr/local/share/licenses/mcpp-2.7.2.1_1/BSD2CLAUSE
  5. share/sbom/pc/mcpp.pc
  6. bin/mcpp
  7. include/mcpp_lib.h
  8. include/mcpp_out.h
  9. lib/libmcpp.a
  10. lib/libmcpp.so
  11. lib/libmcpp.so.0
  12. lib/libmcpp.so.0.3.0
  13. share/man/man1/mcpp.1.gz
  14. @comment share/doc/mcpp/LICENSE
  15. share/doc/mcpp/NEWS
  16. share/doc/mcpp/README
  17. share/doc/mcpp/mcpp-manual-jp.html
  18. share/doc/mcpp/mcpp-manual.html
  19. @owner
  20. @group
  21. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • For RUN/BUILD depends:
    • mcpp>0:devel/mcpp
  • For LIB depends:
    • libmcpp.so:devel/mcpp
To install the port: #
cd /usr/ports/devel/mcpp/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/mcpp
  • pkg install mcpp
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
To download the package and its dependencies for another FreeBSD version or architecture, without installing it:
  • pkg -o ABI=FreeBSD:15:$(pkg config abi | cut -d: -f3) fetch -d -o . mcpp
Change 15 to the FreeBSD major version you want; the rest keeps your current architecture. The files are saved under ./All/. Copy them to the other machine and install them there with pkg add. Ignore any warning that suggests pkg bootstrap -f. The quarterly or latest branch comes from your own repository configuration, not from this page.
PKGNAME: mcpp
Flavors: #
there is no flavor information for this port.
distinfo: #
TIMESTAMP = 1724203382 SHA256 (museoa-mcpp-2.7.2.1_GH0.tar.gz) = ec6c2ead79b2334fccf56b8811256c4fccbbe2350e6a2e52dc83a1c7ad995af4 SIZE (museoa-mcpp-2.7.2.1_GH0.tar.gz) = 1523105

Packages (timestamps in pop-ups are UTC): #
mcpp
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest2.7.2.12.7.2.12.7.2_32.7.2.12.7.2.1
FreeBSD:14:quarterly2.7.2.12.7.2.1-2.7.2.12.7.2.1
FreeBSD:15:latest2.7.2.12.7.2.1n/a2.7.2.1n/a
FreeBSD:15:quarterly2.7.2.12.7.2.1n/a-n/a
FreeBSD:16:latest CURRENT2.7.2.12.7.2.1n/a-n/a
This port has no dependencies. #
This port is required by: #
for Build #
  1. devel/php-ice37
  2. devel/py-ice
  3. devel/py-ice37

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. devel/php5-ice*
  2. Collapse this list of deleted ports.
for Libraries #
  1. devel/ice
  2. devel/ice37
  3. devel/py-ice37
  4. games/supertuxkart

Configuration Options: #
===> The following configuration options are available for mcpp-2.7.2.1_1: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings
Options name: #
devel_mcpp
USES: #
cpe libtool
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/museoa/mcpp/tar.gz/2.7.2.1?dummy=/
Collapse this list.

Number of commits found: 29 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.7.2.1_1
24 Nov 2026 16:06:28
commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341commit hash: a9844c5f4e09f61d7f32547bba99636395fd9341 files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump ports with CPE data
2.7.2.1
23 Aug 2024 18:11:37
commit hash: 1386a9a718e50df51bbe3027d6e3abf4425a7be6commit hash: 1386a9a718e50df51bbe3027d6e3abf4425a7be6commit hash: 1386a9a718e50df51bbe3027d6e3abf4425a7be6commit hash: 1386a9a718e50df51bbe3027d6e3abf4425a7be6 files touched by this commit
Fernando Apesteguía (fernape) search for other commits by this committer
Author: Älven
devel/mcpp: update to 2.7.2.1, fix CVE

ChangeLog: https://github.com/museoa/mcpp/compare/2.7.2...2.7.2.1

Fixes CVE-2019-14274: heap-based buffer overflow

 * Base Score:	5.5 MEDIUM
 * Vector:	CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

PR:		280962
Reported by:	alster@vinterdalen.se
MFH:		2024Q3 (security fix)
Security:	CVE-2019-14274
2.7.2_4
23 Jan 2024 21:51:30
commit hash: d39db35121e5aeb03f7854ed159e6ba4763c215ecommit hash: d39db35121e5aeb03f7854ed159e6ba4763c215ecommit hash: d39db35121e5aeb03f7854ed159e6ba4763c215ecommit hash: d39db35121e5aeb03f7854ed159e6ba4763c215e files touched by this commit
Muhammad Moinur Rahman (bofh) search for other commits by this committer
devel/mcpp: Impelled to share/man

Approved by:    portmgr (blanket)
2.7.2_3
06 Nov 2023 10:03:47
commit hash: 06df180a9e39055026499a326ef67812801a8919commit hash: 06df180a9e39055026499a326ef67812801a8919commit hash: 06df180a9e39055026499a326ef67812801a8919commit hash: 06df180a9e39055026499a326ef67812801a8919 files touched by this commit
Rodrigo Osorio (rodrigo) search for other commits by this committer
*/*: Update WWW to use HTTPS for sourceforge.net projects

Homepage link is permanent redirected to its HTTPS counterpart
Issue reported by repology : https://repology.org/repository/freebsd/problems

Approved by:	portmgr (blanket)
PR:		274888
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2.7.2_3
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.7.2_3
20 Jul 2022 14:21:35
commit hash: aa6eefd5e663357e8223399bc38c7987f5e35746commit hash: aa6eefd5e663357e8223399bc38c7987f5e35746commit hash: aa6eefd5e663357e8223399bc38c7987f5e35746commit hash: aa6eefd5e663357e8223399bc38c7987f5e35746 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
devel: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  "Waitman Gobble" <uzimac@da3m0n8t3r.com>
  *  <jkoshy@FreeBSD.org>
  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Aaron Dalton <aaron@daltons.ca>
  *  Aaron H. K. Diep <ahkdiep@gmail.com>
  *  Aaron Hurt <ahurt@anbcs.com>
  *  Abel Chow <abel_chow@yahoo.com>
  *  Adam McLaurin
  *  Adam Saponara <as@php.net>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.7.2_3
21 Sep 2021 12:01:31
commit hash: d0833a792539c0ef7195fd7117b7563c99bf26ddcommit hash: d0833a792539c0ef7195fd7117b7563c99bf26ddcommit hash: d0833a792539c0ef7195fd7117b7563c99bf26ddcommit hash: d0833a792539c0ef7195fd7117b7563c99bf26dd files touched by this commit
Bernhard Froehlich (decke) search for other commits by this committer
devel/mcpp: Add CPE information

Approved by:    portmgr (blanket)
2.7.2_3
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
2.7.2_3
11 Dec 2018 13:48:08
Revision:487238commit hash: b753dc567d69af8595c6d74e94d7a30fb8f77ecdcommit hash: b753dc567d69af8595c6d74e94d7a30fb8f77ecdcommit hash: b753dc567d69af8595c6d74e94d7a30fb8f77ecdcommit hash: b753dc567d69af8595c6d74e94d7a30fb8f77ecdOriginal commit files touched by this commit
amdmi3 search for other commits by this committer
- Add license
- Add missing USE_LDCONFIG
- Switch for pkg-plist for easier maintenance
- Optionize DOCS
- Don't install license with documentation

Approved by:	portmgr blanket
2.7.2_2
20 Dec 2014 18:06:22
Revision:375029commit hash: dac273fd32f2636f58a236a7f936e2562ed0e373commit hash: dac273fd32f2636f58a236a7f936e2562ed0e373commit hash: dac273fd32f2636f58a236a7f936e2562ed0e373commit hash: dac273fd32f2636f58a236a7f936e2562ed0e373Original commit files touched by this commit
bapt search for other commits by this committer
Cleanup plist
2.7.2_2
28 Aug 2014 16:56:19
Revision:366434commit hash: 1ea9f6208de554429bcfa78680aece8582c74f84commit hash: 1ea9f6208de554429bcfa78680aece8582c74f84commit hash: 1ea9f6208de554429bcfa78680aece8582c74f84commit hash: 1ea9f6208de554429bcfa78680aece8582c74f84Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Switch devel/mcpp to USES=libtool, drop .la files
- Bump dependent ports as .so version has changed

Approved by:	portmgr blanket
2.7.2_1
23 Jan 2014 00:47:11
Revision:340773commit hash: 796ad739bcc88cf2dc865497e640be57b23c0a0fcommit hash: 796ad739bcc88cf2dc865497e640be57b23c0a0fcommit hash: 796ad739bcc88cf2dc865497e640be57b23c0a0fcommit hash: 796ad739bcc88cf2dc865497e640be57b23c0a0fOriginal commit files touched by this commit
bapt search for other commits by this committer
Support stage
2.7.2_1
20 Sep 2013 17:13:47
Revision:327724commit hash: 580a778a16c548027cb6b56ad3357f1dec74e859commit hash: 580a778a16c548027cb6b56ad3357f1dec74e859commit hash: 580a778a16c548027cb6b56ad3357f1dec74e859commit hash: 580a778a16c548027cb6b56ad3357f1dec74e859Original commit files touched by this commit
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
devel part 3)
2.7.2_1
22 Oct 2011 23:50:23
Original commit files touched by this commit
eadler search for other commits by this committer
- remove maintainer tags from pkg-descr

Approved by:    portmgr
Approved by:    bapt (mentor)
2.7.2_1
03 Jul 2011 14:59:23
Original commit files touched by this commit
ohauer search for other commits by this committer
-remove MD5
2.7.2_1
30 Mar 2011 18:26:40
Original commit files touched by this commit
ohauer search for other commits by this committer
 - add patches to fix some security and functionality issues

PR:             ports/155934
Submitted by:   Michael Gmelin <freebsd _at_ grem.de>
Approved by:    Kiyoshi MATSUI <kmatsui _at_ t3.rim.or.jp> (maintainer)
2.7.2
22 Aug 2009 00:18:43
Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Switch SourceForge ports to the new File Release System: categories starting
with D
2.7.2
01 Dec 2008 21:09:43
Original commit files touched by this commit
miwi search for other commits by this committer
- Update to 2.7.2

PR:             129298
Submitted by:   Kiyoshi Matsui <kmatsui@t3.rim.or.jp> (maintainer)
2.7.1
21 Aug 2008 06:18:49
Original commit files touched by this commit This port version is marked as vulnerable.
rafan search for other commits by this committer
Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.7.1
01 Jun 2008 09:42:37
Original commit files touched by this commit This port version is marked as vulnerable.
olgeni search for other commits by this committer
Large round of typo fixes in ports/devel (pkg-descr).
2.7.1
22 May 2008 22:50:32
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
- Fix pkg-plist

Reported by:    ionbot
2.7.1
22 May 2008 00:06:46
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
- Update to 2.7.1

PR:             123817
Submitted by:   Kiyoshi Matsui <kmatsui@t3.rim.or.jp> (maintainer)
2.7
31 Mar 2008 06:24:40
Original commit files touched by this commit This port version is marked as vulnerable.
rafan search for other commits by this committer
- Update to 2.7
- Use SOURCEFORGE macro from bsd.sites.mk

PR:             ports/122044
Submitted by:   iyoshi MATSUI <kmatsui at t3.rim.or.jp> (maintainer)
2.6.4_1
23 Jul 2007 09:36:52
Original commit files touched by this commit This port version is marked as vulnerable.
rafan search for other commits by this committer
- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
  supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:             ports/111470
Approved by:    portmgr
Discussed with: stas (Mk/*), gerald (info related stuffs)
Tested by:      pointyhat exp run
2.6.4_1
04 Jun 2007 06:22:03
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
- Fix build on AMD64

Submitted by:   ponityhat via kris
                Kiyoshi Matsui<kmatsui@t3.rim.or.jp> (maintainer)
2.6.4
27 May 2007 21:52:43
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
- Update to 2.6.4

PR:             112831
Submitted by:   Kiyoshi Matsui<kmatsui@t3.rim.or.jp> (maintainer)
2.6.3
28 Apr 2007 10:07:50
Original commit files touched by this commit This port version is marked as vulnerable.
rafan search for other commits by this committer
- Correct set mandir

PR:             111999
Submitted by:   Kiyoshi Matsui <kmatsui at t3.rim.or.jp> (maintainet)
2.6.3
15 Apr 2007 18:59:37
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
C/C++ preprocessor expands macros and processes '#if', '#include' and
some other directives.

MCPP is an alternative C/C++ preprocessor with the highest conformance,
implementated by Kiyoshi Matsui.  MCPP is especially useful for
debugging the source program which use complicated macros and also
useful for checking portability of the source.  It supports multiple
standards: K&R, ISO C90, ISO C99, and ISO C++98.

Though mcpp could be built as a replacement of GCC's resident
proprocessor or as a subroutine called from some other main program,
this package installs only a stand-alone program named 'mcpp' which
behaves independent from GCC.

WWW: http://mcpp.sourceforge.net/

- Kiyoshi Matsui <kmatsui@t3.rim.or.jp>

PR:             ports/111588
Submitted by:   Kiyoshi Matsui <kmatsui at t3.rim.or.jp>

Number of commits found: 29