blob: 5d61034efaba3183135c3e2793fe7f146f2bddca (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
PORTNAME= riscv-isa-sim
DISTVERSION= git
PORTREVISION= 20211015
CATEGORIES= emulators
MAINTAINER= lwhsu@FreeBSD.org
COMMENT= Spike, a RISC-V ISA Simulator
WWW= https://github.com/riscv/riscv-isa-sim
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>
|