Ticket #14792: Portfile

File Portfile, 1.6 KB (added by kmatsui@…, 16 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/
22#master_sites        sourceforge
23master_sites        file:///usr/local/src/mcpp
24checksums           md5 14f9e4155aeb5812fc3ced6345caee02 \
25                    sha1 3bb1c2a2f0fae9c73c2c4edaf98354b2140f4f53
26configure.args-append   --mandir=${prefix}/share/man
27# +universal: Install universal binary of mcpp for i386 and ppc.
28# Do not append these options to configure, but append to make.
29variant universal { build.args-append CFLAGS+='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch ppc' }
30# +mcpplib: Install mcpp as a library libmcpp.* instead of mcpp command.
31variant mcpplib { configure.args-append --enable-mcpplib }