#
PortSystem 1.0
name		eggdrop
version		1.6.17
categories	irc
maintainers	dre@mac.com
description	Eggdrop is the World's most popular Internet Relay Chat (IRC) bot.
long_description	${description}
homepage	http://www.eggheads.org
platforms	darwin
master_sites	ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/
checksums	md5 68e181201483dee398f9904e8652e6ca
distname	${name}${version}
use_bzip2	yes
post-configure	{ system "cd ${worksrcpath} && make config" }
destroot.destdir DEST=${destroot}${prefix}/share/eggdrop
post-destroot	{ system "cd ${destroot}${prefix}/bin/ && rm ../share/eggdrop/eggdrop && ln -s ../share/eggdrop/eggdrop-${version} eggdrop && mv ../share/eggdrop/eggdrop.conf ../share/eggdrop/eggdrop.conf.sample && mv ../share/eggdrop/doc/man1/eggdrop.1 ../share/man/man1" 
}
platform darwin 7 {
        configure.env CFLAGS="-DBIND_8_COMPAT"
}

platform darwin 8 {
	configure.env CFLAGS="-DBIND_8_COMPAT"
}
