pkgsrc/sysutils/grub2/options.mk
riastradh 8560be0ed3 Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.
Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
2023-06-06 12:40:15 +00:00

50 lines
1.1 KiB
Makefile

# $NetBSD: options.mk,v 1.5 2023/06/06 12:42:19 riastradh Exp $
#
#
# Description of options (taken from configure --help):
# debug include memory manager debugging
# freetype build and install the `grub-mkfont' utility
# fuse build and install the `grub-mount' utility
#
PKG_OPTIONS_VAR= PKG_OPTIONS.grub2
PKG_SUPPORTED_OPTIONS= debug freetype fuse
PKG_SUGGESTED_OPTIONS= freetype
.include "../../mk/bsd.options.mk"
PLIST_VARS+= freetype fuse
###
### debug support
###
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-mm-debug
.else
CONFIGURE_ARGS+= --disable-mm-debug
.endif
###
### FreeType support
###
.if !empty(PKG_OPTIONS:Mfreetype)
CONFIGURE_ARGS+= --enable-grub-mkfont
PLIST.freetype= yes
TOOL_DEPENDS+= dejavu-ttf>=2.34nb1:../../fonts/dejavu-ttf
TOOL_DEPENDS+= unifont-[0-9]*:../../fonts/unifont
.include "../../graphics/freetype2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-grub-mkfont
.endif
###
### FUSE support
###
.if !empty(PKG_OPTIONS:Mfuse)
CONFIGURE_ARGS+= --enable-grub-mount
PLIST.fuse= yes
.include "../../filesystems/fuse/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-grub-mount
.endif