aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/interbench/Makefile
blob: 13193bbc9ef9459c457eef573db5dd5309edf9d9 (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
39
40
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=   interbench
DISTVERSION=    0.31
CATEGORIES= benchmarks
MASTER_SITES=   http://ck.kolivas.org/apps/${PORTNAME}/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Interactivity benchmark for Unix-like systems

LICENSE=    GPLv2

USE_BZIP2=  yes
USES=       gmake
MAKE_ARGS=  CC="${CC}" CFLAGS="${CFLAGS}"
ALL_TARGET= ${PORTNAME}

PLIST_FILES=    bin/${PORTNAME} man/man8/${PORTNAME}.8.gz
PORTDOCS=   readme readme.interactivity

OPTIONS_DEFINE= DOCS

post-patch:
# Do not confuse the reader that this program is Linux-specific
    @${REINPLACE_CMD} -e '/kernel/!s,Linux,Unix-like systems, ; \
        /kernel/s,Linux,the,' ${WRKSRC}/${PORTNAME}.8

pre-build:
# Remove stale Linuxish object files and binaries; setting ALL_TARGET to
# "clean ${PORTNAME}" turned out to be racy and breaking parallel builds
    ${MAKE} -C ${BUILD_WRKSRC} clean

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>