# New ports collection makefile for:	joe-devel
# Date created:		25 Jul 2001
# Whom:			dwcjr@FreeBSD.org
#
# $FreeBSD: ports/editors/joe-devel/Makefile,v 1.23 2003/03/07 06:00:31 ade Exp $
#

PORTNAME=	joe-devel
PORTVERSION=	2.9.8p1
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	joe-editor
DISTNAME=	joe-${PORTVERSION:S/p/-pre/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	petef@FreeBSD.org
COMMENT=	Development version of Joe's own editor

MAN1=		joe.1

GNU_CONFIGURE=	yes
USE_GMAKE=	yes

ALL_TARGET=	joe

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/joe
	${INSTALL_DATA} ${WRKSRC}/INFO ${WRKSRC}/README ${PREFIX}/share/doc/joe
	${INSTALL_DATA} ${WRKSRC}/LIST ${PREFIX}/share/doc/joe/CommandList
.endif
.for file in jmacsrc jpicorc jstarrc rjoerc joerc
.if !exists(${PREFIX}/etc/${file})
	@${CP} ${PREFIX}/etc/${file}.dist ${PREFIX}/etc/${file}
.endif
.endfor

.include <bsd.port.mk>
