aboutsummaryrefslogtreecommitdiff
path: root/cad/tkgate/Makefile
blob: fe120ff2449841d0edc5db973042dc160e78cad3 (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
# $FreeBSD$

PORTNAME=	tkgate
PORTVERSION=	2.0.0
PORTREVISION=	1
CATEGORIES=	cad
MASTER_SITES=	http://highsecure.ru/distfiles/ \
		http://cdn.bitbucket.org/starling13/tkgate/downloads/

MAINTAINER=	vsevolod@FreeBSD.org
COMMENT=	Event driven digital circuit simulator

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

GNU_CONFIGURE=	yes
USES+=		iconv:translit tk:build,run

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/bin/wish|${WISH}|g' ${WRKSRC}/scripts/tree.tcl
	@${REINPLACE_CMD} -e \
		's|%%TCL_VER%%|${TCL_VER}|g; \
		s|%%TCL_INCLUDEDIR%%|${TCL_INCLUDEDIR}|g; \
		s|%%LOCALBASE%%|${LOCALBASE}|g' \
		${WRKSRC}/configure

# Remove backup files somehow installed to the stagedir
post-install:
	${FIND} ${STAGEDIR}/${DATADIR} -name '*~' -delete -or -name '*~?' -delete

.include <bsd.port.mk>