This makes the package more useful for users of binary packages, who can then burn a bootable memtest CD, and only costs 1.8 MB without adding any run-time dependencies. Source users get a dependency on cdrtools, but that's likely already installed, and the option can easily be turned off in that case (unlike binary package users, who can't change options).
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.19 2014/06/04 16:07:34 gdt Exp $
|
|
#
|
|
|
|
# Note -- version number also in the do-install rule
|
|
MAJVER=5
|
|
MINVER=01
|
|
|
|
DISTNAME= memtest86+-${MAJVER}.${MINVER}
|
|
PKGNAME= memtestplus-${MAJVER}.${MINVER}
|
|
PKGREVISION= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.memtest.org/download/${MAJVER}.${MINVER}/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.memtest.org/
|
|
COMMENT= Thorough, stand alone memory test for x86 arch
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i386 NetBSD-*-x86_64 Linux-*-x86_64
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-5.*)
|
|
GCC_REQD+= 4.6
|
|
.else
|
|
GCC_REQD+= 4.5
|
|
.endif
|
|
|
|
USE_TOOLS+= gmake
|
|
SUBST_CLASSES+= delcr
|
|
SUBST_STAGE.delcr= pre-patch
|
|
SUBST_MESSAGE.delcr= Deleting CRs
|
|
SUBST_FILES.delcr= README
|
|
SUBST_SED.delcr= -e 's/.$$//g'
|
|
|
|
.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"
|