# New ports collection makefile for:	opendchub
# Date created:			May 29, 2002
# Whom:				Munish Chopra <mchopra@engmail.uwaterloo.ca>
#
# $FreeBSD: ports/net/opendchub/Makefile,v 1.7 2003/02/16 13:23:06 naddy Exp $
#

PORTNAME=	opendchub
PORTVERSION=	0.7.4
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Unofficial Unix version of the Direct Connect Hub software

USE_PERL5=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes

post-patch:
.for file in src/fileio.c src/main.c
	@${PERL} -pi -e 's|#include <crypt.h>||g' ${WRKSRC}/${file}
.endfor

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>
