2013-08-31 01:09:24 +02:00
|
|
|
# Created by: asami
|
1999-08-25 06:58:03 +02:00
|
|
|
# $FreeBSD$
|
1995-05-06 13:49:56 +02:00
|
|
|
|
2000-04-09 00:04:57 +02:00
|
|
|
PORTNAME= lmbench
|
2009-06-25 20:17:04 +02:00
|
|
|
PORTVERSION= 3.0.a9
|
2014-11-03 11:42:12 +01:00
|
|
|
PORTREVISION= 3
|
2009-06-25 20:17:04 +02:00
|
|
|
PORTEPOCH= 1
|
1996-11-18 12:44:27 +01:00
|
|
|
CATEGORIES= benchmarks
|
2009-08-22 02:15:15 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/development/${PORTNAME}-3.0-a9 http://thegaul.org/src/
|
2009-06-25 20:17:04 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.a9/-a9/}
|
1995-05-06 13:49:56 +02:00
|
|
|
|
2009-06-25 20:17:04 +02:00
|
|
|
MAINTAINER= sacchi@gmail.com
|
2014-01-05 02:44:41 +01:00
|
|
|
COMMENT= System performance measurement tool
|
1995-05-06 13:49:56 +02:00
|
|
|
|
|
|
|
ALL_TARGET= build
|
2014-05-20 21:32:39 +02:00
|
|
|
MAKE_ARGS= CC="${CC}"
|
1997-05-28 04:18:20 +02:00
|
|
|
MAKE_ENV= PATH=${PATH}:${WRKSRC}/scripts
|
2014-07-29 21:11:51 +02:00
|
|
|
USES= shebangfix perl5 gmake tar:tgz
|
2014-01-05 02:44:41 +01:00
|
|
|
USE_PERL5= run
|
|
|
|
SHEBANG_FILES= scripts/getresults
|
2014-11-03 11:42:12 +01:00
|
|
|
PLIST_SUB= LMBENCH_OS=${ARCH}-${OPSYS:tl}${OSREL}
|
1995-05-06 13:49:56 +02:00
|
|
|
|
|
|
|
test: build
|
|
|
|
@(cd ${WRKSRC}; make results)
|
|
|
|
|
|
|
|
retest: build
|
|
|
|
@(cd ${WRKSRC}; make rerun)
|
|
|
|
|
2005-10-25 20:09:10 +02:00
|
|
|
# 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
|
2005-10-26 18:32:55 +02:00
|
|
|
cd ${WRKSRC}/scripts; ./version > ${WRKSRC}/src/bk.ver
|
2014-11-03 12:45:03 +01:00
|
|
|
${ECHO} "#!${SH}" > ${WRKSRC}/scripts/os
|
|
|
|
${ECHO} "echo ${ARCH}-${OPSYS:tl}${OSREL}" >> ${WRKSRC}/scripts/os
|
2005-10-26 18:32:55 +02:00
|
|
|
|
|
|
|
# Clean up turds from building the library. Some systems just have
|
|
|
|
# .o, some also end up with .s, so clean up both.
|
|
|
|
post-build:
|
2016-10-21 14:51:40 +02:00
|
|
|
@${RM} ${WRKSRC}/bin/*/*.[os]
|
2001-08-01 23:17:12 +02:00
|
|
|
|
1995-05-14 08:08:08 +02:00
|
|
|
do-install:
|
2014-01-05 02:44:41 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/lmbench
|
|
|
|
${CP} ${FILESDIR}/Makefile ${STAGEDIR}${PREFIX}/lib/lmbench
|
2005-10-25 20:09:10 +02:00
|
|
|
tar --exclude \*.orig -C ${WRKSRC} -cf - bin scripts results | \
|
2014-01-05 02:44:41 +01:00
|
|
|
tar -C ${STAGEDIR}${PREFIX}/lib/lmbench -xf -
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.3 ${STAGEDIR}${PREFIX}/man/man3
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.8 ${STAGEDIR}${PREFIX}/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}
|
1995-05-14 08:08:08 +02:00
|
|
|
|
1995-05-06 13:49:56 +02:00
|
|
|
.include <bsd.port.mk>
|