freebsd-ports/emulators/riscv-isa-sim/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

53 lines
1 KiB
Makefile

# $FreeBSD$
PORTNAME= riscv-isa-sim
DISTVERSION= git
PORTREVISION= 20180104
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= acf9589
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>