summaryrefslogtreecommitdiff
path: root/benchmarks/unixbench/Makefile
blob: 3e4b6b42bad8050f9aa577e616dc0277ab0e9c89 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
# Created by: se
# $FreeBSD$

PORTNAME=	unixbench
PORTVERSION=	4.1.0
PORTREVISION=	2
CATEGORIES=	benchmarks
MASTER_SITES=	http://ftp.osuosl.org/pub/nslu2/sources/ \
		http://www.tux.org/pub/tux/niemi/unixbench/

MAINTAINER=	luca.pizzamiglio@gmail.com
COMMENT=	BYTE magazine's Public Domain benchmark for UNIX

USES=		shebangfix tar:tgz
SHEBANG_FILES=	pgms/perlbench
SUB_FILES=	unixbench
MAKE_JOBS_UNSAFE=	yes

post-extract:
	${RM} -f ${WRKSRC}/pgms/select

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/unixbench ${STAGEDIR}${PREFIX}/bin/
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/unixbench
	for f in Run ; do \
		${INSTALL_SCRIPT} ${WRKSRC}/$${f} ${STAGEDIR}${PREFIX}/lib/unixbench/ ; \
	done
	for f in Makefile README ; do \
		${INSTALL_DATA} ${WRKSRC}/$${f} ${STAGEDIR}${PREFIX}/lib/unixbench/ ; \
	done
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/unixbench/pgms
	for f in ${WRKSRC}/pgms/* ; do \
		case $$f in \
	*.awk|*.sh|*perlbench) \
		${INSTALL_SCRIPT} $${f} ${STAGEDIR}${PREFIX}/lib/unixbench/pgms/ ;; \
	*.logo|*.base) \
		${INSTALL_SCRIPT} $${f} ${STAGEDIR}${PREFIX}/lib/unixbench/pgms/ ;; \
	*.orig|*.rej|*~) \
		;;\
	*) \
		${INSTALL_PROGRAM} $${f} ${STAGEDIR}${PREFIX}/lib/unixbench/pgms/ ;; \
		esac ; \
	done
	-${MKDIR} ${STAGEDIR}${PREFIX}/lib/unixbench/testdir
	for f in ${WRKSRC}/testdir/* ; do \
		${INSTALL_DATA} $${f} ${STAGEDIR}${PREFIX}/lib/unixbench/testdir/ ; \
	done

.include <bsd.port.mk>