aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cpuburn/Makefile
blob: 4e92a8ad81ebb70ff307a638ff6ee101fa0ac53b (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
# Created by: Mark Pulford <mark@kyne.com.au>

PORTNAME=	cpuburn
DISTVERSION=	1_4
PORTREVISION=	3
CATEGORIES=	sysutils
MASTER_SITES=	http://www.bayofrum.net/dist/${PORTNAME}/ \
		http://atarininja.org/distfiles/ \
		LOCAL/avg
DISTNAME=	cpuburn_${DISTVERSION}
EXTRACT_SUFX=	_tar.gz

MAINTAINER=	avg@FreeBSD.org
COMMENT=	CPU/memory stress testing utilities

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
ONLY_FOR_ARCHS=	i386 amd64

PORTDOCS=	README Design
CPUS=		BX K6 K7 MMX P5 P6
PLIST_FILES=	${CPUS:S+^+bin/burn+}

OPTIONS_DEFINE=	DOCS

do-build:
.for CPU in ${CPUS}
	${CC} -m32 -s -nostdlib -o ${WRKSRC}/burn${CPU} ${WRKSRC}/burn${CPU}.S
.endfor

do-install:
.for CPU in ${CPUS}
	${INSTALL_PROGRAM} ${WRKSRC}/burn${CPU} ${STAGEDIR}${PREFIX}/bin/
.endfor
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/Design ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>