# New ports collection makefile for:    ecu
# Date created:         Feb 18, 1995
# Whom:                 ache
#
# $FreeBSD: ports/comms/ecu/Makefile,v 1.24 2002/01/26 07:41:23 kris Exp $
#

PORTNAME=	ecu
PORTVERSION=    4.30
CATEGORIES=	comms
MASTER_SITES=  ftp://tsx-11.mit.edu/pub/linux/sources/usr.bin/Communications/

MAINTAINER=	ache@FreeBSD.org

do-configure:
	cd ${WRKSRC}; yes "" | ./Configure

pre-patch:
	@${PERL} -pi.orig -e "s@#include +<malloc.h>@@g" \
	${WRKSRC}/ecu.h ${WRKSRC}/ecunumrev.c ${WRKSRC}/ptyfork.c \
	${WRKSRC}/qmake.c ${WRKSRC}/unsupported/tts/tts.c

post-install:
	cd ${WRKSRC}/doc; \
	   ${INSTALL_MAN} ecu.man ${PREFIX}/man/cat1/ecu.1; \
	   ${INSTALL_MAN} proc.man ${PREFIX}/man/cat1/proc.1

.include <bsd.port.mk>
