pkgsrc-wip/grub2/options.mk
2009-12-18 11:03:44 +00:00

38 lines
968 B
Makefile

# $NetBSD: options.mk,v 1.3 2009/12/18 11:03:44 gregoire Exp $
#
#
# Description of options (taken from configure --help):
# grub-mm-debug include memory manager debugging
# grub-emu build and install the `grub-emu' debugging utility
# grub-mkfont build and install the `grub-mkfont' utility
#
PKG_OPTIONS_VAR= PKG_OPTIONS.grub2
PKG_SUPPORTED_OPTIONS= grub-mm-debug grub-emu grub-mkfont
PKG_SUGGESTED_OPTIONS= grub-mm-debug grub-emu grub-mkfont
.include "../../mk/bsd.options.mk"
PLIST_VARS+= emu mkfont
.if !empty(PKG_OPTIONS:Mgrub-mm-debug)
CONFIGURE_ARGS+= --enable-mm-debug
.else
CONFIGURE_ARGS+= --disable-mm-debug
.endif
.if !empty(PKG_OPTIONS:Mgrub-emu)
CONFIGURE_ARGS+= --enable-grub-emu
PLIST.emu= yes
.else
CONFIGURE_ARGS+= --disable-grub-emu
.endif
.if !empty(PKG_OPTIONS:Mgrub-mkfont)
CONFIGURE_ARGS+= --enable-grub-mkfont
PLIST.mkfont= yes
.include "../../graphics/freetype2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-grub-mkfont
.endif