Ticket #14794: Portfile

File Portfile, 1.6 KB (added by kmatsui@…, 17 years ago)

Portfile

Line 
1# $Id$
2
3PortSystem          1.0
4name                mcpp
5version             2.7
6categories          devel
7platforms           darwin
8maintainers         t3.rim.or.jp:kmatsui
9description         Alternative C/C++ preprocessor
10long_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.
21homepage            http://mcpp.sourceforge.net/
22master_sites        sourceforge
23checksums           md5 14f9e4155aeb5812fc3ced6345caee02 \
24                    sha1 3bb1c2a2f0fae9c73c2c4edaf98354b2140f4f53
25configure.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.
28variant 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.
30variant mcpplib { configure.args-append --enable-mcpplib }