# $Id: Portfile,v 1.14 2005/04/11 11:00:32 toby Exp $

PortSystem 1.0
name		bitchx
version		1.1
categories	irc
maintainers	sean@fuzzymagic.com
description	BitchX - An IRC Client based on ircII w/ ANSI color and much much more.
long_description	BitchX is an IRC (Internet Relay Chat) client by Colten Edwards aka \
			panasync@efnet, it is based on it's predecessors ircII and EPIC. \
			BitchX was originally started as a script by Trench and HappyCrappy \
			for the popular UNIX IRC client ircII. Around Christmas of 1994 the \
			script was patched directly into the client by panasync.
homepage	http://www.bitchx.org/
platforms	darwin
master_sites	ftp://ftp.bitchx.org/pub/BitchX/source/
distname	ircii-pana-${version}-final
checksums	md5 611d2dda222f00c10140236f4c331572
worksrcdir	BitchX
configure.args	--without-gtk --without-ssl \
		--mandir=\\\${prefix}/share/man
patchfiles	patch-Makefile.in patch-include__ctcp.h \
		patch-include__struct.h \
		patch-source__server.c patch-source__term.c
destroot.args	prefix=${destroot}${prefix}

platform darwin 6 {
	depends_lib-append lib:libdl:dlcompat
}

variant darwin {
	# need to keep -g -O2 (the default) while adding -DBIND_8_COMPAT
	configure.env CFLAGS="-DBIND_8_COMPAT -g -O2"
}
