# $MidnightBSD: trunk/sysutils/less/Makefile 16158 2014-04-12 11:44:37Z laffer1 $

PORTNAME=	less
PORTVERSION=	458
CATEGORIES=	sysutils
MASTER_SITES=	http://www.greenwoodsoftware.com/%SUBDIR%/ \
		${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	less

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Better pager utility
LICENSE=	gpl3

GNU_CONFIGURE=	yes

PLIST_FILES=	bin/less bin/lesskey bin/lessecho \
		man/man1/less.1.gz man/man1/lesskey.1.gz \
		man/man1/lessecho.1.gz

OPTIONS_DEFINE=	COLORS
COLORS_DESC=	Enable colors support via escape sequence

.include <bsd.mport.options.mk>

.if ${PORT_OPTIONS:MCOLORS}
CPPFLAGS+=	-DCOLOR_LESS

pre-fetch:
	@${ECHO_MSG} "Making a color version of less."
.endif

.include <bsd.port.mk>
