# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0

name                mcpp
version             2.7.2
revision            5
categories          devel
platforms           darwin
maintainers         blair openmaintainer
license             BSD
description         Alternative C/C++ preprocessor
long_description    \
    C/C++ preprocessor defines and expands macros and processes '#if',     \
    '#include' and some other directives.                                  \
    MCPP is an alternative C/C++ preprocessor with the highest conformance.\
    It supports multiple standards: K&R, ISO C90, ISO C99, and ISO C++98.  \
    MCPP is especially useful for debugging a source program which uses    \
    complicated macros and also useful for checking portability of a       \
    source.                                                                \
    Though mcpp could be built as a replacement of GCC's resident          \
    preprocessor, this port installs a program which behaves independent   \
    from GCC.
homepage            http://mcpp.sourceforge.net/
master_sites        sourceforge
checksums           md5 512de48c87ab023a69250edc7a0c7b05 \
                    sha1 703356b7c2cd30d7fb6000625bf3ccc2eb977ecb
patchfiles          patch-src__internal.h \
                    patch-src__support.c \
                    patch-src__system.h \
                    patch-fix-core-dumps
configure.args-append --enable-mcpplib --mandir=${prefix}/share/man
# +universal: Install universal binary of mcpp.
# Do not append these options to configure, but append to make.
variant universal { build.args-append CFLAGS+='${configure.universal_cflags}' }
if {![variant_isset universal]} {
        build.args-append CFLAGS+='${configure.cc_archflags}'
}