Ticket #17438: Portfile

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

The new devel/mcpp/Portfile

Line 
1# $Id$
2
3PortSystem          1.0
4name                mcpp
5version             2.7.2
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 512de48c87ab023a69250edc7a0c7b05 \
24                    sha1 703356b7c2cd30d7fb6000625bf3ccc2eb977ecb
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 }