2020-05-09 14:17:52 +02:00
|
|
|
# $NetBSD: options.mk,v 1.4 2020/05/09 12:17:52 triaxx Exp $
|
2012-07-29 23:44:13 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Description of options (taken from configure --help):
|
|
|
|
# debug include memory manager debugging
|
|
|
|
# freetype build and install the `grub-mkfont' utility
|
2018-09-16 15:18:54 +02:00
|
|
|
# fuse build and install the `grub-mount' utility
|
2012-07-29 23:44:13 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.grub2
|
2018-09-16 15:18:54 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= debug freetype fuse
|
2012-07-29 23:44:13 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= freetype
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2018-09-16 15:18:54 +02:00
|
|
|
PLIST_VARS+= freetype fuse
|
2012-07-29 23:44:13 +02:00
|
|
|
|
2018-09-16 15:18:54 +02:00
|
|
|
###
|
|
|
|
### debug support
|
|
|
|
###
|
2012-07-29 23:44:13 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
|
|
CONFIGURE_ARGS+= --enable-mm-debug
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mm-debug
|
|
|
|
.endif
|
|
|
|
|
2018-09-16 15:18:54 +02:00
|
|
|
###
|
|
|
|
### FreeType support
|
|
|
|
###
|
2012-07-29 23:44:13 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mfreetype)
|
|
|
|
CONFIGURE_ARGS+= --enable-grub-mkfont
|
|
|
|
PLIST.freetype= yes
|
2014-09-05 14:14:24 +02:00
|
|
|
BUILD_DEPENDS+= dejavu-ttf>=2.34nb1:../../fonts/dejavu-ttf
|
2020-05-09 14:17:52 +02:00
|
|
|
BUILD_DEPENDS+= unifont-[0-9]*:../../fonts/unifont
|
2012-07-29 23:44:13 +02:00
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-grub-mkfont
|
|
|
|
.endif
|
2018-09-16 15:18:54 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### 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
|