aboutsummaryrefslogtreecommitdiff
path: root/devel/nextpnr/Makefile
blob: d3e46f4c6a80ce4698fedf3d82c71a5dbb0f5b25 (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
37
38
39
PORTNAME=	nextpnr
DISTVERSION=	g20200804
PORTREVISION=	4
CATEGORIES=	devel

MAINTAINER=	manu@FreeBSD.org
COMMENT=	Portable FPGA place and route tool
WWW=		https://github.com/YosysHQ/nextpnr

LICENSE=	ISCL
LICENSE_FILE=	${WRKSRC}/COPYING

NOT_FOR_ARCHS=	i386
NOT_FOR_ARCHS_REASON=	clang segfault
BROKEN_FreeBSD_12_powerpc64=	runaway build

BUILD_DEPENDS=	${LOCALBASE}/share/trellis/database:devel/trellis \
		${LOCALBASE}/share/icebox:devel/icestorm
LIB_DEPENDS=	libboost_thread.so:devel/boost-libs \
		libboost_filesystem.so:devel/boost-libs \
		libboost_program_options.so:devel/boost-libs \
		${PY_BOOST}

USES=		compiler:c++11-lang cmake qt:5 eigen:3 python:3.5+ gl
USE_QT=		buildtools:build core gui opengl qmake:build widgets
USE_GL=		gl glu
USE_GITHUB=	yes
GH_ACCOUNT=	YosysHQ
GH_TAGNAME=	48cd407
GH_TUPLE=	YosysHQ:nextpnr-tests:8f93e7e:tests/tests

BINARY_ALIAS=	python3=${PYTHON_CMD}

CMAKE_ARGS=	-DARCH="ice40;ecp5" -DTRELLIS_ROOT=${LOCALBASE}/share/trellis/

PLIST_FILES=	bin/nextpnr-ecp5 \
		bin/nextpnr-ice40

.include <bsd.port.mk>