blob: e06f9feedd60b2bae954c36ecc4ae4bc6e180a5e (
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
50
|
# $NetBSD: Makefile,v 1.10 2009/05/19 22:26:13 abs Exp $
#
# Note -- version number also in the do-install rule
MAJVER=2
MINVER=10
DISTNAME= memtest86+-${MAJVER}.${MINVER}
PKGNAME= memtestplus-${MAJVER}.${MINVER}
CATEGORIES= sysutils
MASTER_SITES= http://www.memtest.org/download/${MAJVER}.${MINVER}/
MAINTAINER= smb@NetBSD.org
HOMEPAGE= http://www.memtest.org/
COMMENT= Thorough, stand alone memory test for x86 arch
ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i386 NetBSD-*-x86_64 Linux-*-x86_64
USE_TOOLS+= gmake
SUBST_CLASSES+= delcr
SUBST_STAGE.delcr= post-build
SUBST_MESSAGE.delcr= Deleting CRs
SUBST_FILES.delcr= README
SUBST_SED.delcr= -e 's/.$$//g'
PKG_DESTDIR_SUPPORT= user-destdir
.include "options.mk"
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-3.*)
BUILDLINK_TRANSFORM+= rm:-fno-stack-protector
.endif
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/mdec
${INSTALL_DATA} ${WRKSRC}/memtest.bin \
${DESTDIR}${PREFIX}/mdec/memtestplus.bin
${INSTALL_DATA} ${WRKSRC}/memtest ${DESTDIR}${PREFIX}/mdec/memtestplus
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/memtestplus
${INSTALL_DATA} ${WRKSRC}/README \
${DESTDIR}${PREFIX}/share/doc/memtestplus
${INSTALL_DATA} ${WRKSRC}/FAQ ${DESTDIR}${PREFIX}/share/doc/memtestplus
.if !empty(PKG_OPTIONS:Miso)
${INSTALL_DATA} ${WRKSRC}/mt${MAJVER}${MINVER}.iso \
${DESTDIR}${PREFIX}/mdec/memtestplus.iso
.endif
.include "../../mk/bsd.pkg.mk"
|