# New ports collection makefile for:   ircproxy
# Date created:        10 July 2003
# Whom:                Jonas Kvinge <jonas@night-light.net>
#
# $FreeBSD: ports/irc/ircproxy/Makefile,v 1.8 2007/12/18 08:22:10 beech Exp $
#

PORTNAME=	ircproxy
PORTVERSION=	1.3.1b
CATEGORIES=	irc
MASTER_SITES=	http://filearchive.night-light.net/packages/sources/ircproxy/

MAINTAINER=	jonas@night-light.net
COMMENT=	An IRC proxy/bouncer daemon

LIB_DEPENDS=	cares.1:${PORTSDIR}/dns/c-ares

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${LOCALBASE}

OPTIONS=	SSL "Enable SSL support" on \
		IPV6 "Enable IPv6 support" on \
		MEMDEBUG "Enable memory debugging" on \
		FDDEBUG "Enable file descriptor debugging" on

.include <bsd.port.pre.mk>

.if defined(WITH_SSL)
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
.else
CONFIGURE_ARGS+=	--disable-ssl
.endif

.if !defined(WITH_IPV6)
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.if defined(WITH_MEMDEBUG)
CONFIGURE_ARGS+=	--enable-memdebug
.else
CONFIGURE_ARGS+=	--disable-memdebug
.endif

.if defined(WITH_FDDEBUG)
CONFIGURE_ARGS+=	--enable-fddebug
.else
CONFIGURE_ARGS+=	--disable-fddebug
.endif

.include <bsd.port.post.mk>


syntax highlighted by Code2HTML, v. 0.9.1