summaryrefslogtreecommitdiff
path: root/sysutils/grub/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-04-12 22:42:57 +0000
committerjlam <jlam>2008-04-12 22:42:57 +0000
commit84db467ec7c8386066718011f8d47775d5608811 (patch)
treefdd67c81079412bf94013749a954125434a9baca /sysutils/grub/Makefile
parent7082f8c2044621c8641f3c82a2da95c2d442048c (diff)
downloadpkgsrc-84db467ec7c8386066718011f8d47775d5608811.tar.gz
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'sysutils/grub/Makefile')
-rw-r--r--sysutils/grub/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/sysutils/grub/Makefile b/sysutils/grub/Makefile
index 7722f97f224..7496f8386cb 100644
--- a/sysutils/grub/Makefile
+++ b/sysutils/grub/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2007/10/07 18:00:55 xtraeme Exp $
+# $NetBSD: Makefile,v 1.49 2008/04/12 22:43:12 jlam Exp $
DISTNAME= grub-0.97
PKGREVISION= 8
@@ -25,9 +25,10 @@ BUILD_DEFS+= GRUB_SCAN_ARGS
.include "../../mk/curses.buildlink3.mk"
+PLIST_VARS+= netboot
.if defined(GRUB_NETWORK_CARDS)
CONFIGURE_ARGS+= --enable-diskless
-PLIST_SUBST+= NETBOOT=
+PLIST.netboot= yes
.for nic in ${GRUB_NETWORK_CARDS}
CONFIGURE_ARGS+= --enable-${nic}
@@ -38,8 +39,6 @@ grub-netboot-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/grub
${INSTALL_DATA} ${WRKSRC}/netboot/README.netboot \
${PREFIX}/share/doc/grub
-.else
-PLIST_SUBST+= NETBOOT="@comment "
.endif
.if defined(GRUB_PRESET_COMMAND) && !empty(GRUB_PRESET_COMMAND)