# $FreeBSD: tags/RELEASE_12_2_0/emulators/riscv-fesvr/Makefile 481272 2018-10-05 11:06:25Z lwhsu $

PORTNAME=	riscv-fesvr
DISTVERSION=	git
PORTREVISION=	20181005
CATEGORIES=	emulators

MAINTAINER=	lwhsu@FreeBSD.org
COMMENT=	RISC-V Frontend Server

LICENSE=	BSD3CLAUSE

ONLY_FOR_ARCHS=	amd64

USES=	gmake

GH_ACCOUNT=	freebsd-riscv
GH_TAGNAME=	8c831dc

HAS_CONFIGURE=	yes
USE_GITHUB=	yes
USE_LDCONFIG=	yes

STRIP_FILES=	bin/elf2hex \
		lib/libfesvr.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>
