source: build-files/ports-overlay/sysutils/grub2/Makefile @ 0a435b9

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

Update grub2 Makefile

  • Property mode set to 100644
File size: 2.1 KB
Line 
1# Created by: sem@FreeBSD.org
2# $FreeBSD$
3
4PORTNAME=       grub2
5PORTVERSION=    2.00
6PORTREVISION=   1
7CATEGORIES=     sysutils
8MASTER_SITES=   GNU/grub
9DISTNAME=       grub-${PORTVERSION}
10
11MAINTAINER=     ports@FreeBSD.org
12COMMENT=        Multiboot boot loader
13
14LICENSE=        GPLv3
15
16BUILD_DEPENDS=  ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
17                help2man:${PORTSDIR}/misc/help2man
18
19CONFLICTS=      grub-0*
20SSP_UNSAFE=     yes
21USE_XZ=         yes
22USE_GCC=        yes
23USE_AUTOTOOLS=  automake aclocal autoconf
24ACLOCAL_ARGS=   -Im4
25GNU_CONFIGURE=  yes
26USE_GMAKE=      yes
27USES=           bison gettext
28ONLY_FOR_ARCHS= i386 amd64
29INFO=           grub grub-dev
30MAKE_JOBS_UNSAFE=       yes
31
32CONFIGURE_ARGS= --disable-werror --localedir=${PREFIX}/share/locale
33CONFIGURE_ENV=  CPP="${CC} -E" \
34                LEX=${LOCALBASE}/bin/flex
35
36OPTIONS_DEFINE= MKFONT FUSE
37MKFONT_DESC=    Build grub-mkfont (require freetype2)
38FUSE_DESC=      Build grub-mount (require FUSE)
39
40MAN1=           grub-editenv.1 grub-mklayout.1 grub-mkpasswd-pbkdf2.1 \
41                grub-fstest.1 grub-script-check.1 grub-kbdcomp.1 \
42                grub-mkstandalone.1 grub-mkrelpath.1 grub-mkrescue.1 \
43                grub-menulst2cfg.1 grub-mkimage.1
44MAN8=           grub-reboot.8 grub-set-default.8 grub-probe.8 \
45                grub-mkconfig.8 grub-bios-setup.8 grub-mknetdir.8 \
46                grub-install.8 grub-sparc64-setup.8 grub-ofpathname.8
47
48NO_STAGE=       yes
49.include <bsd.port.pre.mk>
50
51.if ${ARCH} != "amd64"
52EFIEMU=         "@comment "
53.endif
54
55PLIST_SUB+=     EFIEMU=${EFIEMU}
56
57.if ${PORT_OPTIONS:MMKFONT}
58LIB_DEPENDS+=   freetype.9:${PORTSDIR}/print/freetype2
59BUILD_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf:${PORTSDIR}/x11-fonts/dejavu
60MAN1+=          grub-mkfont.1
61.else
62MKFONT=         "@comment "
63.endif
64
65PLIST_SUB+=     MKFONT=${MKFONT}
66
67.if ${PORT_OPTIONS:MFUSE}
68LIB_DEPENDS+=   fuse:${PORTSDIR}/sysutils/fusefs-libs
69CONFIGURE_ARGS+=        --enable-grub-mount
70MAN1+=          grub-mount.1
71.else
72CONFIGURE_ARGS+=        --disable-grub-mount
73FUSE=           "@comment "
74.endif
75
76PLIST_SUB+=     FUSE=${FUSE}
77
78post-patch:
79        @${LN} -s ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf ${WRKSRC}
80        @${TOUCH} -t 200001010000 ${WRKSRC}/Makefile.util.def
81
82post-configure:
83        @${LN} -sfh /usr/include/machine /usr/include/sys /usr/include/x86 ${WRKSRC}/grub-core
84
85post-install:
86        @${CAT} ${PKGMESSAGE}
87
88.include <bsd.port.post.mk>
Note: See TracBrowser for help on using the repository browser.