46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gem5
|
|
PORTVERSION= 0.0.${DATE}
|
|
CATEGORIES= emulators
|
|
|
|
MAINTAINER= vg@FreeBSD.org
|
|
COMMENT= gem5 Simulator System
|
|
|
|
BROKEN= Uses removed MAP_NORESERVE
|
|
DEPRECATED= Broken for more than 6 months
|
|
EXPIRATION_DATE= 2015-12-30
|
|
|
|
BUILD_DEPENDS= swig2.0:${PORTSDIR}/devel/swig20 \
|
|
scons:${PORTSDIR}/devel/scons
|
|
|
|
DATE= 20140422
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= CTSRD-CHERI
|
|
GH_TAGNAME= 99d65cc
|
|
SWIG_BIN= swig2.0
|
|
USES= gmake
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
|
|
IGNORE= does not support FreeBSD versions < 10.0
|
|
.endif
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${GMAKE} -C util/term
|
|
cd ${WRKSRC} && ${SETENV} SWIG="${PREFIX}/bin/${SWIG_BIN}" scons \
|
|
build/ARM/gem5.opt
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} \
|
|
${STAGEDIR}${PREFIX}/${PORTNAME}/ARM
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} configs \
|
|
${STAGEDIR}${PREFIX}/${PORTNAME})
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} build/ARM/gem5.opt \
|
|
${STAGEDIR}${PREFIX}/${PORTNAME}/ARM/gem5.opt)
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} util/term/m5term \
|
|
${STAGEDIR}${PREFIX}/bin/m5term)
|
|
|
|
.include <bsd.port.post.mk>
|