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

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

Add updated grub2 port, and set some options when we build it.

Remove a defunct port from gnome-meta-utils

  • Property mode set to 100644
File size: 2.9 KB
Line 
1# Created by: sem@FreeBSD.org
2# $FreeBSD$
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
26USE_GETTEXT=    yes
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 ZFS
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.if ${PORT_OPTIONS:MZFS}
77CPATH=  ${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
78CFLAGS+=        -DB_FALSE=0 -DB_TRUE=1
79CONFIGURE_ENV+= CPATH=${CPATH}
80MAKE_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} -sf /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.