aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/fhourstones/Makefile
blob: d1fda0de29c5af7af57f829b24a168f6d20730b3 (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
# 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>