# $Id: Portfile 87016 2011-11-08 02:54:09Z rmstonecipher@macports.org $

PortSystem          1.0

name                gccmakedep
version             1.0.2
revision            2
categories          x11 devel
license             X11
maintainers         nomaintainer
supported_archs     noarch

description         Create dependencies in makefiles using 'gcc -M'
long_description \
   The gccmakedep program calls 'gcc -M' to output makefile rules describing \
   the dependencies of each sourcefile, so that make(1) knows which object \
   files must be recompiled when a dependency has changed.

platforms           darwin

homepage            http://www.x.org/
master_sites        xorg:individual/util/
use_bzip2           yes

checksums           md5     b533c0771dbbaf9b041ff35bb941d3a2 \
                    sha1    a3d971a507a460233afd8ed46e9f06135fed634d \
                    rmd160  7778bd2fac401b7caae52c2fca4a921370803c3a

if {${configure.compiler} == "clang"} { 
    configure.compiler llvm-gcc-4.2 
} 

configure.env-append       RAWCPP=${configure.cpp}
configure.args      --mandir=${prefix}/share/man

livecheck.type      regex
livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
livecheck.url       http://xorg.freedesktop.org/archive/individual/util/?C=M&O=D
