# $Id: Portfile,v 1.15 2005/06/18 03:21:44 yves Exp $

PortSystem 1.0
name			ddd
version			3.3.11
categories		devel
maintainers		yves@opendarwin.org
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/
platforms		darwin
master_sites	gnu
checksums		md5 f19437ebfdb5f2667d6de30f700dd319
depends_lib		port:openmotif
build.args		EXEEXT=.exe
destroot.args	${build.args}

post-destroot {
	file rename ${destroot}${prefix}/bin/ddd.exe ${destroot}${prefix}/bin/ddd
	file delete -force ${destroot}${prefix}/share/info
	file rename ${destroot}${prefix}/info ${destroot}${prefix}/share/info
	file delete -force ${destroot}${prefix}/share/man
	file rename ${destroot}${prefix}/man ${destroot}${prefix}/share/man
	file mkdir ${destroot}${x11prefix}/lib/X11/app-defaults
	xinstall -c ${destroot}${prefix}/share/${name}-${version}/${name}/Ddd \
		${destroot}${x11prefix}/lib/X11/app-defaults
}

variant puredarwin {
	depends_lib	port:lesstif
}
