blob: a4f28cc43702cc20cca4a391ebe9471c35f8b4fa (
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
49
50
51
52
53
|
# $FreeBSD$
PORTNAME= riscv-isa-sim
DISTVERSION= git
PORTREVISION= 20170809
CATEGORIES= emulators
MAINTAINER= lwhsu@FreeBSD.org
COMMENT= Spike, a RISC-V ISA Simulator
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libfesvr.so:emulators/riscv-fesvr
ONLY_FOR_ARCHS= amd64
GH_ACCOUNT= freebsd-riscv
GH_TAGNAME= 54ae820
USES= compiler:c++11-lang gmake shebangfix
HAS_CONFIGURE= yes
SHEBANG_FILES= scripts/vcs-version.sh
USE_GITHUB= yes
USE_LDCONFIG= yes
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include \
-DRISCV_ENABLE_DIRTY=1
STRIP_FILES= bin/spike \
bin/spike-dasm \
bin/termios-xspike \
bin/xspike \
lib/libdummy_rocc.so \
lib/libriscv.so \
lib/libsoftfloat.so \
lib/libspike_main.so
post-extract:
@${MV} ${WRKSRC}/riscv/insn_template.h ${WRKSRC}/riscv/insn_template.hpp
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>
|