1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/benchmarks/fhourstones/Makefile
John Marino fe8803e74a benchmarks/fhourstones: New MASTER_SITES to unbreak, move executable
This port was broken due to being unfetchable.  While finding a new
source location, switch the executable from lib/fhourstones to
libexec/fhourstones.  Also, use "sed" and "echo" to eliminate the
need for patches.

Some changes were made to the submitted patch by me, but they were minor.

PR:		200293
Submitted by:	Ports Fury
2015-05-19 08:37:43 +00:00

39 lines
1.1 KiB
Makefile

# Created by: trasz <trasz@pin.if.uz.zgora.pl>
# $FreeBSD$
PORTNAME= fhourstones
PORTVERSION= 3.1
PORTREVISION= 2
CATEGORIES= benchmarks
MASTER_SITES= http://tromp.github.io/c4/
DISTNAME= Fhourstones
MAINTAINER= ports@FreeBSD.org
COMMENT= Integrated benchmark program
NO_WRKSUBDIR= yes
PLIST_FILES= bin/fhourstones \
libexec/fhourstones/SearchGame \
share/fhourstones/inputs
post-patch:
@${REINPLACE_CMD} -e \
's| = -O3| +=|' ${WRKSRC}/Makefile
post-build:
${ECHO_CMD} '#!${SH}' > ${WRKSRC}/fhourstones
${ECHO_CMD} 'libexecdir=${PREFIX}/libexec/fhourstones' \
>> ${WRKSRC}/fhourstones
${ECHO_CMD} 'datadir=${DATADIR}' >> ${WRKSRC}/fhourstones
${ECHO_CMD} 'exec $${libexecdir}/SearchGame < $${datadir}/inputs' \
>> ${WRKSRC}/fhourstones
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/fhourstones ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/fhourstones ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/inputs ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/SearchGame \
${STAGEDIR}${PREFIX}/libexec/fhourstones
.include <bsd.port.mk>