summaryrefslogtreecommitdiff
path: root/cad/verilator/Makefile
blob: c533ca4ff7122096293cef859a0d49c92d7ce061 (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
# $NetBSD: Makefile,v 1.8 2021/05/24 19:49:12 wiz Exp $

DISTNAME=	verilator-4.100
PKGREVISION=	1
CATEGORIES=	cad
MASTER_SITES=	https://www.veripool.org/ftp/
EXTRACT_SUFX=	.tgz

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	https://www.veripool.org/wiki/verilator
COMMENT=	Verilog HDL simulator
LICENSE=	gnu-lgpl-v3 OR artistic-2.0

GNU_CONFIGURE=	yes
FLEX_REQD=	2.6.4
USE_TOOLS+=	bison flex gmake perl pkg-config
USE_LANGUAGES=	c c++

TOOLS_PLATFORM.flex=	# Use flex from pkgsrc

REPLACE_PERL+=	bin/*
REPLACE_PERL+=	test_regress/*.pl
REPLACE_PERL+=	test_regress/t/*.pl

CONFIGURE_ENV+=		ac_cv_path_YACC=bison

# for long tests
TEST_DEPENDS+=		p5-Unix-Processors-[0-9]*:../../sysutils/p5-Unix-Processors
CONFIGURE_ARGS+=	--enable-longtests
TEST_TARGET=		test

PKGCONFIG_OVERRIDE+=	verilator.pc.in

.include "../../mk/bsd.pkg.mk"