summaryrefslogtreecommitdiffstats
path: root/misc/tkman/Makefile
blob: 4a81bff847b94060011cd1f68f958346616f76b1 (plain)
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
42
43
44
45
# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$

PORTNAME=	tkman
PORTVERSION=	2.2
PORTREVISION=	2
CATEGORIES=	misc tk
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tcl/Tk based manual browser

RUN_DEPENDS=	glimpse:${PORTSDIR}/textproc/glimpse \
		rman:${PORTSDIR}/textproc/rman

USES+=		gmake tk
USE_DOS2UNIX=	yes
MAKE_ARGS=	WISH="${WISH}" \
		texinfodir="${PREFIX}/${INFO_PATH}" \
		gzgrep="\"/usr/bin/zgrep -E\"" \
		mastermen="\"/usr/share/man ${PREFIX}/man ${LOCALBASE}/man\"" \
		masterbin="\"/usr/bin ${PREFIX}/bin ${LOCALBASE}/bin\"" \
		manformat="{groff -Tlatin1 -te -mandoc}" \
		manprint="{groff -mandoc -Tps -te -l}"

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local/bin/wish|${WISH}|' \
		${WRKSRC}/contrib/tkmanclient

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/tkman ${STAGEDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/retkman ${STAGEDIR}${PREFIX}/bin

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/manual.html ${STAGEDIR}${DOCSDIR}
.endif
	${INSTALL_SCRIPT} ${WRKSRC}/contrib/tkmanclient ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/weekly
	${INSTALL_SCRIPT} ${FILESDIR}/310.index_manpages ${STAGEDIR}${PREFIX}/etc/periodic/weekly

.include <bsd.port.mk>
OpenPOWER on IntegriCloud