summaryrefslogtreecommitdiff
path: root/benchmarks/hbench/Makefile
blob: b23d4f34dca2e53ac19d0f5586a078255834ebec (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
# $NetBSD: Makefile,v 1.2 1998/09/17 14:49:12 agc Exp $

DISTNAME=		hbench-OS-1.0
PKGNAME=		hbench-1.0
CATEGORIES=		benchmarks
MASTER_SITES=		ftp://ftp.eecs.harvard.edu/pub/hbench-OS/

MAINTAINER=		root@garbled.net
HOMEPAGE=		http://www.eecs.harvard.edu/vino/perf/hbench/

DEPENDS+=		gnuplot-3.5:../../graphics/gnuplot

ALL_TARGET=		build
USE_PERL5=		yes
WRKSRC=			${WRKDIR}/hbench-OS
NETBSDVER!=		echo `uname -s|tr '[A-Z]' '[a-z]'``uname -r`-`uname -m`
ARCH!=			echo `uname -m`

PLIST_SRC=		${WRKDIR}/PLIST-src

post-patch:
	@if [ ${ARCH} = i386 ];then					\
		extrafiles=${PKGDIR}/PLIST.i386;			\
	else								\
		extrafiles="";						\
	fi ;								\
	${CAT} ${PKGDIR}/PLIST.md $$extrafiles ${PKGDIR}/PLIST.common |	\
		${SED} -e 's@XXXNETBSDVERXXX@${NETBSDVER}@' > ${PLIST_SRC}

post-configure:
	@cd ${WRKSRC};							\
	for f in scripts/create-all-analyses				\
		scripts/create-all-latgraphs				\
		scripts/create-all-summaries scripts/gen-analysis	\
		scripts/gen-latgraph scripts/gen-summary 		\
		scripts/interactive-setup scripts/maindriver		\
		Results/Makefile; do					\
		${MV} $$f $$f.in;					\
		${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' $$f.in > $$f;	\
	done
	@/bin/chmod 0755 ${WRKSRC}/scripts/*

do-install:
	@${SETENV} PREFIX=${PREFIX} WRKSRC=${WRKSRC} ${SCRIPTDIR}/do-install

.include "../../mk/bsd.pkg.mk"