# New ports collection makefile for:	grub
# Whom:					sem@FreeBSD.org
# Date created:				10 June 2010
#
# $FreeBSD: ports/sysutils/grub2/Makefile,v 1.5 2010/12/12 01:11:24 pgollucci Exp $
#

PORTNAME=	grub2
PORTVERSION=	1.98
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	ftp://alpha.gnu.org/gnu/grub/
DISTNAME=	grub-${PORTVERSION}

MAINTAINER=	rick@lgarchitecture.com
COMMENT=	Multiboot boot loader

CONFLICTS=	grub-0*

GNU_CONFIGURE=		yes
USE_GMAKE=		yes
USE_BISON=		build
USE_GETTEXT=		yes
ONLY_FOR_ARCHS=		i386 amd64

INFO=		grub

OPTIONS=	MKFONT "Build grub-mkfont (require freetype2)" off

.include <bsd.port.pre.mk>

.if defined(WITH_MKFONT)
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
.else
MKFONT=		"@comment "
.endif

PLIST_SUB+=	MKFONT=${MKFONT}

.if ${OSVERSION} < 700000
BROKEN=		does not compile on 6.X
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
