Page MenuHomeFreeBSD

No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/cad/verilator/Makefile b/cad/verilator/Makefile
index 7813940ae15e..3e8372de31a9 100644
--- a/cad/verilator/Makefile
+++ b/cad/verilator/Makefile
@@ -1,70 +1,73 @@
PORTNAME= verilator
DISTVERSIONPREFIX= v
DISTVERSION= 5.050
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= cad
MAINTAINER= yuri@FreeBSD.org
COMMENT= Synthesizable Verilog to C++ compiler
WWW= https://www.veripool.org/verilator/ \
https://github.com/verilator/verilator
LICENSE= ART20 LGPL3+
LICENSE_COMB= dual
LICENSE_FILE_ART20= ${WRKSRC}/LICENSES/Artistic-2.0.txt
LICENSE_FILE_LGPL3+ = ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/bin/ar:devel/binutils \
autoconf>0:devel/autoconf \
bash:shells/bash \
help2man:misc/help2man
LIB_DEPENDS= libsystemc.so:devel/systemc # systemc is only added to share/verilator/include/verilated.mk for use during verilation, verilator's own binaries aren't linked with systemc
RUN_DEPENDS= ${LOCALBASE}/bin/ar:devel/binutils
RUN_REPENDS+= gmake:devel/gmake # verilator runs gmake for the --hierarchical option when the 'gmake' method is chosen
RUN_DEPENDS+= liblz4>0:archivers/liblz4 # run-time error if the lz4 library is missing
USES= bison compiler:c++17-lang gmake localbase:ldflags perl5 \
python:build,run,test shebangfix tar:tgz
USE_CXXSTD= c++17 # needs to match that of devel/systemc to avoid mismatches like https://github.com/verilator/verilator/issues/4499
USE_GITHUB= yes
SHEBANG_FILES= bin/verilator_ccache_report bin/verilator_difftree \
bin/verilator_gantt bin/verilator_includer \
bin/verilator_profcfunc
GNU_CONFIGURE= yes
CONFIGURE_ARGS= AR=${LOCALBASE}/bin/ar \
PYTHON3=${PYTHON_CMD}
CONFIGURE_ENV= INSTALL_PROGRAM="${INSTALL_SCRIPT}"
TEST_TARGET= test
BINARY_ALIAS= git=false make=${GMAKE} python3=${PYTHON_CMD}
OPTIONS_DEFINE= INSTALL_DBG_EXECUTABLES LEAK_CHECKS
OPTIONS_SUB= yes
INSTALL_DBG_EXECUTABLES_DESC= Install *_dbg executables
LEAK_CHECKS_DESC= Disable intentional memory leaks
LEAK_CHECKS_CXXFLAGS= -DVL_LEAK_CHECKS
post-patch:
@${REINPLACE_CMD} -e 's|@pkgconfigdir@|${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/Makefile.in
pre-configure:
cd ${WRKSRC} && \
autoconf
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/verilator_bin
+ # pass compile and link flags to the verilated program so that it can find liblz4, see https://github.com/verilator/verilator/issues/7969
+ @${REINPLACE_CMD} -E 's|^PYTHON3 = .*|&\n\CXXFLAGS = ${CXXFLAGS}\n\CPPFLAGS = ${CPPFLAGS}\nLDFLAGS = ${LDFLAGS}|' \
+ ${STAGEDIR}${PREFIX}/share/verilator/include/verilated.mk
post-install-INSTALL_DBG_EXECUTABLES-off:
@${RM} \
${STAGEDIR}${PREFIX}/bin/verilator_bin_dbg \
${STAGEDIR}${PREFIX}/bin/verilator_coverage_bin_dbg \
${STAGEDIR}${PREFIX}/share/verilator/bin/verilator_bin_dbg \
${STAGEDIR}${PREFIX}/share/verilator/bin/verilator_coverage_bin_dbg
.include <bsd.port.mk>

File Metadata

Mime Type
text/x-diff
Expires
Sun, Aug 9, 12:22 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29371242
Default Alt Text
(2 KB)

Event Timeline