# $OpenBSD: Makefile,v 1.32 2009/10/27 21:51:53 sthen Exp $

COMMENT=	text editor

DISTNAME=	jed-0.99-18
PKGNAME=	jed-0.99.18p0
CATEGORIES=	editors
MASTER_SITES=   ftp://space.mit.edu/pub/davis/jed/v0.99/ \
		ftp://ftp.ntua.gr/pub/lang/slang/jed/v0.99/ \
		ftp://ftp.fu-berlin.de/pub/unix/editors/jed/v0.99/

HOMEPAGE=	http://www.jedsoft.org/jed/

LIB_DEPENDS=	slang.>=15::devel/libslang

# GPLv2+
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes
WANTLIB=		c m termcap util

CONFIGURE_STYLE= gnu
CONFIGURE_ARGS=	--with-slang=${LOCALBASE}
CONFIGURE_ENV+=	JED_ROOT="${PREFIX}/lib/jed"
#CONFIGURE_ENV+= DEPBASE=${DEPBASE}

FLAVORS=	no_x11
FLAVOR?=

.if ${FLAVOR:L} == "no_x11"
ALL_TARGET=	all getmail
.else
USE_X11=	Yes
ALL_TARGET=	all getmail xjed
WANTLIB+=	X11 Xext Xft Xrender freetype
.endif

NO_REGRESS=	Yes

.include <bsd.port.mk>
