summaryrefslogtreecommitdiff
path: root/benchmarks/unixbench/Makefile
blob: d711f418d74d3cb180a59720f465d71c89b82594 (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
# New ports collection makefile for:    bytebench
# Date created:         28 December 1995
# Whom:                 se
#
# $FreeBSD$
#

PORTNAME=	bytebench
PORTVERSION=	3.1
CATEGORIES=	benchmarks
MASTER_SITES=	ftp://ftp.inria.fr/archives/system/benchmark/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	se@FreeBSD.org
COMMENT=	The BYTE magazine benchmark suite

do-install:
	-${MKDIR} $(PREFIX)/lib/bytebench
	for f in Makefile README Run doc pgms results testdir; \
		do ${CP} -R $(WRKSRC)/$$f $(PREFIX)/lib/bytebench; done
	${ECHO_CMD} "#!/bin/sh"		   >  $(PREFIX)/bin/bytebench
	${ECHO_CMD} "TMPDIR=\$${TMPDIR-/var/tmp}" >> $(PREFIX)/bin/bytebench
	${ECHO_CMD} "RESULTDIR=/tmp"		   >> $(PREFIX)/bin/bytebench
	${ECHO_CMD} "export TMPDIR RESULTDIR"	   >> $(PREFIX)/bin/bytebench
	${ECHO_CMD} "cd $(PREFIX)/lib/bytebench"  >> $(PREFIX)/bin/bytebench
	${ECHO_CMD} "exec ./Run \"\$$@\""	   >> $(PREFIX)/bin/bytebench
	${CHMOD} 755 $(PREFIX)/bin/bytebench
	${CHMOD} 644 $(PREFIX)/lib/bytebench/Makefile
	${CHMOD} 644 $(PREFIX)/lib/bytebench/README
	${CHMOD} 755 $(PREFIX)/lib/bytebench/Run
	${CHMOD} 755 $(PREFIX)/lib/bytebench/doc
	${CHMOD} 755 $(PREFIX)/lib/bytebench/pgms
	${CHMOD} 755 $(PREFIX)/lib/bytebench/pgms/*
	${CHMOD} 755 $(PREFIX)/lib/bytebench/results
	${CHMOD} 755 $(PREFIX)/lib/bytebench/testdir
	@${RM} -f ${PREFIX}/lib/bytebench/pgms/*.orig

.include <bsd.port.mk>