2005-12-22 17:38:52 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2005/12/22 22:38:52 sturm Exp $
|
1997-11-27 12:42:23 -05:00
|
|
|
|
2001-05-05 17:59:24 -04:00
|
|
|
COMMENT= "system performance measurement"
|
1997-11-27 12:42:23 -05:00
|
|
|
DISTNAME= lmbench
|
|
|
|
PKGNAME= lmbench-1.1
|
|
|
|
CATEGORIES= benchmarks
|
1998-10-07 00:43:01 -04:00
|
|
|
|
2001-06-19 21:43:11 -04:00
|
|
|
# License: GPL
|
2000-04-08 16:12:16 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-21 13:01:03 -05:00
|
|
|
WANTLIB= c
|
2000-02-12 03:02:07 -05:00
|
|
|
|
1998-10-07 00:43:01 -04:00
|
|
|
# this is the new home site
|
|
|
|
#
|
|
|
|
MASTER_SITES= ftp://ftp.bitmover.com/lmbench/
|
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
1997-11-27 12:42:23 -05:00
|
|
|
ALL_TARGET= build
|
|
|
|
MAKE_ENV= PATH=${PATH}:${WRKSRC}/scripts
|
|
|
|
|
2000-03-04 04:47:22 -05:00
|
|
|
MAN1= bargraph.1 graph.1
|
|
|
|
MAN8= lmbench.8 lat_proc.8 lat_mmap.8 lat_ctx.8 lat_syscall.8 lat_pipe.8 \
|
|
|
|
lat_tcp.8 lat_udp.8 lat_rpc.8 lat_connect.8 lat_fs.8 lat_pagefault.8 \
|
|
|
|
lat_mem_rd.8 bw_file_rd.8 bw_mem_cp.8 bw_mem_rd.8 bw_mem_wr.8 \
|
|
|
|
bw_mmap_rd.8 bw_pipe.8 bw_tcp.8 mhz.8 lmdd.8
|
|
|
|
|
2002-10-24 18:46:16 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1997-11-27 12:42:23 -05:00
|
|
|
test: build
|
2002-10-24 18:46:16 -04:00
|
|
|
@cd ${WRKSRC}; make results
|
1997-11-27 12:42:23 -05:00
|
|
|
|
|
|
|
retest: build
|
2002-10-24 18:46:16 -04:00
|
|
|
@cd ${WRKSRC}; make rerun
|
1997-11-27 12:42:23 -05:00
|
|
|
|
1998-03-01 03:28:33 -05:00
|
|
|
# This package comes with its own RCS directory which confuses patch.
|
|
|
|
# Move it so patch doesn't get confused.
|
|
|
|
#
|
|
|
|
pre-patch:
|
2000-02-10 20:09:59 -05:00
|
|
|
@mv ${WRKSRC}/src/RCS ${WRKSRC}/src/RCS-
|
1998-03-01 03:28:33 -05:00
|
|
|
|
1997-11-27 12:42:23 -05:00
|
|
|
pre-install:
|
2001-03-22 17:06:35 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/lmbench
|
1997-11-27 12:42:23 -05:00
|
|
|
|
|
|
|
do-install:
|
2000-03-04 04:47:22 -05:00
|
|
|
rm -rf ${WRKSRC}/{Results/RCS,doc/RCS,scripts/RCS,RCS}
|
2000-02-10 20:09:59 -05:00
|
|
|
cp ${FILESDIR}/Makefile ${PREFIX}/lib/lmbench
|
1997-11-27 12:42:23 -05:00
|
|
|
tar -C ${WRKSRC} -cf - Results bin scripts | \
|
|
|
|
tar -C ${PREFIX}/lib/lmbench -xf -
|
|
|
|
.for man in ${MAN1}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${man} ${PREFIX}/man/man1
|
|
|
|
.endfor
|
|
|
|
.for man in ${MAN8}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${man} ${PREFIX}/man/man8
|
|
|
|
.endfor
|
|
|
|
|
2000-04-08 16:12:16 -04:00
|
|
|
# Fix packaging for non-root
|
|
|
|
post-install:
|
2005-12-22 17:38:52 -05:00
|
|
|
@chmod -R a+rX ${PREFIX}/lib/lmbench
|
2000-04-08 16:12:16 -04:00
|
|
|
|
1997-11-27 12:42:23 -05:00
|
|
|
.include <bsd.port.mk>
|