# Created by: David O'Brien (obrien@NUXI.ucdavis.edu)
# $FreeBSD: branches/RELEASE_8_4_0/net-im/icb/Makefile 311849 2013-02-07 14:34:29Z miwi $

PORTNAME=	icb
PORTVERSION=	5.1.0
PORTREVISION=	4
CATEGORIES=	net-im tcl
MASTER_SITES=	http://www.obfuscation.org/icb/
DISTNAME=	c${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Internet CB - a mostly-defunct chat client

USE_TK_BUILD=	yes
USE_TK=		yes
USE_READLINE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-tclinclude=${TCL_INCLUDEDIR} \
		--with-tcllib=${LOCALBASE}/lib
MAKE_JOBS_SAFE=	yes

PORTEXAMPLES=	bartender confuse echofunctions sample.icbrc
PLIST_FILES=	bin/icb %%DATADIR%%/icbserverdb
PLIST_DIRS=	%%DATADIR%%

.include <bsd.port.options.mk>

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/icb/icb ${PREFIX}/bin
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/icbserverdb ${DATADIR}
.if ${PORT_OPTIONS:MEXAMPLES}
	@${MKDIR} ${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/contrib/${f} ${EXAMPLESDIR}
.endfor
.endif

.include <bsd.port.mk>
