2013-11-03 05:11:59 +00:00
|
|
|
# Created by: kmoore@FreeBSD.org
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= grub2-bhyve
|
2015-05-07 20:24:15 +00:00
|
|
|
DISTVERSIONPREFIX= v
|
2015-09-02 13:57:58 +00:00
|
|
|
DISTVERSION= 0.40
|
Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
c++14-lang, c++0x, c11, or gcc-c++11-lib.
PR: 219275
2017-09-10 20:55:38 +00:00
|
|
|
PORTREVISION= 3
|
2013-11-03 05:11:59 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
|
|
|
|
MAINTAINER= kmoore@FreeBSD.org
|
2013-12-27 17:33:11 +00:00
|
|
|
COMMENT= Grub-emu loader for bhyve
|
2013-11-03 05:11:59 +00:00
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2016-04-01 14:25:16 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex \
|
|
|
|
help2man:misc/help2man
|
2013-11-03 05:11:59 +00:00
|
|
|
|
2013-11-06 16:21:01 +00:00
|
|
|
ONLY_FOR_ARCHS= amd64
|
2013-11-03 05:11:59 +00:00
|
|
|
SSP_UNSAFE= yes
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= grehan-freebsd
|
2014-05-16 15:49:35 +00:00
|
|
|
USES= bison gmake
|
|
|
|
USE_GCC= yes
|
2013-12-27 17:33:11 +00:00
|
|
|
PLIST_FILES= sbin/grub-bhyve
|
2013-11-03 05:11:59 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2013-12-27 17:33:11 +00:00
|
|
|
CONFIGURE_ARGS= --with-platform=emu CC=${CC} LEX=${LOCALBASE}/bin/flex \
|
2014-04-22 14:09:10 +00:00
|
|
|
--enable-grub-mount=no --enable-grub-mkfont=no \
|
2014-10-22 19:29:29 +00:00
|
|
|
--enable-grub-emu-sdl=no --disable-nls --disable-werror
|
2013-11-03 05:11:59 +00:00
|
|
|
|
2014-05-16 15:49:35 +00:00
|
|
|
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
|
|
|
|
|
2013-11-03 05:11:59 +00:00
|
|
|
do-configure:
|
|
|
|
@ cd ${WRKSRC}/ && ./configure ${CONFIGURE_ARGS}
|
|
|
|
|
|
|
|
do-install:
|
2013-11-06 16:21:01 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/grub-core/grub-emu ${STAGEDIR}${LOCALBASE}/sbin/grub-bhyve
|
2013-11-03 05:11:59 +00:00
|
|
|
|
2017-01-03 11:01:05 +00:00
|
|
|
.include <bsd.port.mk>
|
2014-05-16 15:49:35 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS:= ${RUN_DEPENDS:Ngcc*}
|