Ticket #15347: Portfile

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

new Portfile

Line 
1# $Id$
2
3PortSystem          1.0
4name                mcpp
5version             2.7.1
6categories          devel
7platforms           darwin
8maintainers         t3.rim.or.jp:kmatsui
9description         Alternative C/C++ preprocessor
10long_description    \
11    C/C++ preprocessor defines and expands macros and processes '#if',     \
12    '#include' and some other directives.                                  \
13    MCPP is an alternative C/C++ preprocessor with the highest conformance.\
14    It supports multiple standards: K&R, ISO C90, ISO C99, and ISO C++98.  \
15    MCPP is especially useful for debugging a source program which uses    \
16    complicated macros and also useful for checking portability of a       \
17    source.                                                                \
18    Though mcpp could be built as a replacement of GCC's resident          \
19    proprocessor, this port installs a program which behaves independent   \
20    from GCC.
21homepage            http://mcpp.sourceforge.net/
22master_sites        sourceforge
23checksums           md5 375575ed6b305edd985c7adf9f36202e \
24                    sha1 9f85d43462b9cda2662df335ca3e0c8e015b8805
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 library libmcpp.* and build executable linking the library.
30variant mcpplib { configure.args-append --enable-mcpplib }