aboutsummaryrefslogtreecommitdiffstats
path: root/cad/tkgate/Makefile
blob: 12c0cb8bfafc173174e5b82136ef7c4b40a19074 (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
# $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

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-stage:
    ${FIND} ${STAGEDIR}/${DATADIR} -name '*~' -delete -or -name '*~?' -delete

.include <bsd.port.mk>