summaryrefslogtreecommitdiff
path: root/sysutils/grub2-bhyve/Makefile
blob: 9c9512715b4a0d91c9d995b138acde78f3974820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PORTNAME=	grub2-bhyve
DISTVERSIONPREFIX=	v
DISTVERSION=	0.40
PORTREVISION=	9
CATEGORIES=	sysutils

PATCH_SITES+=	https://github.com/grehan-freebsd/grub2-bhyve/commit/
PATCHFILES+=	b080876e0711ee9d7a9c86661df173d98f2d0845.diff:-p1 \
		a2a1a8f716a00a8f42b36a8b91ac5b3e2328d39c.diff:-p1

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Grub-emu loader for bhyve
WWW=		https://github.com/grehan-freebsd/grub2-bhyve

LICENSE=	GPLv3

BUILD_DEPENDS=	${LOCALBASE}/bin/flex:textproc/flex \
		help2man:misc/help2man

ONLY_FOR_ARCHS=	amd64
SSP_UNSAFE=	yes
USE_GITHUB=	yes
GH_ACCOUNT=	grehan-freebsd
USES=		bison gmake
USE_GCC=	yes:build
PLIST_FILES=	sbin/grub-bhyve
MAKE_JOBS_UNSAFE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-platform=emu CPP="" LEX=${LOCALBASE}/bin/flex \
		--enable-grub-mount=no --enable-grub-mkfont=no \
		--enable-grub-emu-sdl=no --disable-nls --disable-werror

post-patch:
	@${REINPLACE_CMD} -e "s/libintl\.h/I_do_not_want_libintl.h/g" ${WRKSRC}/configure
	@${REINPLACE_CMD} -e "s/-lintl//g" ${WRKSRC}/grub-core/Makefile.in

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/grub-core/grub-emu ${STAGEDIR}${LOCALBASE}/sbin/grub-bhyve

.include <bsd.port.mk>