pkgsrc/sysutils/memtestplus/options.mk
gdt 691d45a645 Enable "iso" by default.
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).
2014-06-04 16:07:34 +00:00

22 lines
628 B
Makefile

# $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