pkgsrc/sysutils/memtestplus/options.mk
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

22 lines
635 B
Makefile

# $NetBSD: options.mk,v 1.7 2018/07/04 13:40:38 jperkin 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= pre-configure
SUBST_MESSAGE.serialopt= Setting serial console option
SUBST_FILES.serialopt= config.h
SUBST_SED.serialopt= -e '/define.*SERIAL_CONSOLE_DEFAULT/s/0/1/'
.endif