source: build-files/ports-overlay/sysutils/grub2-efi/Makefile @ 42ca77f

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 42ca77f was 42ca77f, checked in by Kris Moore <kris@…>, 11 months ago

Add a new grub2-efi port, it depends upon the standard sysutils/grub2
port, but adds the lib/grub/x86_64-efi boot modules

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# Created by: kmoore@FreeBSD.org
2# $
3
4PORTNAME=       grub2-efi
5PORTVERSION=    2.00
6PORTREVISION=   1
7CATEGORIES=     sysutils
8MASTER_SITES=   GNU/grub
9DISTNAME=       grub-${PORTVERSION}
10
11MAINTAINER=     kmoore@FreeBSD.org
12COMMENT=        Multiboot EFI boot loader
13
14LICENSE=        GPLv3
15
16BUILD_DEPENDS=  ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
17                help2man:${PORTSDIR}/misc/help2man
18
19RUN_DEPENDS=    ${LOCALBASE}/bin/mformat:${PORTSDIR}/emulators/mtools \
20                ${LOCALBASE}/bin/grub-mkrescue:${PORTSDIR}/sysutils/grub2
21
22SSP_UNSAFE=     yes
23USE_XZ=         yes
24USE_GCC=        yes
25USE_AUTOTOOLS=  automake aclocal autoconf
26ACLOCAL_ARGS=   -Im4
27GNU_CONFIGURE=  yes
28USE_GMAKE=      yes
29USES=           bison gettext
30ONLY_FOR_ARCHS= amd64
31MAKE_JOBS_UNSAFE=       yes
32
33CONFIGURE_ARGS= --with-platform=efi --disable-werror --localedir=${PREFIX}/share/locale
34CONFIGURE_ENV=  CPP="${CC} -E" \
35                LEX=${LOCALBASE}/bin/flex
36
37.include <bsd.port.pre.mk>
38
39post-patch:
40        @${LN} -s ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf ${WRKSRC}
41        @${TOUCH} -t 200001010000 ${WRKSRC}/Makefile.util.def
42
43post-configure:
44        @${LN} -sfh /usr/include/machine /usr/include/sys /usr/include/x86 ${WRKSRC}/grub-core
45
46do-install:
47        @cd ${WRKSRC}/grub-core && gmake install DESTDIR=${STAGEDIR}
48
49.include <bsd.port.post.mk>
Note: See TracBrowser for help on using the repository browser.