1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name mcpp |
---|
5 | version 2.7 |
---|
6 | categories devel |
---|
7 | platforms darwin |
---|
8 | maintainers t3.rim.or.jp:kmatsui |
---|
9 | description Alternative C/C++ preprocessor |
---|
10 | long_description \ |
---|
11 | C/C++ preprocessor expands macros and processes '#if', '#include' and \ |
---|
12 | some other directives. \ |
---|
13 | MCPP is an alternative C/C++ preprocessor with the highest conformance,\ |
---|
14 | implementated by Kiyoshi Matsui. It supports multiple standards: K&R, \ |
---|
15 | ISO C90, ISO C99, and ISO C++98. MCPP is especially useful for \ |
---|
16 | debugging the source program which use complicated macros and also \ |
---|
17 | useful for checking portability of the source. \ |
---|
18 | Though mcpp could be built as a replacement of GCC's resident \ |
---|
19 | proprocessor, this port installs only a program which behaves \ |
---|
20 | independent from GCC. |
---|
21 | homepage http://mcpp.sourceforge.net/ |
---|
22 | master_sites sourceforge |
---|
23 | checksums md5 14f9e4155aeb5812fc3ced6345caee02 \ |
---|
24 | sha1 3bb1c2a2f0fae9c73c2c4edaf98354b2140f4f53 |
---|
25 | configure.args-append --mandir=${prefix}/share/man |
---|
26 | # +universal: Install universal binary of mcpp for i386 and ppc. |
---|
27 | # Do not append these options to configure, but append to make. |
---|
28 | variant universal { build.args-append CFLAGS+='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch ppc' } |
---|
29 | # +mcpplib: Install mcpp as a library libmcpp.* instead of mcpp command. |
---|
30 | variant mcpplib { configure.args-append --enable-mcpplib } |
---|