summaryrefslogtreecommitdiff
path: root/devel/tkcon/Makefile
blob: dd61e84b978f2cf97aee3203b1f4ccf94fa9b547 (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
# New ports collection makefile for:	tkcon
# Date created:         28 Jun 1999
# Whom:                 wghicks@bellsouth.net
#
# $FreeBSD$
#

PORTNAME=	tkcon
PORTVERSION=	2.2
CATEGORIES=	devel tk83
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=${PORTNAME}

MAINTAINER=	ports@freebsd.org

RUN_DEPENDS=	wish8.3:${PORTSDIR}/x11-toolkits/tk83

USE_REINPLACE=	yes
NO_BUILD=	yes
REINPLACE_ARGS=	-i.bak -E

post-patch:
	@${REINPLACE_CMD} \
		-e 's,docs\s+"([^"]+)",docs	"file:${PREFIX}/share/doc/tkcon/index.html\\n\1",' ${WRKSRC}/tkcon.tcl

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/tkcon.tcl ${PREFIX}/bin/tkcon

.if !defined(NOPORTDOCS)
post-install:
	${MKDIR} ${PREFIX}/share/doc/tkcon
	${INSTALL_DATA} ${WRKSRC}/README.txt $(PREFIX)/share/doc/tkcon/README.tkcon
	${INSTALL_DATA} ${WRKSRC}/docs/* $(PREFIX)/share/doc/tkcon
.endif

.include <bsd.port.mk>