summaryrefslogtreecommitdiff
path: root/sysutils/memtestplus/options.mk
blob: 1ca0e599f7c2c4a23de228e4b3d8467d1488049a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $NetBSD: options.mk,v 1.6 2014/06/04 16:07:34 gdt Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.memtestplus
PKG_SUPPORTED_OPTIONS=	iso serialconsole
PKG_SUGGESTED_OPTIONS=	iso

.include "../../mk/bsd.options.mk"

PLIST_VARS+=		iso
.if !empty(PKG_OPTIONS:Miso)
BUILD_TARGET=		iso
BUILD_DEPENDS+=		{cdrtools,cdrtools-ossdvd}>=2.01:../../sysutils/cdrtools
PLIST.iso=		yes
.endif

.if !empty(PKG_OPTIONS:Mserialconsole)
SUBST_CLASSES+=		serialopt
SUBST_STAGE.serialopt=	post-patch
SUBST_MESSAGE.serialopt=	Setting serial console option
SUBST_FILES.serialopt=	config.h
SUBST_SED.serialopt=	-e '/define.*SERIAL_CONSOLE_DEFAULT/s/0/1/'
.endif