aboutsummaryrefslogtreecommitdiff
path: root/cad/yosys-ghdl-plugin/Makefile
blob: 164ff5e189234dbbd46c6fc4e31b34d18fefbf8c (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
PORTNAME=	yosys-ghdl-plugin
PORTVERSION=	g20230930
PORTREVISION=	1
CATEGORIES=	cad

MAINTAINER=	nsonack@outlook.com
COMMENT=	GHDL synthesis plugin for yosys
WWW=		https://github.com/ghdl/ghdl-yosys-plugin

LICENSE=	GPLv3

BUILD_DEPENDS=	ghdl>0:cad/ghdl \
		yosys>0:cad/yosys
RUN_DEPENDS=	yosys>0:cad/yosys
LIB_DEPENDS=	libffi.so:devel/libffi \
		libghdl-4_0_0.so:cad/ghdl \
		libtcmalloc.so:devel/google-perftools

USES=		gmake readline tcl
USE_GITHUB=	yes
GH_ACCOUNT=	ghdl
GH_PROJECT=	ghdl-yosys-plugin
GH_TAGNAME=	d44a7bccdaa458ab3ec0ce83459410604bee6c60

MAKE_ENV+=	GHDL=${LOCALBASE}/bin/ghdl \
		YOSYS_CONFIG=${LOCALBASE}/bin/yosys-config

PLIST_FILES=	share/yosys/plugins/ghdl.so

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/yosys/plugins/ghdl.so

.include <bsd.port.mk>