freebsd-ports/cad/tkgate/Makefile
Mathieu Arnold 8b4093cba5 Do not use post-stage. Use post-install instead.
The only reason to use post-stage is because the port needs to do
"things" at a later time, like some plist manipulation.
While there, fold post-install in do-install targets when they are
defined.

PR:		214780
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-12-02 11:58:21 +00:00

31 lines
792 B
Makefile

# $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-install:
${FIND} ${STAGEDIR}/${DATADIR} -name '*~' -delete -or -name '*~?' -delete
.include <bsd.port.mk>