sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

64 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2021/02/23 19:39:10 sthen Exp $
COMMENT = full end-to-end digital synthesis flow for VLSI ASIC designs
DISTNAME = qflow-1.4.83
CATEGORIES = cad
HOMEPAGE = http://opencircuitdesign.com/qflow/
MAINTAINER = Alessandro De Laurenzis <just22@atlantide.mooo.com>
# GPL (qflow, no applicable version specified)
# For gscl45nm tech files: Apache-2.0, see:
# https://research.ece.ncsu.edu/eda/freepdk
# For OSU 050/035/018 tech files see:
# https://vlsiarch.ecen.okstate.edu/flows/MOSIS_SCMOS/OSU_Copyright
PERMIT_PACKAGE = Yes
WANTLIB = c m
MASTER_SITES = http://opencircuitdesign.com/qflow/archive/
EXTRACT_SUFX = .tgz
MODULES = lang/tcl \
lang/python
BUILD_DEPENDS = ${MODTCL_BUILD_DEPENDS} \
cad/yosys \
cad/graywolf \
cad/opensta \
cad/qrouter \
cad/magic \
cad/netgen
RUN_DEPENDS = ${MODTCL_RUN_DEPENDS} \
cad/yosys \
cad/graywolf \
cad/opensta \
cad/qrouter \
cad/magic \
cad/netgen \
lang/python/${MODPY_VERSION},-tkinter \
shells/tcsh \
sysutils/ggrep
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = TCLSH_PATH=${MODTCL_BIN}
USE_GMAKE = Yes
NO_TEST = Yes
post-install:
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
${PREFIX}/share/qflow/scripts
rm ${PREFIX}/share/qflow/bin/yosys-abc
ln -s ${LOCALBASE}/bin/abc ${PREFIX}/share/qflow/bin/yosys-abc
sed -i "s,/bin/tcsh -f,${LOCALBASE}/bin/tcsh," \
${PREFIX}/share/qflow/scripts/*.sh ${PREFIX}/bin/qflow
.include <bsd.port.mk>