aboutsummaryrefslogtreecommitdiff
path: root/cad/qflow/Makefile
blob: 57e4622dfad14766da69623e1338f36b4fbcf4d5 (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
PORTNAME=	qflow
DISTVERSION=	1.4.102
CATEGORIES=	cad

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	End-to-end digital synthesis flow for ASIC designs
WWW=		http://opencircuitdesign.com/qflow/

LICENSE=	GPLv2

APP_DEPENDS=	abc:cad/abc \
		graywolf:cad/graywolf \
		magic>0:cad/magic \
		netgen-lvs>0:cad/netgen-lvs \
		qrouter>0:cad/qrouter \
		sta:cad/openroad \
		yosys>0:cad/yosys
BUILD_DEPENDS=	${APP_DEPENDS}
RUN_DEPENDS=	${APP_DEPENDS}

USES=		gmake python tar:tgz tcl tk
USE_GITHUB=	yes
GH_ACCOUNT=	RTimothyEdwards

GNU_CONFIGURE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|^#!ENV_PATH python3$$|#!${PYTHON_CMD}|' ${WRKSRC}/scripts/*.py.in
	@${REINPLACE_CMD} -e 's|^#!TCLSH_PATH$$|#!${TCLSH}|' ${WRKSRC}/scripts/*.tcl.in

post-install:
	@cd ${STAGEDIR}${PREFIX}/share/qflow/bin && \
		${STRIP_CMD} vlog2Spice vlog2Verilog vlog2Def vlog2Cel vlogFanout DEF2Verilog addspacers vesta spice2delay rc2dly blif2BSpice blif2Verilog blifFanout && \
		${RM} yosys-abc && ${LN} -s ${LOCALBASE}/bin/abc yosys-abc # https://github.com/RTimothyEdwards/qflow/issues/6

.include <bsd.port.mk>