# $MidnightBSD: trunk/editors/mg/Makefile 15462 2013-09-17 03:15:41Z laffer1 $

PORTNAME=	mg
PORTVERSION=	20110905
CATEGORIES=	editors
MASTER_SITES=	http://homepage.boetes.org/software/mg/

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	A small, fast Emacs-like editor
LICENSE=	publicdom

MAN1=	mg.1
MANCOMPRESSED=	no
PORTDOCS=	README tutorial
HAS_CONFIGURE=	yes

pre-configure:
	@${REINPLACE_CMD} -e 's|-Wno-error=unused-but-set-variable||g' \
		-e '/^CC=/d' -e 's|-g -Wall|-Wall|' -e 's|/usr/local|${PREFIX}|' \
		${WRKSRC}/Makefile.in

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
	${INSTALL_MAN}  ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
