# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 53479 2009-07-06 18:01:25Z snc@macports.org $

PortSystem 1.0

name		eggdrop
version		1.6.19
categories	irc
maintainers	mac.com:dre
description	Eggdrop is the world's most popular Internet Relay Chat (IRC) bot.
long_description	${description} This version includes the 'ctcpfix' patch.
homepage	http://www.eggheads.org
platforms	darwin
master_sites	ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/
checksums	md5 775d77294784a2e6b0e3d4ea89eb08e2
distname	${name}${version}+ctcpfix
worksrcdir  ${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.cflags-append "-DBIND_8_COMPAT"
}

platform darwin 8 {
        configure.cflags-append "-DBIND_8_COMPAT"
}

platform darwin 10 {
        patchfiles patch-Makefile.in.diff
}
