2013-11-03 06:11:59 +01:00
|
|
|
# Created by: kmoore@FreeBSD.org
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= grub2-bhyve
|
2015-05-07 22:24:15 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2015-09-02 15:57:58 +02:00
|
|
|
DISTVERSION= 0.40
|
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
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, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
2019-07-26 22:46:53 +02:00
|
|
|
PORTREVISION= 7
|
2013-11-03 06:11:59 +01:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
|
2018-05-07 20:05:48 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-12-27 18:33:11 +01:00
|
|
|
COMMENT= Grub-emu loader for bhyve
|
2013-11-03 06:11:59 +01:00
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex \
|
|
|
|
help2man:misc/help2man
|
2013-11-03 06:11:59 +01:00
|
|
|
|
2013-11-06 17:21:01 +01:00
|
|
|
ONLY_FOR_ARCHS= amd64
|
2013-11-03 06:11:59 +01:00
|
|
|
SSP_UNSAFE= yes
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= grehan-freebsd
|
2014-05-16 17:49:35 +02:00
|
|
|
USES= bison gmake
|
|
|
|
USE_GCC= yes
|
2013-12-27 18:33:11 +01:00
|
|
|
PLIST_FILES= sbin/grub-bhyve
|
2013-11-03 06:11:59 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2013-12-27 18:33:11 +01:00
|
|
|
CONFIGURE_ARGS= --with-platform=emu CC=${CC} LEX=${LOCALBASE}/bin/flex \
|
2014-04-22 16:09:10 +02:00
|
|
|
--enable-grub-mount=no --enable-grub-mkfont=no \
|
2014-10-22 21:29:29 +02:00
|
|
|
--enable-grub-emu-sdl=no --disable-nls --disable-werror
|
2013-11-03 06:11:59 +01:00
|
|
|
|
2014-05-16 17:49:35 +02: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 06:11:59 +01:00
|
|
|
do-configure:
|
|
|
|
@ cd ${WRKSRC}/ && ./configure ${CONFIGURE_ARGS}
|
|
|
|
|
|
|
|
do-install:
|
2013-11-06 17:21:01 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/grub-core/grub-emu ${STAGEDIR}${LOCALBASE}/sbin/grub-bhyve
|
2013-11-03 06:11:59 +01:00
|
|
|
|
2017-01-03 12:01:05 +01:00
|
|
|
.include <bsd.port.mk>
|
2014-05-16 17:49:35 +02:00
|
|
|
|
|
|
|
RUN_DEPENDS:= ${RUN_DEPENDS:Ngcc*}
|