# $Id: Portfile 76041 2011-02-17 07:39:04Z jmr@macports.org $

PortSystem      1.0

name            ddd
version         3.3.12
revision        2
categories      devel
platforms       darwin
maintainers     nomaintainer
description     Data Display Debugger
long_description \
    DDD is a graphical front-end for GDB and other command-line debuggers.
homepage        http://www.gnu.org/software/ddd/
master_sites    gnu

checksums       md5 c50396db7bac3862a6d2555b3b22c34e \
                sha1 b91d2dfb1145af409138bd34517a898341724e56 \
                rmd160 fcc71b2b57f4d7a2c17ac817739674c89e1dd7a0

depends_lib \
	port:ncurses \
	lib:libXm:openmotif \
	port:xorg-libXaw \
	port:xorg-libXp

configure.args  --infodir=${prefix}/share/info \
                --mandir=${prefix}/share/man \
                --enable-builtin-manual \
                --enable-builtin-app-defaults

# make will build the executable "ddd" and the X resource file "Ddd" in the same directory,
# as HFS+ is case-insensitive by default, this will loosely FAIL.
build.args      EXEEXT=.exe
destroot.args   ${build.args}

post-destroot {
    move ${destroot}${prefix}/bin/ddd.exe ${destroot}${prefix}/bin/ddd
}

livecheck.type  regex
livecheck.url   http://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
