summaryrefslogtreecommitdiff
path: root/sysutils/memtestplus/options.mk
diff options
context:
space:
mode:
authorsmb <smb>2006-10-24 18:00:05 +0000
committersmb <smb>2006-10-24 18:00:05 +0000
commitbafa88be526b945fb08dcb1293da4017bf327875 (patch)
tree18ccf555a14f9e7fc933f8c01c2044ba763d21e2 /sysutils/memtestplus/options.mk
parent3010a0daabf174046b0cdafbf92674cab1567356 (diff)
downloadpkgsrc-bafa88be526b945fb08dcb1293da4017bf327875.tar.gz
Add memtest+ 1.65 to pkgsrc, with options for serial console and .iso generation
Diffstat (limited to 'sysutils/memtestplus/options.mk')
-rw-r--r--sysutils/memtestplus/options.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/memtestplus/options.mk b/sysutils/memtestplus/options.mk
new file mode 100644
index 00000000000..3b635e55502
--- /dev/null
+++ b/sysutils/memtestplus/options.mk
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1 2006/10/24 18:00:05 smb Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.memtestplus
+PKG_SUPPORTED_OPTIONS= memtesplus-iso memtesplus-serialconsole
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmemtesplus-iso)
+BUILD_TARGET= memtest.iso
+BUILD_DEPENDS+= cdrtools>=2.01:../../sysutils/cdrtools
+PLIST_SUBST+= HAVE_ISO=""
+.else
+PLIST_SUBST+= HAVE_ISO="@comment "
+.endif
+
+.if !empty(PKG_OPTIONS:Mmemtesplus-serialconsole)
+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