# $OpenBSD: Makefile,v 1.15 2000/04/09 17:36:23 espie Exp $

DISTNAME=       jed-B0.99-10
PKGNAME=        jed-0.99.10
CATEGORIES=	editors
NEED_VERSION=	 1.230
FAKE=No
MASTER_SITES=   ftp://space.mit.edu/pub/davis/jed/v0.99/ \
		ftp://ftp.uni-stuttgart.de/pub/unix/misc/slang/jed/v0.99/

LIB_DEPENDS=	slang.14::devel/libslang

MAINTAINER=     ports@openbsd.org

LICENSE_TYPE=		GPL
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

GNU_CONFIGURE=  Yes
CONFIGURE_ENV=	JED_ROOT=${PREFIX}/lib/jed

ALL_TARGET=     all getmail ${XJED}

# comment out the next line if you don't want the X version of JED.
XJED=		xjed

post-install:
	@jed -batch -n -l preparse.sl
	@install-info --section="Editors" \
		--entry="* JED: (jed). 		JED editor documentation." \
		${PREFIX}/info/jed.info ${PREFIX}/info/dir

.include <bsd.port.mk>
