# New ports collection makefile for:	led
# Date created:				6 June 2001
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD: ports/editors/led/Makefile,v 1.4 2001/07/11 10:20:12 sobomax Exp $
#

PORTNAME=	led
PORTVERSION=	0.9.2
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}-editor

MAINTAINER=	fracture@allusion.net

GNU_CONFIGURE=	yes

MAN1=		led.1
MANCOMPRESSED=	yes

.if !defined(NOPORTDOCS)
PKGMESSAGE=	${WRKDIR}/pkg-message
.else
PKGMESSAGE=	/nonexistant
.endif

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/sample.ledrc ${DOCSDIR}
	@${SED} 's|%%DOCSDIR%%|${DOCSDIR}|g' ${PKGDIR}/pkg-message > \
		${PKGMESSAGE}
	@${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.mk>
