# $Id: Portfile 52287 2009-06-13 16:22:35Z macsforever2000@macports.org $
PortSystem        1.0
name              etherape
version           0.9.7
categories        net
maintainers       nomaintainer
description       graphical network monitor
long_description  \
		  EtherApe is a graphical network monitor for Unix modeled after \
		  etherman. Featuring link layer, ip and TCP modes, it displays network \
		  activity graphically. Hosts and links change in size with traffic. \
		  Color coded protocols display. It supports Ethernet, FDDI, Token \
		  Ring, ISDN, PPP and SLIP devices. It can filter traffic to be shown, \
		  and can read traffic from a file as well as live from the network. 
homepage          http://etherape.sourceforge.net/
master_sites      sourceforge:etherape
platforms         darwin
checksums         md5 7b5783090d92abe79634da4b582c6b48

depends_lib    	port:libgnomeui \
		  		port:libglade2 \
		  		port:libiconv \
		  		port:gettext \
		  		port:libpcap
		  		
configure.args    --mandir=${prefix}/share/man \
		  --disable-thread-resolver

configure.ldflags-append "-lintl -lresolv"
configure.cflags-append "-I${prefix}/include"

platform darwin  {
	patchfiles	patch-util.h
}

post-extract {
        reinplace "s|,--export-dynamic| |g" ${worksrcpath}/src/Makefile.in
}
