openbsd-ports/benchmarks/lmbench/Makefile
turan 7d39fff6ee - fix patches
- fix plists
- man pages were not installing
2000-03-04 09:47:22 +00:00

57 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2000/03/04 09:47:22 turan Exp $
DISTNAME= lmbench
PKGNAME= lmbench-1.1
CATEGORIES= benchmarks
MAINTAINER= ports@openbsd.org
LICENSE_TYPE= GPL
PERMIT_PACKAGE_CDROM= YES
PERMIT_PACKAGE_FTP= YES
PERMIT_DISTFILES_CDROM= YES
PERMIT_DISTFILES_FTP= YES
# this is the new home site
#
MASTER_SITES= ftp://ftp.bitmover.com/lmbench/
EXTRACT_SUFX= .tar.Z
ALL_TARGET= build
MAKE_ENV= PATH=${PATH}:${WRKSRC}/scripts
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
test: build
@(cd ${WRKSRC}; make results)
retest: build
@(cd ${WRKSRC}; make rerun)
# This package comes with its own RCS directory which confuses patch.
# Move it so patch doesn't get confused.
#
pre-patch:
@mv ${WRKSRC}/src/RCS ${WRKSRC}/src/RCS-
pre-install:
[ -d ${PREFIX}/lib/lmbench ] || mkdir -p ${PREFIX}/lib/lmbench
do-install:
rm -rf ${WRKSRC}/{Results/RCS,doc/RCS,scripts/RCS,RCS}
cp ${FILESDIR}/Makefile ${PREFIX}/lib/lmbench
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
.include <bsd.port.mk>