1995-05-06 13:49:56 +02:00
|
|
|
# New ports collection makefile for: lmbench
|
|
|
|
# Date created: 6 May 1995
|
|
|
|
# Whom: 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
|
2009-06-25 21:05:27 +02:00
|
|
|
PORTREVISION= 1
|
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/}
|
|
|
|
EXTRACT_SUFX= .tgz
|
1995-05-06 13:49:56 +02:00
|
|
|
|
2009-06-25 20:17:04 +02:00
|
|
|
MAINTAINER= sacchi@gmail.com
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A system performance measurement tool
|
1995-05-06 13:49:56 +02:00
|
|
|
|
|
|
|
ALL_TARGET= build
|
2012-01-14 21:02:52 +01:00
|
|
|
MAKE_ARGS= CC='${CC}'
|
1997-05-28 04:18:20 +02:00
|
|
|
MAKE_ENV= PATH=${PATH}:${WRKSRC}/scripts
|
2005-10-25 20:09:10 +02:00
|
|
|
MAN1= bargraph.1 graph.1 pgraph.1 rccs.1
|
|
|
|
MAN3= lmbench.3 reporting.3 results.3 timing.3
|
|
|
|
MAN8= bw_file_rd.8 bw_mem.8 bw_mem_rd.8 bw_mmap_rd.8 \
|
|
|
|
bw_pipe.8 bw_tcp.8 bw_unix.8 cache.8 lat_connect.8 \
|
|
|
|
lat_ctx.8 lat_fcntl.8 lat_fifo.8 lat_fs.8 lat_http.8 \
|
|
|
|
lat_mem_rd.8 lat_mmap.8 lat_ops.8 lat_pagefault.8 \
|
|
|
|
lat_pipe.8 lat_proc.8 lat_rpc.8 lat_select.8 lat_sig.8 \
|
|
|
|
lat_syscall.8 lat_tcp.8 lat_udp.8 lat_unix.8 \
|
|
|
|
lat_unix_connect.8 line.8 lmbench.8 lmdd.8 mhz.8 \
|
|
|
|
par_mem.8 par_ops.8 stream.8 tlb.8
|
|
|
|
|
2009-06-25 21:05:27 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2005-10-25 20:09:10 +02:00
|
|
|
# the bindir for the PLIST is:
|
|
|
|
# (note that ./os needs to be run inside the work dir, running it
|
|
|
|
# outside will give a different result.)
|
|
|
|
#LMBENCH_OS!= cd ${WRKSRC}/scripts && ./os
|
|
|
|
#PLIST_SUB= LMBENCH_OS=${LMBENCH_OS}
|
|
|
|
PLIST_SUB= "LMBENCH_OS=$$(cd ${WRKSRC}/scripts && ./os)"
|
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
|
|
|
|
|
|
|
|
# Clean up turds from building the library. Some systems just have
|
|
|
|
# .o, some also end up with .s, so clean up both.
|
|
|
|
post-build:
|
2005-10-27 19:56:36 +02:00
|
|
|
@${RM} -f ${WRKSRC}/bin/*/*.[os]
|
2001-08-01 23:17:12 +02:00
|
|
|
|
1995-05-14 08:08:08 +02:00
|
|
|
pre-install:
|
1997-08-10 00:25:01 +02:00
|
|
|
[ -d ${PREFIX}/lib/lmbench ] || ${MKDIR} ${PREFIX}/lib/lmbench
|
1995-05-14 08:08:08 +02:00
|
|
|
|
|
|
|
do-install:
|
1997-08-10 00:25:01 +02:00
|
|
|
${CP} ${FILESDIR}/Makefile ${PREFIX}/lib/lmbench
|
2005-10-25 20:09:10 +02:00
|
|
|
tar --exclude \*.orig -C ${WRKSRC} -cf - bin scripts results | \
|
1995-05-14 08:08:08 +02:00
|
|
|
tar -C ${PREFIX}/lib/lmbench -xf -
|
1996-11-18 12:44:27 +01:00
|
|
|
.for man in ${MAN1}
|
1997-08-10 00:25:01 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${man} ${PREFIX}/man/man1
|
1996-03-21 12:35:08 +01:00
|
|
|
.endfor
|
2005-10-25 20:09:10 +02:00
|
|
|
.for man in ${MAN3}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${man} ${PREFIX}/man/man3
|
|
|
|
.endfor
|
1996-11-18 12:44:27 +01:00
|
|
|
.for man in ${MAN8}
|
1997-08-10 00:25:01 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${man} ${PREFIX}/man/man8
|
1996-03-21 12:35:08 +01:00
|
|
|
.endfor
|
1995-05-14 08:08:08 +02:00
|
|
|
|
1995-05-06 13:49:56 +02:00
|
|
|
.include <bsd.port.mk>
|