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

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

Update ZFS feature flag patch for GRUB to enable BIG_ENDIAN support
on FreeBSD

Sugested by: Xin Li <delphij@…>

While here bump PORTREVISION

  • 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
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*
20USE_XZ=         yes
21USE_GCC=        4.6+
22USE_AUTOTOOLS=  automake aclocal autoconf
23ACLOCAL_ARGS=   -Im4
24GNU_CONFIGURE=  yes
25USE_GMAKE=      yes
26USES=           bison gettext
27ONLY_FOR_ARCHS= i386 amd64
28INFO=           grub grub-dev
29
30CONFIGURE_ARGS= --disable-werror --localedir=${PREFIX}/share/locale
31CONFIGURE_ENV=  CPP="${CC} -E" \
32                LEX=${LOCALBASE}/bin/flex
33
34OPTIONS_DEFINE= MKFONT FUSE
35MKFONT_DESC=    Build grub-mkfont (require freetype2)
36FUSE_DESC=      Build grub-mount (require FUSE)
37ZFS_DESC=       ZFS support (requires system sources for libzfs.h)
38
39MAN1=           grub-editenv.1 grub-mklayout.1 grub-mkpasswd-pbkdf2.1 \
40                grub-fstest.1 grub-script-check.1 grub-kbdcomp.1 \
41                grub-mkstandalone.1 grub-mkrelpath.1 grub-mkrescue.1 \
42                grub-menulst2cfg.1 grub-mkimage.1
43MAN8=           grub-reboot.8 grub-set-default.8 grub-probe.8 \
44                grub-mkconfig.8 grub-bios-setup.8 grub-mknetdir.8 \
45                grub-install.8 grub-sparc64-setup.8 grub-ofpathname.8
46
47.include <bsd.port.pre.mk>
48
49.if ${ARCH} != "amd64"
50EFIEMU=         "@comment "
51.endif
52
53PLIST_SUB+=     EFIEMU=${EFIEMU}
54
55.if ${PORT_OPTIONS:MMKFONT}
56LIB_DEPENDS+=   freetype.9:${PORTSDIR}/print/freetype2
57BUILD_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf:${PORTSDIR}/x11-fonts/dejavu
58MAN1+=          grub-mkfont.1
59.else
60MKFONT=         "@comment "
61.endif
62
63PLIST_SUB+=     MKFONT=${MKFONT}
64
65.if ${PORT_OPTIONS:MFUSE}
66LIB_DEPENDS+=   fuse:${PORTSDIR}/sysutils/fusefs-libs
67CONFIGURE_ARGS+=        --enable-grub-mount
68MAN1+=          grub-mount.1
69.else
70CONFIGURE_ARGS+=        --disable-grub-mount
71FUSE=           "@comment "
72.endif
73
74PLIST_SUB+=     FUSE=${FUSE}
75
76# XXX this appears not to be needed or even cause breakage
77#.if ${PORT_OPTIONS:MZFS}
78#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
79#CFLAGS+=       -DB_FALSE=0 -DB_TRUE=1
80#CONFIGURE_ENV+=        CPATH=${CPATH}
81#MAKE_ENV+=     CPATH=${CPATH}
82#.endif
83
84post-patch:
85        @${LN} -s ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf ${WRKSRC}
86        @${TOUCH} -t 200001010000 ${WRKSRC}/Makefile.util.def
87
88post-configure:
89        @${LN} -sfh /usr/include/machine /usr/include/sys /usr/include/x86 ${WRKSRC}/grub-core
90
91post-install:
92        @${CAT} ${PKGMESSAGE}
93
94.include <bsd.port.post.mk>
Note: See TracBrowser for help on using the repository browser.