summaryrefslogtreecommitdiff
path: root/devel/tkp4/Makefile
blob: 51c0c463b2ff95fb71a1f76332ac7216da35845d (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
# Created by: mi@aldan.algebra.com
# $FreeBSD$

PORTNAME=	tkp4
PORTVERSION=	1.12
PORTREVISION=	2
CATEGORIES=	devel tk
MASTER_SITES=	http://www.timshel.ca/tkp4/

MAINTAINER=	mi@aldan.algebra.com
COMMENT=	Tcl/Tk frontends to Perforce's p4

OPTIONS_DEFINE=	DOCS

RUN_DEPENDS=	p4:${PORTSDIR}/devel/p4

NO_BUILD=	yes
REINPLACE_ARGS=	-i ""
USES=		tk:run

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/*.tcl ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKSRC}/tkp4 ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/P4WINdifferences \
		${WRKSRC}/UsingTkP4 ${STAGEDIR}${DOCSDIR}

post-patch:
	${REINPLACE_CMD} -e 's|wish|${WISH}|' ${WRKSRC}/tkp4
	${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
		`${GREP} -Fl /usr/local ${WRKSRC}/*`

.include <bsd.port.mk>