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

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

Update grub2 port to latest patch from here:

http://people.freebsd.org/~nox/tmp/grub-2.00-007-zfs.patch

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