View | Details | Raw Unified | Return to bug 239225
Collapse All | Expand All

(-)sysutils/less/Makefile (-7 / +20 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	less
4
PORTNAME=	less
5
PORTVERSION=	530
5
PORTVERSION=	530
6
PORTREVISION=	1
6
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
7
MASTER_SITES=	http://www.greenwoodsoftware.com/less/ \
8
MASTER_SITES=	http://www.greenwoodsoftware.com/less/ \
8
		http://bitrote.org/distfiles/
9
		http://bitrote.org/distfiles/
Lines 13-36 COMMENT= Better pager utility Link Here
13
LICENSE=	GPLv3
14
LICENSE=	GPLv3
14
15
15
USES=		cpe ncurses
16
USES=		cpe ncurses
16
CPE_VENDOR=	gnu
17
17
18
CPE_VENDOR=	gnu
18
GNU_CONFIGURE=	yes
19
GNU_CONFIGURE=	yes
19
20
20
PLIST_FILES=	bin/less bin/lesskey bin/lessecho \
21
PLIST_FILES=	bin/less \
21
		man/man1/less.1.gz man/man1/lesskey.1.gz \
22
		bin/lessecho \
22
		man/man1/lessecho.1.gz
23
		bin/lesskey \
24
		man/man1/less.1.gz \
25
		man/man1/lessecho.1.gz \
26
		man/man1/lesskey.1.gz
27
28
OPTIONS_DEFINE=		COLORS PCRE
29
OPTIONS_DEFAULT=	COLORS PCRE
30
31
PCRE_USES=		localbase
32
PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
23
33
24
OPTIONS_DEFINE=	COLORS
25
COLORS_DESC=	Enable colors support via escape sequence
34
COLORS_DESC=	Enable colors support via escape sequence
26
35
27
.include <bsd.port.options.mk>
36
.include <bsd.port.options.mk>
28
37
29
.if ${PORT_OPTIONS:MCOLORS}
38
.if ${PORT_OPTIONS:MCOLORS}
30
CPPFLAGS+=	-DCOLOR_LESS
39
CPPFLAGS+=	-DCOLOR_LESS
40
.endif
31
41
32
pre-fetch:
42
.if ${PORT_OPTIONS:MPCRE}
33
	@${ECHO_MSG} "Making a color version of less."
43
CONFIGURE_ARGS+=	--with-regex=pcre
44
LDFLAGS+=		-L${LOCALBASE}/lib -lpcre
45
.else
46
CONFIGURE_ARGS+=	--with-regex=posix
34
.endif
47
.endif
35
48
36
.include <bsd.port.mk>
49
.include <bsd.port.mk>

Return to bug 239225