blob: 0fa6071d6c66dec1f0f76265694b04776dbc3cef (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
PORTNAME= lmbench
PORTVERSION= 3.0.a9
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= benchmarks
MASTER_SITES= SF/${PORTNAME}/development/${PORTNAME}-3.0-a9 http://thegaul.org/src/
DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.a9/-a9/}
MAINTAINER= sacchi@gmail.com
COMMENT= System performance measurement tool
WWW= https://sourceforge.net/projects/lmbench/
ALL_TARGET= build
MAKE_ARGS= CC="${CC}"
MAKE_ENV= PATH=${PATH}:${WRKSRC}/scripts
USES= shebangfix perl5 gmake tar:tgz
USE_PERL5= run
SHEBANG_FILES= scripts/getresults
PLIST_SUB= LMBENCH_OS=${ARCH}-${OPSYS:tl}${OSREL}
test: build
@(cd ${WRKSRC}; make results)
retest: build
@(cd ${WRKSRC}; make rerun)
# This version seems to think that it's checked out directly from
# bitkeeper. It wants to look in ../SCCS/s.ChangeSet to find
# its version. Instead, make ../SCCS/s.ChangeSet old enough that
# make won't care, and create a bk.ver file with the distname in it.
post-extract:
${MKDIR} ${WRKSRC}/SCCS
${TOUCH} -t 199901010000 ${WRKSRC}/SCCS/s.ChangeSet
cd ${WRKSRC}/scripts; ./version > ${WRKSRC}/src/bk.ver
${ECHO} "#!${SH}" > ${WRKSRC}/scripts/os
${ECHO} "echo ${ARCH}-${OPSYS:tl}${OSREL}" >> ${WRKSRC}/scripts/os
# Clean up turds from building the library. Some systems just have
# .o, some also end up with .s, so clean up both.
post-build:
@${RM} ${WRKSRC}/bin/*/*.[os]
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/lmbench
${CP} ${FILESDIR}/Makefile ${STAGEDIR}${PREFIX}/lib/lmbench
tar --exclude \*.orig -C ${WRKSRC} -cf - bin scripts results | \
tar -C ${STAGEDIR}${PREFIX}/lib/lmbench -xf -
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${PREFIX}/share/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/*.3 ${STAGEDIR}${PREFIX}/share/man/man3
${INSTALL_MAN} ${WRKSRC}/doc/*.8 ${STAGEDIR}${PREFIX}/share/man/man8
${ECHO_CMD} ${STAGEDIR}${PREFIX}/lib/lmbench/bin/*/[^l]* \
${STAGEDIR}${PREFIX}/lib/lmbench/bin/*/l[iao]* \
${STAGEDIR}${PREFIX}/lib/lmbench/bin/*/lmdd \
${STAGEDIR}${PREFIX}/lib/lmbench/bin/*/lmhttp \
| ${XARGS} ${STRIP_CMD}
.include <bsd.port.mk>
|