aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/lzbench/Makefile
blob: 64cc5c4a2c6eb5fec041ef1d21191686280e4c3e (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
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=   lzbench
PORTVERSION=    1.7.3
PORTREVISION=   1
DISTVERSIONPREFIX=  v
CATEGORIES= benchmarks

MAINTAINER= danfe@FreeBSD.org
COMMENT=    In-memory benchmark of open-source LZ77/LZSS/LZMA compressors

USES=       compiler:c11 gmake
USE_GITHUB= yes
GH_ACCOUNT= inikep

MAKE_ENV=   CODE_FLAGS=-Wno-c++11-narrowing     # XXX: for clang 6

PLIST_FILES=    bin/lzbench
PORTDOCS=   NEWS

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e '/PROGOS/s,Linux,${OPSYS},' \
        ${WRKSRC}/_lzbench/lzbench.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/lzbench ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>