summaryrefslogtreecommitdiff
path: root/sysutils/lookat/Makefile
blob: cf36c20312cf3e28a1dd9e5f0e12ee2f14fff068 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
# $FreeBSD$

PORTNAME=	lookat
PORTVERSION=	1.4.3
CATEGORIES=	sysutils
MASTER_SITES=	http://www.wagemakers.be/downloads/lookat/
DISTNAME=	${PORTNAME}_bekijk-${PORTVERSION}

MAINTAINER=	pawel@FreeBSD.org
COMMENT=	Program to view Un*x text files and manual pages

FETCH_ARGS=	-Fpr
GNU_CONFIGURE=	yes
USES=		gmake

MAN1=		lookat.1

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} 's|/etc/lookat.conf|${PREFIX}&|g' \
		${WRKSRC}/${PORTNAME}.1

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/lookat ${PREFIX}/bin
	@${INSTALL_MAN} ${WRKSRC}/lookat.1 ${PREFIX}/man/man1
	@${INSTALL_DATA} ${WRKSRC}/lookat.conf.default \
		${PREFIX}/etc/lookat.conf.sample
	@if [ ! -f ${PREFIX}/etc/lookat.conf ]; then \
		${CP} -p ${PREFIX}/etc/lookat.conf.sample ${PREFIX}/etc/lookat.conf ; \
	fi

.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>