# $Id: Portfile 117017 2014-02-12 21:16:38Z mmoll@macports.org $

PortSystem 1.0
PortGroup           cmake 1.0
PortGroup           github 1.0

categories          lang
platforms           darwin
maintainers         nomaintainer
# See http://www.gccxml.org/HTML/Copyright.html for license details
license             {GPL-2 BSD}
github.setup        gccxml gccxml b040a46352e4d5c11a0304e4fcb6f7842008942a
name                gccxml-devel
version             20130919
revision            1
description         generates XML description of C++ code
long_description    generates an XML description of a C++ program from GCC's \
                    internal representation
homepage            http://www.gccxml.org/
checksums           rmd160  405b121c4362ca3b45759e656b30cb6a6cd3381c \
                    sha256  d9305a79c954054eb1fb7460994a60b6776987954b1771eda56115d800980be6
universal_variant   no

# gcxxml can be compiled with clang, but can't simulate clang. It should be able
# to simulate gcc*, but gets confused by header files in /usr/include. The
# default compiler it uses is the one used to compile it, so to get gccxml working
# without having to set any options it seems easier to do this:
configure.compiler  llvm-gcc-4.2
# XCode 5 doesn't include llvm-gcc-4.2, so make sure it is installed
depends_build-append bin:llvm-gcc-4.2:llvm-gcc42
# also need this compiler at runtime
depends_run-append  bin:llvm-gcc-4.2:llvm-gcc42
