1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/emulators/riscv-isa-sim/Makefile
Li-Wen Hsu 030ee293e5
emulators/riscv-isa-sim: Update to 20211015 snapshot
While here, switch to NOT_FOR_ARCHS because it builds at least on
aarch64, armv7 and we need to test other arches more. [1]

Reported by:	Robert Clausecker <fuz@fuz.su> [1]
2021-10-19 10:31:22 +08:00

48 lines
893 B
Makefile

PORTNAME= riscv-isa-sim
DISTVERSION= git
PORTREVISION= 20211015
CATEGORIES= emulators
MAINTAINER= lwhsu@FreeBSD.org
COMMENT= Spike, a RISC-V ISA Simulator
LICENSE= BSD3CLAUSE
NOT_FOR_ARCHS= i386
NOT_FOR_ARCHS_REASON= Does not build
USES= compiler:c++11-lang gmake shebangfix
GH_ACCOUNT= riscv
GH_TAGNAME= 4f12984
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --without-boost
SHEBANG_FILES= scripts/vcs-version.sh
USE_GITHUB= yes
USE_LDCONFIG= yes
CFLAGS+= -DRISCV_ENABLE_DIRTY=1
STRIP_FILES= bin/elf2hex \
bin/spike \
bin/spike-dasm \
bin/spike-log-parser \
bin/termios-xspike \
bin/xspike \
lib/libcustomext.so \
lib/libsoftfloat.so
post-patch:
${REINPLACE_CMD} -e \
's|[(]install_libs_dir[)]/pkgconfig|(INSTALLDIR)/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.in
post-install:
. for f in ${STRIP_FILES}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${f}
. endfor
.include <bsd.port.mk>