aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/grub2
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-10-05 22:52:51 +0800
committerbapt <bapt@FreeBSD.org>2012-10-05 22:52:51 +0800
commit5a1bc3924bc6cf324f9e739a1ed978182c97ae8f (patch)
treed8513d89fe92e0c643c66c449a95adcdef92af57 /sysutils/grub2
parent574cf6a85084d6ff0bb7f0297932769ca9e4a2b5 (diff)
downloadfreebsd-ports-gnome-5a1bc3924bc6cf324f9e739a1ed978182c97ae8f.tar.gz
freebsd-ports-gnome-5a1bc3924bc6cf324f9e739a1ed978182c97ae8f.tar.zst
freebsd-ports-gnome-5a1bc3924bc6cf324f9e739a1ed978182c97ae8f.zip
Convert to new options framework
Diffstat (limited to 'sysutils/grub2')
-rw-r--r--sysutils/grub2/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysutils/grub2/Makefile b/sysutils/grub2/Makefile
index 084774f6be15..b9f3988d0a0b 100644
--- a/sysutils/grub2/Makefile
+++ b/sysutils/grub2/Makefile
@@ -21,11 +21,12 @@ ONLY_FOR_ARCHS= i386 amd64
INFO= grub
-OPTIONS= MKFONT "Build grub-mkfont (require freetype2)" off
+OPTIONS_DEFINE= MKFONT
+MKFONT_DESC= Build grub-mkfont (require freetype2)
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_MKFONT)
+.if ${PORT_OPTIONS:MMKFONT}
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
.else
MKFONT= "@comment "
@@ -36,4 +37,4 @@ PLIST_SUB+= MKFONT=${MKFONT}
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>