summaryrefslogtreecommitdiff
path: root/devel/nextpnr/Makefile
blob: 187ca6c44ce376d9604a3a15bcfbebace68edd8d (plain)
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
# $FreeBSD$

PORTNAME=	nextpnr
PORTVERSION=	g20190529
PORTREVISION=	1
CATEGORIES=	devel

MAINTAINER=	manu@FreeBSD.org
COMMENT=	Portable FPGA place and route tool

LICENSE=	ISCL
LICENSE_FILE=	${WRKSRC}/COPYING

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

USE_GITHUB=	yes
GH_ACCOUNT=	YosysHQ
GH_TAGNAME=	150004e3

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>