Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / grub2 / options.mk
blobacac4fea6ddf89846ef8ddb273759b181d466de2
1 # $NetBSD$
5 # Description of options (taken from configure --help):
6 # debug include memory manager debugging
7 # freetype build and install the `grub-mkfont' utility
10 PKG_OPTIONS_VAR= PKG_OPTIONS.grub2
11 PKG_SUPPORTED_OPTIONS= debug freetype
12 PKG_SUGGESTED_OPTIONS= freetype
14 .include "../../mk/bsd.options.mk"
16 PLIST_VARS+= freetype
18 UNIFONT= unifont-5.1.20080820.pcf
19 SITES.${UNIFONT}.gz= http://unifoundry.com/
21 post-extract: do-move-unifont
22 .PHONY: do-move-unifont
24 .if !empty(PKG_OPTIONS:Mdebug)
25 CONFIGURE_ARGS+= --enable-mm-debug
26 .else
27 CONFIGURE_ARGS+= --disable-mm-debug
28 .endif
30 .if !empty(PKG_OPTIONS:Mfreetype)
31 CONFIGURE_ARGS+= --enable-grub-mkfont
32 PLIST.freetype= yes
33 DISTFILES+= ${UNIFONT}.gz
34 BUILD_DEPENDS+= dejavu-ttf>=2.30:../../fonts/dejavu-ttf
35 do-move-unifont:
36 ${MV} ${WRKDIR}/${UNIFONT} ${WRKSRC}/unifont.pcf
37 .include "../../graphics/freetype2/buildlink3.mk"
38 .else
39 CONFIGURE_ARGS+= --disable-grub-mkfont
40 do-move-unifont:
41 .endif